Use public vars for toolbox delete strings so that they can be translated
[potlatch2.git] / halcyon_viewer.as
old mode 100755 (executable)
new mode 100644 (file)
index 7a8070f..3b01b9e
@@ -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,8 +69,7 @@ package {
                }
 
                private function onRefreshCSS(str:String):void {
-                       theMap.ruleset.loadFromCSS(str);
-                       theMap.redraw();
+                       theMap.setStyle(str);
                }               
                private function onJumpTo(lat:Number,lon:Number):void {
                        theMap.init(lat,lon);