You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function clickme() {
var control = map.getControlsByClass("OpenLayers.Control.Navigation")[0];
map.removeControl(control);
control.destroy();
var newControl = new OpenLayers.Control.Navigation();
map.addControl(newControl);
}
Add the code to the file /OpenLayers2.13.1/examples/click.html
add a button and make its click event point to this function.
3.run the example, and click the map, you'll see a javascript alert "you clicked XXX"
4.then click the button that just added.
5.click the map again, there is no alert anymore.
The text was updated successfully, but these errors were encountered:
Here is the step to reproduce it,
function clickme() {
var control = map.getControlsByClass("OpenLayers.Control.Navigation")[0];
map.removeControl(control);
control.destroy();
var newControl = new OpenLayers.Control.Navigation();
map.addControl(newControl);
}
3.run the example, and click the map, you'll see a javascript alert "you clicked XXX"
4.then click the button that just added.
5.click the map again, there is no alert anymore.
The text was updated successfully, but these errors were encountered: