[OpenLayers-Users] StyleMap for vector layer
Morescratch
morescratch at live.com
Mon Jan 7 14:12:15 PST 2013
Hi all,
I am missing something relevant in my code. I can't get a Vector layers to
use a StyleMap. Here is the offending code:
var gangnam_style = new OpenLayers.StyleMap({
"default": new OpenLayers.Style(
{
strokeColor: "#990000",
fillColor: "#990000"
})
});
var my_layer = new OpenLayers.Layer.Vector("My Layer", { styleMap:
gangnam_style });
Any ideas on what I am missing?
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/StyleMap-for-vector-layer-tp5026037.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list