hey,
thanks for answering. i tried to change the style attributes like:
function changeColor(vector)
{
var style = new OpenLayers.Style({fillColor : "red",
fillOpacity : 0.4});
if(selectedOption == 1)
{
vector.feature.style = style;
drawingLayer.redraw();
}
}
vector is my drawn polygon and the changeColor method is called with the
beforefeatureadded event. So it changes the style but then all is black.
Greetings
--
View this message in context:
http://osgeo-org.1560.n6.nabble.com/drawing-polygons-with-different-Colors-tp3910758p4355859.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