Rename showData to updateData in start.js.erb to resolve name clash
This commit is contained in:
parent
ed98d71417
commit
0f121e5390
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue