Rename showData to updateData in start.js.erb to resolve name clash

This commit is contained in:
Kai Krueger 2012-03-30 23:15:24 -06:00 committed by Tom Hughes
parent ed98d71417
commit 0f121e5390

View file

@ -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);
}
}