[OpenLayers-Users] initialisation of style object

Bart van den Eijnden (OSGIS) bartvde at osgis.nl
Thu Dec 8 01:31:55 EST 2011


That should have read ${radius} instead of {$radius}.

Best regards,
Bart

> Can you share your code snippet?
>
> Is the radius available as a feature attribute? In that case you could use
> something like {$radius}.
>
> Best regards,
> Bart
>
>>
>> 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
>>
>>
>>
>>
>> --
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>




More information about the Users mailing list