<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<STYLE>P {
        PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
BODY {
        FONT-SIZE: 10pt; FONT-FAMILY: Tahoma
}
</STYLE>

<META content="MSHTML 6.00.2800.1528" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=453511621-25102006>Hello Alan,</SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=453511621-25102006></SPAN>&nbsp;</DIV>
<DIV><SPAN class=453511621-25102006>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 (</SPAN>&lt;input type="checkbox" name="iOLVisi" 
onclick="setVisi(' + i + ', this.checked);"&nbsp;checked/&gt;<SPAN 
class=453511621-25102006>). With Markers I have no experience, but I think, it's 
the same.</SPAN></DIV>
<DIV><SPAN class=453511621-25102006></SPAN>&nbsp;</DIV>
<DIV><SPAN class=453511621-25102006><!-- Converted from text/plain format -->
<P><FONT size=2>Mit freundlichen Grüssen<BR><BR>Arnd Wippermann<BR></FONT></P><A 
href="http://gis.ibbeck.de/ginfo/ibbOLClient/OpenLayersClient.html?KARTE=1">http://gis.ibbeck.de/ginfo/ibbOLClient/OpenLayersClient.html?KARTE=1</A>&nbsp;(this 
one uses popup windows as layercontrol, etc.)</SPAN></DIV>
<DIV><A 
href="http://gis.ibbeck.de/pinguinale/">http://gis.ibbeck.de/pinguinale/</A><BR></DIV>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<B>Von:</B> users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] 
<B>Im Auftrag von </B>Alan Underwood<BR><B>Gesendet:</B> Mittwoch, 25. Oktober 
2006 18:14<BR><B>An:</B> users@openlayers.org<BR><B>Betreff:</B> 
[OpenLayers-Users] How to handle events<BR><BR></DIV>
<DIV></DIV>
<DIV style="TEXT-ALIGN: left"><SPAN 
style="FONT-FAMILY: Tahoma,Helvetica,Sans-Serif">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.<BR><BR>Any 
guidance?<BR><BR>Alan</SPAN></DIV><BR>
<HR>
Be one of the first to try <A 
href="http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d" 
target=_new>Windows Live Mail.</A> </BODY></HTML>