mirror of
https://github.com/searxng/searxng.git
synced 2025-08-03 10:32:21 +02:00
[mod] simple theme: leaflet becomes a packages.json dependency
the build of the themes updates: * js/leaflet.js ( was leaflet/leaflet.js ) * css/leaflet.css ( was leaflet/leaflet.css ) * css/images ( was leaflet/images )
This commit is contained in:
parent
6288b549e2
commit
b4a47cacd8
15 changed files with 39 additions and 644 deletions
|
@ -31,8 +31,8 @@
|
|||
var map_boundingbox = JSON.parse(this.dataset.mapBoundingbox);
|
||||
var map_geojson = JSON.parse(this.dataset.mapGeojson);
|
||||
|
||||
searx.loadStyle('leaflet/leaflet.css');
|
||||
searx.loadScript('leaflet/leaflet.js', function() {
|
||||
searx.loadStyle('css/leaflet.css');
|
||||
searx.loadScript('js/leaflet.js', function() {
|
||||
var map_bounds = null;
|
||||
if(map_boundingbox) {
|
||||
var southWest = L.latLng(map_boundingbox[0], map_boundingbox[2]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue