On Friday, September 17, 2010, ChiefDan <[email protected]> wrote:
>
> Is the style attribute in the Feature.Vector used at all?
> I am creating features from a geoJSON file, one of the properties stored is
> which icon to use to represent the feature. In my code, as I create the
> Feature.Vector, I am setting the style similar to this(I'm using
> feature.vector as a parent class):
>
>    this.style = new OpenLayers.StyleMap( new OpenLayers.Style({
>      externalGraphic: iconUrl,

shouldn't it be ${iconUrl} instead?


>      graphicWidth: 18,
>      graphicHeight: 18
>     }));
>

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : [email protected]
http://www.camptocamp.com
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to