Skip to content

Commit

Permalink
Allow 2 more zoom levels on worldmap/openstreetmap
Browse files Browse the repository at this point in the history
  • Loading branch information
vpithart authored and LarsMichelsen committed Jul 4, 2019
1 parent 06a342a commit 17f8534
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions share/frontend/nagvis-js/js/ViewWorldmap.js
Expand Up @@ -60,13 +60,15 @@ var ViewWorldmap = ViewMap.extend({
attribution: oGeneralProperties.worldmap_tiles_attribution,
noWrap: true, // don't repeat the world on horizontal axis
detectRetina: true, // look nice on high resolution screens
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
maxZoom: 20,
})
}
g_map = L.map('map', {
Expand Down

0 comments on commit 17f8534

Please sign in to comment.