fix dynamically applied NodeUI state classes to invalidate style list when changed
[potlatch2.git] / net / systemeD / halcyon / NodeUI.as
index 4ad5bd9277ae9389eeac2f25571467e9bdc89e77..07477bc6e0dcd0f72bb5a8bfb3c358eb5cc12080 100644 (file)
@@ -54,10 +54,10 @@ package net.systemeD.halcyon {
                        if (entity.deleted) { return false; }
 
                        var tags:Object = entity.getTagsCopy();
+                       setStateClass('poi', !entity.hasParentWays);
+            setStateClass('hasTags', entity.hasInterestingTags());
+            setStateClass('dupe', Node(entity).isDupe());
                        tags=applyStateClasses(tags);
-                       if (!entity.hasParentWays) { tags[':poi']='yes'; }
-            if (entity.hasInterestingTags()) { tags[':hasTags']='yes'; }
-            if (Node(entity).isDupe()) { tags[':dupe']='yes'; }
                        if (!styleList || !styleList.isValidAt(paint.map.scale)) {
                                styleList=paint.ruleset.getStyles(entity,tags,paint.map.scale); 
                        }