Merge branch 'master' into history
[potlatch2.git] / net / systemeD / potlatch2 / utils / BugLoader.as
index b9532cb..d9caabc 100644 (file)
@@ -27,21 +27,13 @@ package net.systemeD.potlatch2.utils {
             this.name = name;
             this.bugDetailsURL = details;
             connection = new BugConnection(name, url, bugApiKey, details);
+            _layer = map.addLayer(connection, STYLESHEET, true, true);
+            _layer.visible = false;
         }
 
         public function load():void {
+            _layer.visible = true;
             connection.loadBbox(map.edge_l, map.edge_r, map.edge_t, map.edge_b);
         }
-
-        private function get layer():MapPaint {
-            if (!_layer) {
-                // should be done by the connection
-                var policyFile:String = bugBaseURL+"crossdomain.xml";
-                Security.loadPolicyFile(policyFile);
-
-                _layer = map.addLayer(connection, STYLESHEET);
-            }
-            return _layer;
-        }
     }
 }
\ No newline at end of file