[OpenLayers-Users] can't style a feature .... please help

JK Chen jk.chen at sdl.usu.edu
Wed Jun 29 17:27:02 EDT 2011


Hi,

I am trying to style individual feature with OpenLayers.Feature.Vector statement, as this:

                              ...
                              lines = new OpenLayers.Geometry.LineString([p1,p2, p3, p4, p1]);
                              polygon1 = new OpenLayers.Feature.Vector(lines, {strokeWidth:5, 'strokeColor': '#ff0000'});

However, it's not working for me.

Is there anything missing?

Thanks.

JK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110629/5059b90a/attachment.html


More information about the Users mailing list