Skip to content
Permalink
Browse files

Fix IE 11 incompatibility regression introduced with 1.9.13

fixes #209
  • Loading branch information...
LarsMichelsen committed Oct 16, 2019
1 parent ca6a97f commit 085ae34f5f6e26e04a5a6662b4fee6cc23614817
Showing with 4 additions and 3 deletions.
  1. +1 −0 ChangeLog
  2. +3 −3 share/frontend/nagvis-js/js/ViewWorldmap.js
@@ -1,4 +1,5 @@
1.9.15
* FIX: Fix IE 11 incompatibility regression introduced with 1.9.13

1.9.14
Core:
@@ -107,10 +107,10 @@ var ViewWorldmap = ViewMap.extend({
g_map.on('mousedown', context_handle_global_mousedown);

// dim the colors of map background so that red motorways don't distract
let saturate_percentage = getViewParam('worldmap_tiles_saturate')
let saturate_percentage = getViewParam('worldmap_tiles_saturate');
let ltp = document.getElementsByClassName('leaflet-tile-pane');
if (ltp && saturate_percentage !== '')
ltp[0].style.filter = `saturate(${saturate_percentage}%)`
ltp[0].style.filter = "saturate("+saturate_percentage+"%)";
},

handleMoveStart: function(lEvent) {
@@ -128,7 +128,7 @@ var ViewWorldmap = ViewMap.extend({

// Put the new map view coords into URL (location) - consistent reloads
new_center = g_map.getCenter();
window.location.hash = `${new_center.lng}/${new_center.lat}/${g_map.getZoom()}`;
window.location.hash = new_center.lng + "/" + new_center.lat + "/" + g_map.getZoom();
},

saveView: function() {

0 comments on commit 085ae34

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