map = $map; $this->categories = $categories; $this->legendonly = $legendonly; $this->legPath = "images/legend/"; //$this->mutualDisableList = $_SESSION['mutualDisableList']; $this->catStyle = $_SESSION["catStyle"]; $this->grpStyle = $_SESSION["grpStyle"]; $this->legStyle = $_SESSION["legStyle"]; $this->grouplist = $_SESSION["grouplist"]; $this->defGroups = $_SESSION["defGroups"]; $this->allGroups = $_SESSION["allGroups"]; $this->icoW = $_SESSION["icoW"]; // Width in pixels $this->icoH = $_SESSION["icoH"]; // Height in pixels $this->imgFormat = $_SESSION["imgFormat"]; $this->scaleLayers = $_SESSION["scaleLayers"]; $this->scale = $_SESSION['geo_scale']; // GET LAYERS FOR DRAWING AND IDENTIFY if (isset ($_SESSION["groups"]) && count($_SESSION["groups"]) > 0){ $this->groups = $_SESSION["groups"]; } else { $this->groups = $this->defGroups; } } function writeToc() { // Legend style POPUP: add 'show' button if ($this->legStyle == "popup" && !$this->legendonly) { $toc .= $this->printButton(_p("Show Legend"), "showPopupLegend()"); } // Legend stle SWAP: add 'show' button if ($this->legStyle == "swap") { if (!$this->legendonly) { $toc .= $this->printButton(_p("Show Legend"), "swapToLegendView()"); } else { $toc .= $this->printButton(_p("Show Layers"), "swapToLayerView()"); } } $tabclass = $this->legendonly ? "class=\"legtab\"" : ""; $catW = $this->legStyle == "attached" ? "100" : "98"; $toc .= "
icoW . "px\">icoW\" height=\"$this->icoH\" /> | "; $gstr .= "" . addslashes($cl) . " | "; $gstr .= "