From f77f797f8c7016a5748acfcf934a2c54d15af765 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Tue, 24 Aug 2021 11:31:29 +0200 Subject: [mod] simple theme: fix eslint errors, fix VIM keys * VIM keys: fix the next page and previous pages (n, p keys) * Map: Enable the wikipedia map (the layer was initialized but not included) --- searx/static/themes/simple/src/js/main/searx_mapresult.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'searx/static/themes/simple/src/js/main/searx_mapresult.js') diff --git a/searx/static/themes/simple/src/js/main/searx_mapresult.js b/searx/static/themes/simple/src/js/main/searx_mapresult.js index 7b3982c11..20da7761a 100644 --- a/searx/static/themes/simple/src/js/main/searx_mapresult.js +++ b/searx/static/themes/simple/src/js/main/searx_mapresult.js @@ -15,6 +15,7 @@ * (C) 2014 by Thomas Pointhuber, * (C) 2017 by Alexandre Flament, */ +/* global L */ (function (w, d, searx) { 'use strict'; @@ -47,7 +48,7 @@ var osmMapnikAttrib='Map data © OpenStreetMap contributors'; var osmMapnik = new L.TileLayer(osmMapnikUrl, {minZoom: 1, maxZoom: 19, attribution: osmMapnikAttrib}); var osmWikimediaUrl='https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}.png'; - var osmWikimediaAttrib = 'Wikimedia maps beta | Maps data © OpenStreetMap contributors'; + var osmWikimediaAttrib = 'Wikimedia maps | Maps data © OpenStreetMap contributors'; var osmWikimedia = new L.TileLayer(osmWikimediaUrl, {minZoom: 1, maxZoom: 19, attribution: osmWikimediaAttrib}); // init map view if(map_bounds) { @@ -69,8 +70,8 @@ map.addLayer(osmMapnik); var baseLayers = { - "OSM Mapnik": osmMapnik/*, - "OSM Wikimedia": osmWikimedia*/ + "OSM Mapnik": osmMapnik, + "OSM Wikimedia": osmWikimedia, }; L.control.layers(baseLayers).addTo(map); -- cgit v1.2.3