Allow pubs to be given names.
[potlatch2.git] / potlatch2.mxml
index c862b3d65b6d7fd6b3a92e79c76912eebb9716e7..0ed126352b574ea8fb59740d0abbe2b3ca4f9b6b 100755 (executable)
             var lat:Number = Globals.vars.root.coord2lat(mapLoc.y);
             var lon:Number = Globals.vars.root.coord2lon(mapLoc.x);
             var node:Node = Connection.getConnectionInstance().createNode({}, lat, lon);
-            for each( var tag:Array in tags ) {
-              node.setTag(tag[0],tag[1]);
+            for each ( var tag:Object in tags ) {
+              node.setTag(tag.k, tag.v);
             }
                        Connection.getConnectionInstance().registerPOI(node);
         }