<br>
so you want popups tied to your markers... you seem to be on the right
path. you just need to subclass OpenLayers.Feature.WFS and override
createMarker(). In your new createMarker() you need to hook in the
popup. The most standard way of doing that is on the onclick action of
the marker. if you take a look at the popup.html example
(<a href="http://openlayers.org/dev/examples/popups.html">http://openlayers.org/dev/examples/popups.html</a>) you can see how that&#39;s
pretty easily done. <br>
<br>
lemme know if you need some more help,<br>
erik<br>
<br>
<br><div><span class="gmail_quote">On 5/6/07, <b class="gmail_sendername">mfrumin</b> &lt;<a href="mailto:mfrumin@rpa.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mfrumin@rpa.org</a>&gt; wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>using: 2.4-rc3<br><br>I think I get it -- to cutomize the way your WFS points are represented, you<br>should subclass and override createMarker() and createPopup().<br><br>that said, when I look at the Feature class, it appears to have a
<br>createPopup() method, but having put in an alert() it never seems to get<br>called when i click on the (default red diamond) marker.&nbsp;&nbsp;here&#39;s how I have<br>created my WFS layer:<br><br>layer = new OpenLayers.Layer.WFS

( &quot;Stations WFS&quot;, wfs,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
typename: &#39;frumin:trx_stations&#39;, maxfeatures: 1 } ,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
featureClass: OpenLayers.Feature.WFS}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;map.addLayer(layer);<br><br>and it works gorgeously in terms of getting the red marker, but I want to<br>program some interactivity.<br><br>maybe I shouldn&#39;t be surprised tho, because the example i got it from
<br>(<a href="http://openlayers.org/dev/examples/wfs.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://openlayers.org/dev/examples/wfs.html</a>) doesn&#39;t seem to have any<br>interactivity on the markers either.
<br><br>what think?<br><br>thanks,<br>mike<br>
--<br>View this message in context: <a href="http://www.nabble.com/Popup-for-WFS-Feature-tf3700517.html#a10348127" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.nabble.com/Popup-for-WFS-Feature-tf3700517.html#a10348127
</a><br>Sent from the OpenLayers Users mailing list archive at 
<a href="http://Nabble.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Nabble.com</a>.<br><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@openlayers.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Users@openlayers.org</a><br><a href="http://openlayers.org/mailman/listinfo/users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://openlayers.org/mailman/listinfo/users</a><br></blockquote></div><br>