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,
     graphicWidth: 18,
     graphicHeight: 18
    }));

I attach all the features to a vector layer, and when it renders, there is
nothing on the map.
If I don't add the style, the default yellow circle is used. 

Thanks for any hints!


Dan

-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/feature-vector-and-style-param-tp5542727p5542727.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to