Upgrade babelfx to 2.0.4, add more injectors to the localmap, and rework the loading...
[potlatch2.git] / halcyon_viewer.as
old mode 100755 (executable)
new mode 100644 (file)
index 11f8fa8..cbf3c91
@@ -27,6 +27,7 @@ package {
             theMap.updateSize(stage.stageWidth, stage.stageHeight);
                        addChild(theMap);
                        Globals.vars.root=theMap;
+                       Globals.vars.nocache = loaderInfo.parameters['nocache'] == 'true';
 
                        // add debug field
                        var t:TextField=new TextField();
@@ -68,7 +69,7 @@ package {
                }
 
                private function onRefreshCSS(str:String):void {
-                       theMap.setStyle(str);
+                       theMap.editableLayer.setStyle(str);
                }               
                private function onJumpTo(lat:Number,lon:Number):void {
                        theMap.init(lat,lon);