[OpenLayers-Users] Changing icons in GeoRSS layer?
Christopher Schmidt
crschmidt at metacarta.com
Fri Aug 3 08:57:22 EDT 2007
On Thu, Aug 02, 2007 at 11:13:51PM -0600, Gregor Mosheh wrote:
> > I have a GeoRSS layer working; that part was easy.
> > Now I would like to change the icons for the markers.
>
> Curioser and curioser. Although the API doc mentions that the layer has
> a 'icon' property to set the icon for the points, looking at the source
> (Layer/GeoRSS.js line 146) seems to indicate that the icon will always
> be OpenLayers.Marker.defaultIcon(). There's no indication that the
> 'icon' property is in fact used. Am I wrong about this?
>
> My particular issue is of changing the icons after the fact, but I found
> this interesting.
Versions, my friend.
This isn't obvious, since we didn't have APIDocs in 2.4, but the icon
property was added after 2.4, and is currently only in trunk.
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list