fix issue with ways in relations not displaying if you panned about; make the stylesh...
[potlatch2.git] / net / systemeD / halcyon / connection / Connection.as
index 34c6943108b17ed876f9cd123f25eca3a10ce3c2..965d12f8da73196e6950a58a390e386bccbf604b 100755 (executable)
@@ -76,17 +76,17 @@ package net.systemeD.halcyon.connection {
 
         protected function setNode(node:Node):void {
             nodes[node.id] = node;
-            sendEvent(new EntityEvent(NEW_NODE, node));
+            if (node.loaded) { sendEvent(new EntityEvent(NEW_NODE, node)); }
         }
 
         protected function setWay(way:Way):void {
             ways[way.id] = way;
-            sendEvent(new EntityEvent(NEW_WAY, way));
+            if (way.loaded) { sendEvent(new EntityEvent(NEW_WAY, way)); }
         }
 
         protected function setRelation(relation:Relation):void {
             relations[relation.id] = relation;
-            sendEvent(new EntityEvent(NEW_RELATION, relation));
+            if (relation.loaded) { sendEvent(new EntityEvent(NEW_RELATION, relation)); }
         }
 
                public function sendEvent(e:*):void {