helloi use this openlayer extension to create a cluster of markersi try to
create a rule to attribute a special extranet graphic where there is only
one pointi define a feature like thisvar 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     
          
}            });



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Cant-get-attribute-value-of-a-feature-in-a-rule-tp5090998.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
us...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to