replace old Yahoo cruft with shinier code
[potlatch2.git] / halcyon_viewer.as
index 7a8070f162e20323fce7efa4ba1f909c527fbf01..11f8fa8743d995429ea7bf5d90e63dd27c37bf63 100755 (executable)
@@ -68,8 +68,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);