Mark --<br><br>Here is one way that I have used.<br><a href="http://www.dbspatial.com/js/ol/examples/georss.html">http://www.dbspatial.com/js/ol/examples/georss.html</a><br><br>You can find the multi-color icons in<br><a href="http://www.dbspatial.com/js/ol/img/">
http://www.dbspatial.com/js/ol/img/</a><br><br>The code that does the color switching by color name is in<br><a href="http://www.dbspatial.com/js/ol/lib/OpenLayers/Layer/GeoRSS.js">http://www.dbspatial.com/js/ol/lib/OpenLayers/Layer/GeoRSS.js
</a><br><br><br>It ain't too pretty, but it worked for me.<br><br>David<br><br><div><span class="gmail_quote">On 10/27/06, <b class="gmail_sendername">Mark de Blois</b> &lt;<a href="mailto:mark.deblois@maplecroft.net">mark.deblois@maplecroft.net
</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;">








<div link="blue" vlink="purple" lang="EN-US">

<div>

<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;">Hi there,</span></font></p>

<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;">&nbsp;</span></font></p>

<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;">I am trying to setup an
internal viewer taking WMS services and live GeoRSS feeds with OpenLayers. Could
have quite an impact in the company I work for.</span></font></p>

<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;">I am trying to work out
using different custom markers for different GeoRSS feeds. Should be possible I
would think. Could anyone point me in the right direction? I am not a star in
JavaScript and have not had much success so far.</span></font></p>

<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;">&nbsp;</span></font></p>

<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;">Thanks to Christopher I have
been able to change the default icon using the script below. But doing so gives
all markers from different feeds the same icon. </span></font></p>

<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;">&nbsp;</span></font></p>

<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;">&nbsp;OpenLayers.Marker.defaultIcon
= function() {</span></font></p>

<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;">&nbsp;&nbsp;&nbsp;&nbsp; var
url = OpenLayers.Util.getImagesLocation() + &quot;marker.png&quot;;</span></font></p>

<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;">&nbsp;&nbsp;&nbsp;&nbsp; var
size = new OpenLayers.Size(21, 25);</span></font></p>

<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;">&nbsp;&nbsp;&nbsp;&nbsp;
return new OpenLayers.Icon(url,
size);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></p>

<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;">&nbsp;};</span></font></p>

<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;">&nbsp;</span></font></p>

<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;">If you do this before you
add your layer, your GeoRSS layer will use the new markers.</span></font></p>

<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Thanks for any help.</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Regards,<br>
Mark</span></font></p>

</div>

</div>



<br>_______________________________________________<br>Users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Users@openlayers.org">Users@openlayers.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://openlayers.org/mailman/listinfo/users" target="_blank">
http://openlayers.org/mailman/listinfo/users</a><br><br><br></blockquote></div><br><br clear="all"><br>-- <br>************************************<br>David William Bitner