<META content="MSHTML 6.00.6000.16915" name=GENERATOR>

<P>Eric,</P>
<P>&nbsp;</P>
<P>Sorry for replying back in this email but I have tried several times to reply on the forum with no luck.&nbsp; Not sure why the reply would not post.&nbsp; In any case this is what I stated:</P>
<P>------------------------------</P>
<P>No, you did not misunderstand my question.&nbsp; I just put it in two parts.&nbsp; Thanks for your latest response.&nbsp; It verifies one of our main issues.&nbsp; </P>
<P>On a side note, we did make the switch from creating OpenLayers.Marker markers (OpenLayers.Layer.Markers layer) to creating OpenLayers.Feature.Vector features (OpenLayers.Layer.Vector layer) as you indicated, but what we have found out is that adding the OpenLayers.Feature.Vector features to the map is a MUCH more expensive (timewise) operation than adding OpenLayers.Marker markers to the map.&nbsp; Because of this, we want to go back to creating OpenLayers.Marker markers because performance is so much better.</P>
<P>-----------------------------</P>
<P>Thanks again for your help Eric - Peter<BR><BR><BR><BR></P>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 0px; BORDER-LEFT: #0000ff 2px solid">-----Original Message----- <BR>From: "Eric Lemoine-2-2 [via OSGeo.org]" <ML-NODE+3910342-474668479@N2.NABBLE.COM><BR>Sent: Oct 29, 2009 3:55 AM <BR>To: plen <PETERALEN@EARTHLINK.NET><BR>Subject: Re: [OpenLayers-Users] Register multiple map layers for same event... how??? <BR><BR>On Wednesday, October 28, 2009, plen &lt;<A href="http://n2.nabble.com/user/SendEmail.jtp?type=node&amp;node=3910342&amp;i=0" target=_blank rel="nofollow">[hidden email]</A>&gt; wrote: 
<DIV class=shrinkable-quote><div class='shrinkable-quote'><BR>&gt; <BR>&gt; Eric, <BR>&gt; <BR>&gt; Thanks for the response. &nbsp;You have answered some of my questions in the past <BR>&gt; and I appreciate it. &nbsp;As for this question, I did find the SelectFeature <BR>&gt; control you mentioned and was able to successfully add more than one <BR>&gt; OpenLayers.Layer.Vector layer to the control and was able to register a <BR>&gt; "featureselected" event via: <BR>&gt; <BR>&gt; getFeaturesLayer1().events.register("featureselected", getFeaturesLayer1(), <BR>&gt; fclick); <BR>&gt; <BR>&gt; All works fine. &nbsp;I orginally thought, however, that my real problem would be <BR>&gt; solved in finding this solution, but it is not. &nbsp;What I really need is to be <BR>&gt; able to share events amoung two different types of layers. &nbsp;For example, I <BR>&gt; need to have an OpenLayers.Layer.Vector and an OpenLayers.Layer.Markers <BR>&gt; share the same event (rather than two OpenLayers.Layer.Vector share the same <BR>&gt; event). &nbsp;Looking at the API for the SelectFeature control, it seems to <BR>&gt; indicate that only OpenLayers.Layer.Vector layers can be used. &nbsp;Is this true <BR>&gt; or is there a way to have two different types of layers share the same <BR>&gt; event? </DIV></div>the select feature control works with vector layers only. Anyway, it <BR>is now recommended to use Layer.Vector for markers as well, through <BR>the externalGraphic style property. <BR><BR>Sorry if I misunderstood your question. <BR><BR>-- <BR>Eric Lemoine <BR><BR>Camptocamp France SAS <BR>Savoie Technolac, BP 352 <BR>73377 Le Bourget du Lac, Cedex <BR><BR>Tel : 00 33 4 79 44 44 96 <BR>Mail : <A href="http://n2.nabble.com/user/SendEmail.jtp?type=node&amp;node=3910342&amp;i=1" target=_blank rel="nofollow">[hidden email]</A> <BR><A href="http://www.camptocamp.com" target=_blank rel="nofollow">http://www.camptocamp.com</A><BR>_______________________________________________ <BR>Users mailing list <BR><A href="http://n2.nabble.com/user/SendEmail.jtp?type=node&amp;node=3910342&amp;i=2" target=_blank rel="nofollow">[hidden email]</A> <BR><A href="http://openlayers.org/mailman/listinfo/users" target=_blank rel="nofollow">http://openlayers.org/mailman/listinfo/users</A><BR></BLOCKQUOTE>

<br><hr align="left" width="300">
View this message in context: <a href="http://n2.nabble.com/Register-multiple-map-layers-for-same-event-how-tp3872249p3912402.html">Re: [OpenLayers-Users] Register multiple map layers for same event... how???</a><br>
Sent from the <a href="http://n2.nabble.com/OpenLayers-Users-f1822463.html">OpenLayers Users mailing list archive</a> at Nabble.com.<br>