X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f2be4b9449f31be5f81d8f32d966d06e62955764..877724813ce3b9bc8b3a33a1544bdc4e27d2f2af:/app/views/site/index.rhtml diff --git a/app/views/site/index.rhtml b/app/views/site/index.rhtml index 625f17a10..5ca8b0339 100644 --- a/app/views/site/index.rhtml +++ b/app/views/site/index.rhtml @@ -96,6 +96,8 @@ marker = addMarkerToMap(lonLatToMercator(new OpenLayers.LonLat(<%= mlon %>, <%= mlat %>))); <% end %> + map.events.register("zoomend", map, updateKey); + map.events.register("moveend", map, updateLocation); updateLocation();