[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:
Alexandre Flament 2021-06-16 10:31:11 +02:00
parent 6288b549e2
commit b4a47cacd8
15 changed files with 39 additions and 644 deletions

View file

@ -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]);