[OpenLayers-Users] Common style for points, lines and polygons
Yves Moisan
yves.moisan at boreal-is.com
Tue Nov 24 15:00:55 EST 2009
Hi All,
I'm trying to get a common style for any of (point,line,polygon). I
thought something like :
var s = new OpenLayers.Style({
fillColor: "#0000FF",
strokeColor: "#0000FF",
strokeWidth: 2
});
var myStyles = new OpenLayers.StyleMap(s);
would work, but I only get blue lines and nothing for points. I haven't
tried polygons but I'm confident it works. I thought since all the
properties defined in the style apply to all feature types I should
expect blue points but instead I get nothing. I'm using OpenLayers
trunk. Any clue ?
TIA,
Yves
More information about the Users
mailing list