diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-09-13 23:18:47 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-09-13 23:18:47 +0200 |
commit | e6e886524a6644cea9f8a59f7697266f26ad77ee (patch) | |
tree | 1d26746defacd541fa01bcff66e65a8c48151e56 | |
parent | 4248e144950d7977e25f9e6de244892275861258 (diff) | |
download | Chimère-e6e886524a6644cea9f8a59f7697266f26ad77ee.tar.bz2 Chimère-e6e886524a6644cea9f8a59f7697266f26ad77ee.zip |
jquery.chimere.js: fix set animation call
-rw-r--r-- | chimere/static/chimere/js/jquery.chimere.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chimere/static/chimere/js/jquery.chimere.js b/chimere/static/chimere/js/jquery.chimere.js index d4b7e28..223425e 100644 --- a/chimere/static/chimere/js/jquery.chimere.js +++ b/chimere/static/chimere/js/jquery.chimere.js @@ -1200,7 +1200,7 @@ function transformCoordToLonLat(coord) { var v = settings[map_id].map.getView(); if (!zoom_level) zoom_level = v.getZoom() + 1; - methods._set_animation(duration); + methods._set_animation(map_id, duration); // center if ($("#panel").is(":visible")){ var delta_x = $("#panel").width() / 2; @@ -1440,7 +1440,7 @@ function transformCoordToLonLat(coord) { if (zoom_level >= settings[map_id].maxZoom){ return; } - methods._set_animation(); + methods._set_animation(map_id); v.setZoom(zoom_level); }, @@ -1468,7 +1468,7 @@ function transformCoordToLonLat(coord) { if (zoom_level <= settings[map_id].minZoom){ return; } - methods._set_animation(); + methods._set_animation(map_id); v.setZoom(zoom_level); }, @@ -2768,7 +2768,7 @@ function transformCoordToLonLat(coord) { } if (data.message) methods.displayMessage(data.message); var v = settings[map_id].map.getView(); - methods._set_animation(); + methods._set_animation(map_id); options = {}; if ($("#panel").is(":visible")){ options = {"padding": [0, 0, 0, $("#panel").width()]}; |