Ok, so I'm trying to use the ICON tag out of a GeoRSS feed to display the ICONS on the map.
I've added to the /format/georss.js and it returns either the value of the icon path (URL) or NULL back into feature.attributes.icon,
/* Provide icon data and default */
var iconURL = this.getChildValue(item, "*", "icon", this.iconURL);
if(!iconURL) {
iconURL = null;
}
Now I'm stuck at modifying the function in /layer/GeoRSS.js (line 183)...
Anyone that can provide a pointer on how to fix this
data.icon = this.icon == null ?
OpenLayers.Marker.defaultIcon() :
this.icon.clone();
to use the icon in the feature, and the default if none is defined?
I've tried setting OpenLayers.Marker.Icon(feature.attributes.icon); but keep getting an object expected error.
Any help would be appreciated.
Thanks,
Levii
_______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
