On Sep 6, 2010, at 6:29 PM, zforest wrote:

I'm trying to use these attributes in a styleMap with styling rules/ filters. OpenLayers.Filter.Comparison has a 'property' property, but this only takes a single string. So setting that property to 'numberunemployedjanuary2009'
doesn't work, since

feature.attributes.numberunemployedjanuary2009 = { displayName : 'Whatever',
value : 173.6 }

Is there any way to get OpenLayers.Filter.Comparison can recognize a nested
property like this?

I submitted a new filter as a patch, which would allow you to filter features based on a JavaScript callback function. That would allow you to do the filtering you describe.

http://trac.openlayers.org/ticket/2818

Hopefully this can be accepted at some point.

alex
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to