<br><font size=2 face="sans-serif">Hi,</font>
<br><font size=2 face="sans-serif">I don't know when I should and should
not use the activate function when I create a control. My understanding
was to use activate only when deactivate was called but I'm not sure.</font>
<br><font size=2 face="sans-serif">Here are 2 examples copied from an openlayers
example</font>
<br>
<br><font size=2 face="sans-serif">var navControl = new OpenLayers.Control.Navigation({</font>
<br><font size=2 face="sans-serif">
type: OpenLayers.Control.TYPE_TOGGLE,</font>
<br><font size=2 face="sans-serif">
zoomWheelEnabled: true</font>
<br><font size=2 face="sans-serif"> });</font>
<br><font size=2 face="sans-serif">map.addControl(navControl);</font>
<br><font size=2 face="sans-serif">navControl.activate();</font>
<br><font size=2 face="sans-serif">
</font>
<br><font size=2 face="sans-serif">var MousePosition = new OpenLayers.Control.MousePosition({element:
$('mouseTrack')});</font>
<br><font size=2 face="sans-serif">map.addControl(MousePosition);</font>
<br>
<br><font size=2 face="sans-serif">Why call this? navControl.activate();</font>
<br><font size=2 face="sans-serif">It seems to work even if I don,t use
it.</font>
<br>
<br><font size=2 face="sans-serif">And that works without .activate</font>
<br><font size=2 face="sans-serif">map.addControl(MousePosition);</font>
<br>
<br><font size=2 face="sans-serif">Thanks for clarifying this</font>
<br><font size=2 face="sans-serif">Regards,</font>
<br><font size=2 face="sans-serif">Steve</font>
<br>
<br><font size=2 face="sans-serif"><br>
</font><font size=3 color=#0066ff><i>Steve Toutant, M. Sc.</i></font><font size=3><br>
Analyste en géomatique<br>
Secteur environnement<br>
Direction des risques biologiques, environnementaux et occupationnels<br>
Institut national de santé publique du Québec<br>
945, avenue Wolfe<br>
Québec, Qc G1V 5B3 </font>
<p><font size=3>Tél.: (418) 650-5115 #5281<br>
Fax.: (418) 654-3144</font><font size=3 color=blue><u><br>
</u></font><a href=mailto:steve.toutant@inspq.qc.ca><font size=3 color=blue><u>steve.toutant@inspq.qc.ca</u></font></a><font size=3 color=blue><u><br>
</u></font><a href=http://www.inspq.qc.ca/><font size=3 color=blue><u>http://www.inspq.qc.ca</u></font></a>
<p><font size=3> </font>
<p>