small mistake,
var options = {
'icon': yelp // not icon: yelp
};
Alan
Alan Boudreault wrote:
> Hi,
>
> You should try this:
>
> var options = {
> icon: yelp
> };
> new1 = new OpenLayers.Layer.GeoRSS( 'GeoRSS', 'georss.xml', options);
>
> Alan
>
> Marcello Brunaldi wrote:
>
>> Hello everyone
>> I have a problem to change the icon and the size of the marker when I
>> use OpenLayers.Layer.GeoRSS, any size and any icon cheque with
>> OpenLayers.Icon is not taken.
>> Show always the marker by default.
>>
>> This is the code.
>>
>> yelp = new OpenLayers.Icon("blu.png", new OpenLayers.Size(20,29));
>> new1 = new OpenLayers.Layer.GeoRSS( 'GeoRSS', 'georss.xml', yelp);
>> map.addLayers([aste,unesco,punti,new1]);
>>
>> Marcello Brunaldi.
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Users mailing list
>> [email protected]
>> http://openlayers.org/mailman/listinfo/users
>>
>>
>
>
>
--
Alan Boudreault
Mapgears
http://www.mapgears.com
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users