Возможно / есть ли обходной путь для сравнения свойств второго уровня в OpenLayers.Filter.Comparison?
feature.attributes / context is sth.как:
{'foo': 'bar', 'baz': {'lorem': 'ipsum', 'dolor': 'sit'}, 'amet': 1337}
правило выглядит так:
var rule = new OpenLayers.Rule({
filter: new OpenLayers.Filter.Comparison({
type: '==',
property: 'baz.dolor', /* <- this does not work! */
value: 'sit'
}),
symbolizer: {
graphic: true,
graphicZIndex: 100,
backgroundGraphicZIndex: 500,
externalGraphic: OpenLayers.Util.getImagesLocation() + 'foo.png',
graphicHeight: 22,
graphicWidth: 22,
graphicTitle: '${display_name}',
strokeColor: '#FF0000'
}
});