From e6e886524a6644cea9f8a59f7697266f26ad77ee Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 13 Sep 2017 23:18:47 +0200 Subject: jquery.chimere.js: fix set animation call --- chimere/static/chimere/js/jquery.chimere.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'chimere') 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()]}; -- cgit v1.2.3