[OpenLayers-Users] problem using pointRadius computed in context
Didrik Pinte
lists at dipole-consulting.com
Mon Mar 16 06:51:46 EDT 2009
On Sun, 2009-03-08 at 23:12 -0700, sylvie fiat wrote:
> Hi,
>
> I have the same problem and it's taking me hours, did you figure out what
> was the problem ?
> I have tried :
> styleMap: new OpenLayers.StyleMap(OpenLayers.Util.applyDefaults(
> { pointRadius: function(feature){return
> Math.min(feature.attributes.count, 7) + 3;},
> fillColor: "blue",
> fillOpacity: 0.5,
> strokeColor: "black"},
> OpenLayers.Feature.Vector.style["default"]))
>
> But I got the error:
> unexpected value function (feature) { return
> Math.min(feature.attributes.count, 7) + 3; } parsing r attribute.
>
> Thanks for any help.
> Sylvie
Hi Sylvie,
I guess it was related to some errors in my javascript file. I would
suggest you to use online javascriptlint to check your syntax and
identify potential errors.
Didrik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090316/b1dfcae8/attachment.bin
More information about the Users
mailing list