1 package net.systemeD.potlatch2.utils {
3 import net.systemeD.halcyon.Map;
4 import net.systemeD.halcyon.VectorLayer;
5 import net.systemeD.halcyon.connection.Marker;
6 import net.systemeD.potlatch2.BugLayer;
9 import flash.system.Security;
11 public class BugLoader {
14 private var bugBaseURL:String;
15 private var bugApiKey:String;
16 private var bugDetailsURL:String;
17 private var _layer:VectorLayer;
18 private var name:String;
19 private static const STYLESHEET:String="stylesheets/bugs.css";
22 public function BugLoader(map:Map, url:String, bugApiKey:String, name:String, details:String = ''):void {
24 this.bugBaseURL = url;
25 this.bugApiKey = bugApiKey;
27 this.bugDetailsURL = details;
30 public function load():void {
31 layer.loadBbox(map.edge_l, map.edge_r, map.edge_t, map.edge_b);
35 private function get layer():VectorLayer {
36 // >>>> REFACTOR: VectorLayer commented out
38 // var policyFile:String = bugBaseURL+"crossdomain.xml";
39 // Security.loadPolicyFile(policyFile);
40 // _layer=new BugLayer(name,map,STYLESHEET,bugBaseURL,bugApiKey,bugDetailsURL);
41 // map.addVectorLayer(_layer);