Update trackloader to avoid using VectorLayer
[potlatch2.git] / net / systemeD / halcyon / Map.as
index e24a6ce67e1460d509072fb4fca984a29f2e09c4..1c79093124a369da04430a66001d568aa947b094 100644 (file)
@@ -245,10 +245,11 @@ package net.systemeD.halcyon {
                // ------------------------------------------------------------------------------------------
                // Add layers
                
-               public function addLayer(connection:Connection, styleurl:String, backgroundlayer:Boolean=true):void {
+               public function addLayer(connection:Connection, styleurl:String, backgroundlayer:Boolean=true):MapPaint {
                        var paint:MapPaint=new MapPaint(this, connection, styleurl, -5, 5);
                        paintContainer.addChild(paint);
                        paint.isBackground=backgroundlayer;
+                       return paint;
                }
 
                public function removeLayerByName(name:String):void {