[OpenLayers-Users] How to handle events
arnd.wippermann at web.de
Wed Oct 25 17:29:21 EDT 2006
i'm using in my application an own layercontrol etc. and i don't use
OpenLayers-events. To create a new layer, I have to describe the parameter
and then add the layer with a button click. To set an OLLayer visible or not
visible, I use the onclick-event of the checkbox-element (<input
type="checkbox" name="iOLVisi" onclick="setVisi(' + i + ', this.checked);"
checked/>). With Markers I have no experience, but I think, it's the same.
Mit freundlichen Grüssen
one uses popup windows as layercontrol, etc.)
Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von Alan Underwood
Gesendet: Mittwoch, 25. Oktober 2006 18:14
An: users at openlayers.org
Betreff: [OpenLayers-Users] How to handle events
I was wondering (=desperately hoping) that someone might be able to describe
how the event handling is supposed to be used in the openlayers code. I am
trying to write my own control for creating layers and markers and, as you
would expect, it needs to use a lot of event handling. I've looked at the
LayerSwitcher control which sometimes uses Events.register on the map object
and sometimes uses Event.observe and I looked at PanZoomBar which uses
Events.register on both the map object and on some Events objects it defines
itself. I got quite confused. When is Events.register supposed to be used
rather that Event.observe and vice-versa.
Be one of the first to try Windows Live Mail.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users