Prevent annoying map movements to keep line popup in view

pull/54/merge
Candid Dauth 2016-10-12 00:56:02 +03:00
rodzic a5ee285d84
commit 85382c7ae9
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -115,7 +115,12 @@
}); });
$timeout(function() { $timeout(function() { // $compile only replaces variables on next digest $timeout(function() { $timeout(function() { // $compile only replaces variables on next digest
// Prevent the map to scroll to the popup every time we move it and some more detail of the line gets loaded
var autoPanBkp = popup.options.autoPan;
popup.options.autoPan = false;
popup.update(); popup.update();
popup.options.autoPan = autoPanBkp;
}); }); }); });
}, },
_makeLineMovable: function(line) { _makeLineMovable: function(line) {