[OpenLayers-Users] Problem with marker
Alan Boudreault
aboudreault at mapgears.com
Tue Jul 8 14:15:50 EDT 2008
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
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
>>
>
>
>
--
Alan Boudreault
Mapgears
http://www.mapgears.com
More information about the Users
mailing list