[OpenLayers-Users] Styling a feature through drawFeature's constructor

Frost89 kristian_frost7 at hotmail.com
Thu Mar 4 08:41:07 EST 2010


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.



More information about the Users mailing list