diff options
-rw-r--r-- | chimere/static/chimere/js/jquery.chimere.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chimere/static/chimere/js/jquery.chimere.js b/chimere/static/chimere/js/jquery.chimere.js index 9ec3e48..44f17e0 100644 --- a/chimere/static/chimere/js/jquery.chimere.js +++ b/chimere/static/chimere/js/jquery.chimere.js @@ -1662,6 +1662,9 @@ function category_loaded_callback(cat_numbers){ settings.map.setCenter(f.lonlat); } }, + get_zoom: function () { + return settings.map.zoom; + }, zoom: function (options) { if ($.hasattr("category", options)) { helpers.zoom_to_category(options["category"]); @@ -1669,6 +1672,8 @@ function category_loaded_callback(cat_numbers){ helpers.zoom_to_subcategories(options["subcategories"]); } else if ($.hasattr("area", options)) { helpers.zoom_to_area(options["area"]); + } else if ($.hasattr("level", options)) { + settings.map.moveTo(settings.map.getCenter(), options['level']); } }, open_dialog: function(title, content){ |