restore default namespace after XML parsing, to guard against weird "invalid register...
authorRichard Fairhurst <richard@systemed.net>
Sun, 5 Dec 2010 20:48:59 +0000 (20:48 +0000)
committerRichard Fairhurst <richard@systemed.net>
Sun, 5 Dec 2010 20:48:59 +0000 (20:48 +0000)
net/systemeD/halcyon/connection/Trace.as
net/systemeD/potlatch2/collections/Imagery.as
net/systemeD/potlatch2/utils/BikeShopLoader.as
net/systemeD/potlatch2/utils/GpxImporter.as
net/systemeD/potlatch2/utils/KmlImporter.as
net/systemeD/potlatch2/utils/TrackLoader.as

index 4662bf4..2986f1d 100644 (file)
@@ -127,6 +127,7 @@ package net.systemeD.halcyon.connection {
                                layer.registerPOI(node);
             }
 
+                       default xml namespace = new Namespace("");
             layer.paint.updateEntityUIs(layer.getObjectsByBbox(map.edge_l,map.edge_r,map.edge_t,map.edge_b), true, false);
         }
     }
index fd3a3ae..6dc6957 100644 (file)
@@ -146,6 +146,7 @@ package net.systemeD.potlatch2.collections {
                 }
                 attribution[ImageryProvider.Attribution]=areas;
             }
+                       default xml namespace = new Namespace("");
                        bg.attribution=attribution;
                        setAttribution();
                }
index 71fc118..7b396db 100644 (file)
@@ -62,6 +62,7 @@ package net.systemeD.potlatch2.utils {
               tags["description"] = String(placemark.description);
               var marker:Marker = layer.createMarker(tags, lat, lon);
             }
+                       default xml namespace = new Namespace("");
             layer.paint.updateEntityUIs(layer.getObjectsByBbox(map.edge_l,map.edge_r,map.edge_t,map.edge_b), true, false);
         }
 
index 40f41df..43070d4 100644 (file)
@@ -44,6 +44,8 @@ package net.systemeD.potlatch2.utils {
                                var node:Node = container.createNode(tags, wpt.@lat, wpt.@lon);
                                container.registerPOI(node);
                        }
+
+                       default xml namespace = new Namespace("");
                }
        }
 }
index 9e9922a..b8ee48d 100644 (file)
@@ -72,6 +72,7 @@ package net.systemeD.potlatch2.utils {
                     }
                 }
             }
+                       default xml namespace = new Namespace("");
         }
 
         private function importNode(coordinates:String, tags:Object): Node {
index 4a0e170..f11dcd3 100644 (file)
@@ -71,6 +71,7 @@ package net.systemeD.potlatch2.utils {
                 if (nodestring.length > 0) { layer.createWay({}, nodestring); }
                        }
             
+                       default xml namespace = new Namespace("");
                        layer.paint.updateEntityUIs(layer.getObjectsByBbox(left,right,top,bottom), false, false);
                }