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:
Tom Hughes 2010-09-15 10:52:04 +01:00
parent d68466ecf8
commit 5c520a928b

View file

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