Merge branch 'localfile'
[potlatch2.git] / net / systemeD / potlatch2 / collections / VectorBackgrounds.as
index 446799b5537c9aeb0fa4ae6db0ac6f127ce3f4c5..0a8d61086548fd4d982f9a6800b0942e89a2952d 100644 (file)
@@ -72,13 +72,14 @@ package net.systemeD.potlatch2.collections {
                                                                                var gpx_url:String = String(set.url);
 
                                                                                var connection:Connection = new Connection(name, gpx_url, null, null);
-                                                                               var gpx:GpxImporter=new GpxImporter(connection, _map, [gpx_url],
+                                                                               var gpx:GpxImporter=new GpxImporter(connection, _map, 
                                                                                function(success:Boolean,message:String=null):void {
                                                                                        if (!success) return;
                                                                                        var paint:MapPaint = _map.addLayer(connection, "stylesheets/gpx.css");
                                                                                        paint.updateEntityUIs(false, false);
                                                                                        dispatchEvent(new Event("layers_changed"));
                                                                                }, false);
+                                                                               gpx.importFromRemoteFiles([gpx_url]);
                                                                        } else {
                                                                        trace("VectorBackgrounds: configured but not loaded isn't supported yet");
                                                                        }