[OpenLayers-Users] Re: drawing polygons with different Colors
Peter
pfischer at proveo.com
Wed Feb 1 05:12:16 EST 2012
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.
More information about the Users
mailing list