context can now be given as argument in StyleMap.addUniqueValueRules()

this, for example, allows user to access to properties that are not part of the feature attributes.
r=elemoine (closes #1548)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@7216 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
pgiraud
2008-05-19 13:34:35 +00:00
parent 34ff282397
commit 815e55888a
4 changed files with 77 additions and 2 deletions
+3
View File
@@ -173,6 +173,9 @@ OpenLayers.Rule = OpenLayers.Class({
if (!context) {
context = feature.attributes || feature.data;
}
if (typeof this.context == "function") {
context = this.context(feature);
}
return context;
},