hello
i use this openlayer extension to create a cluster of markers
i try to create a rule to attribute a special extranet graphic where there is only one point
i define a feature like this
var f = new OpenLayers.Feature.Vector(
new OpenLayers.Geometry.Point( lon, lat ).transform(new OpenLayers.Projection("EPSG:4326"), map.getProjectionObject()),
{
"id_test":id_lieu,"cat":cat_id,"description": "marker number " + i
}
);
and i have this rule but i can't get ${cat} the returned value is "undefined"
thanks for your help
var oneRule = new OpenLayers.Rule({
// context:context,
filter: new OpenLayers.Filter.Comparison({
type: OpenLayers.Filter.Comparison.EQUAL_TO,
property: "count",
value: 1
}),
symbolizer: {
fillOpacity: 1,
opacity : 1,
externalGraphic: "/drawable-hdpi/theme/Cat_ + "${cat}" + ".png",
graphicHeight: 50, graphicWidth: 50, graphicXOffset:-25, graphicYOffset:-25
}
});
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Cant-get-attribute-value-of-a-feature-in-a-rule-tp5090998.html">Cant' get attribute value of a feature in a rule</a><br/>
Sent from the <a href="http://osgeo-org.1560.x6.nabble.com/OpenLayers-Users-f3910695.html">OpenLayers Users mailing list archive</a> at Nabble.com.<br/>