[OpenLayers-Users] How to handle events
Arnd Wippermann
arnd.wippermann at web.de
Wed Oct 25 17:29:21 EDT 2006
Hello Alan,
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
Arnd Wippermann
http://gis.ibbeck.de/ginfo/ibbOLClient/OpenLayersClient.html?KARTE=1 (this
one uses popup windows as layercontrol, etc.)
http://gis.ibbeck.de/pinguinale/
_____
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.
Any guidance?
Alan
_____
Be one of the first to try Windows Live Mail.
<http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-49
11fb2b2e6d>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20061025/2533148e/attachment.html
More information about the Users
mailing list