Hi list,
I have added a control to my map to draw a polygon. Now I would like to give
this polygon a style, so I tried this:
redlining: new OpenLayers.Control.DrawFeature(vectorLayer,
OpenLayers.Handler.Polygon, {
type: OpenLayers.Control.TYPE_TOOL,
style: { fillColor: 'yellow' }
})
And it didn't work. How can I do something similar to this?
- Kristian Frost
--
View this message in context:
http://n2.nabble.com/Styling-a-feature-through-drawFeature-s-constructor-tp4674311p4674311.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users