[OpenLayers-Users] stop control propagation
toni hernández
tonidelacalle at gmail.com
Sun May 3 11:36:33 EDT 2009
hi,
I have a div with an input type text inside the main map div.
The user can edit this input and put the new scale value of the map
dynamically.
the problem is that when I click on the input (to change the scale) it zooms
in (zoom is the default control).
As I need to stop propagation I added
OpenLayers.Event.observe(elem, "mousedown", block);
and the function block which is
function block(evt) {
OpenLayers.Event.stop(evt);
}
And now no zooms occurs but I can not change the value of the input text
either.
Any ideas?
thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090503/d3cb49fd/attachment.html
More information about the Users
mailing list