friendlier name
authorRichard Fairhurst <richard@systemed.net>
Fri, 9 Jul 2010 09:35:03 +0000 (09:35 +0000)
committerRichard Fairhurst <richard@systemed.net>
Fri, 9 Jul 2010 09:35:03 +0000 (09:35 +0000)
TODO.txt
net/systemeD/potlatch2/VectorSourceDialog.mxml
net/systemeD/potlatch2/utils/OsmImporter.as

index 9047eff..184f341 100644 (file)
--- a/TODO.txt
+++ b/TODO.txt
@@ -17,6 +17,7 @@ Potlatch 2: main outstanding issues
 * TagTransform (cf http://wiki.openstreetmap.org/wiki/Osmosis/TagTransform)
 * Load GPX from API (probably into a designated 'GPX' layer which is automatically created)
 * Connectivity isn't preserved when bringing ways through (e.g. from OSM layer)
+* Should disable most forms of editing for vector layers
 
 == Saving ==
 
index ca09205..f1affdd 100644 (file)
     }
 
        private function loadFiles(url:String,type:String,simplify:Boolean):void {
-               var vectorlayer:VectorLayer=new VectorLayer(url,map,"potlatch.css");
+               var names:Array=url.split('/'); var name:String=names[names.length-1];
+               var vectorlayer:VectorLayer=new VectorLayer(name,map,"potlatch.css");
                vectorlayer.url=url;
-               map.vectorlayers[url]=vectorlayer;
+               map.vectorlayers[name]=vectorlayer;
                map.vectorbg.addChild(vectorlayer.paint);
 
                if (type=='gpx') {
index f98c961..7876a26 100755 (executable)
@@ -11,8 +11,6 @@ package net.systemeD.potlatch2.utils {
                        super(container,paint,filenames,callback,simplify);
                }
 
-               // http://127.0.0.1/~richard/osm/burton.osm
-
                override protected function doImport():void {
                        var xmlnsPattern:RegExp = new RegExp("xmlns[^\"]*\"[^\"]*\"", "gi");
                        var xsiPattern:RegExp = new RegExp("xsi[^\"]*\"[^\"]*\"", "gi");