Skip to content
Permalink
Browse files

Don't use 'detectRetina' feature of Leaflet anymore

(this caused problems with maximum zoom)
  • Loading branch information
vpithart authored and LarsMichelsen committed Jan 7, 2020
1 parent 317d13e commit 125fb0c94a25349a3e683f7e6d7fbc3d435732af
Showing with 2 additions and 2 deletions.
  1. +2 −2 share/frontend/nagvis-js/js/ViewWorldmap.js
@@ -59,15 +59,15 @@ var ViewWorldmap = ViewMap.extend({
"map": L.tileLayer(oGeneralProperties.worldmap_tiles_url, {
attribution: oGeneralProperties.worldmap_tiles_attribution,
noWrap: true, // don't repeat the world on horizontal axis
detectRetina: true, // look nice on high resolution screens
detectRetina: false, // this causes trouble with maximum zoom level (19 vs. 20), don't use
maxZoom: 20,
}),
}
if(oGeneralProperties.worldmap_satellite_tiles_url) {
layers.satellite = L.tileLayer(oGeneralProperties.worldmap_satellite_tiles_url, {
attribution: oGeneralProperties.worldmap_satellite_tiles_attribution,
noWrap: true, // don't repeat the world on horizontal axis
detectRetina: true, // look nice on high resolution screens
detectRetina: false,
maxZoom: 20,
})
}

0 comments on commit 125fb0c

Please sign in to comment.
You can’t perform that action at this time.