I'm pulling in attributes from a KML. They are in the standard Data format
within an ExtendedData tag, and they load in just fine:
<Data name='numberunemployedjanuary2009'>
<displayName>Whatever</displayName>
<value><![CDATA[173.6]]></value>
</Data>
will yield feature.attributes.numberunemployedjanuary2009.value = 173.6
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?
Thanks!!
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/OpenLayers-Filter-Comparison-property-and-KML-ExtendedData-attributes-tp5504680p5504680.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users