Work around change in handler behaviour in OpenLayers 2.10
We need to install the endDrag routine as the "done" handler after creating the control otherwise the control will overwrite our handler with one of it's own.
This commit is contained in:
parent
d68466ecf8
commit
5c520a928b
1 changed files with 2 additions and 2 deletions
|
@ -25,10 +25,10 @@ page << <<EOJ
|
|||
sides: 4,
|
||||
snapAngle: 90,
|
||||
irregular: true,
|
||||
persist: true,
|
||||
callbacks: { done: endDrag }
|
||||
persist: true
|
||||
}
|
||||
});
|
||||
browseBoxControl.handler.callbacks.done = endDrag;
|
||||
map.addControl(browseBoxControl);
|
||||
|
||||
map.events.register("moveend", map, showData);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue