[OpenLayers-Users] initialisation of style object

Dave Potts dave.potts at pinan.co.uk
Thu Dec 8 01:14:49 EST 2011


hi list,

I am trying to create a new style object.

My start up code says

var foo = new OpenLayers.Style({pointRadius:10})

By the time it gets to the renderer object the style object should include
the following value

foo.pointRadius=45

but in my case it actual reads

foo.pointRadius=0

I am not using the Stylemap object

I had assumed the calling style object with the pointRadius set  like this
would have correctly set up the style object.

Which api call should I be calling to ensure this transformation happens?
Regards


Dave




-- 




More information about the Users mailing list