X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1862389e6b3898a8ba330fcbde85b7e32b6a9cc1..d7d317f694b8d75aa6a3c2e5b5fee0903c7b61ed:/app/views/browse/start.js.erb?ds=sidebyside diff --git a/app/views/browse/start.js.erb b/app/views/browse/start.js.erb index d427ddbaf..951365268 100644 --- a/app/views/browse/start.js.erb +++ b/app/views/browse/start.js.erb @@ -32,7 +32,7 @@ function startBrowse() { browseBoxControl.handler.callbacks.done = endDrag; map.addControl(browseBoxControl); - map.events.register("moveend", map, showData); + map.events.register("moveend", map, updateData); map.events.triggerEvent("moveend"); $("#browse_select_box").click(startDrag); @@ -42,7 +42,7 @@ function startBrowse() { $("#browse_hide_areas_box").click(hideAreas); } -function showData() { +function updateData() { if (browseMode == "auto") { if (map.getZoom() >= 15) { useMap(false); @@ -77,7 +77,7 @@ function stopBrowse() { } map.dataLayer.setVisibility(false); - map.events.unregister("moveend", map, showData); + map.events.unregister("moveend", map, updateData); } }