resolution; $mapW = $_SESSION["mapwidth"]; $mapH = $_SESSION["mapheight"]; $dpiFactor = $imgDPI/$mapfileDPI; $newMapW = round($mapW * $dpiFactor); $newMapH = round($mapH * $dpiFactor); // APPLY TO MAP $map->set("width", $newMapW); $map->set("height", $newMapH); $map->set("resolution", $imgDPI); $scale = round($_SESSION["geo_scale"]); // APPLY ON VISIBLE GROUPS/LAYERS $groups = $_SESSION["groups"]; // call function PMCommon::setGroups($map, $groups, 0, 1); /* // Show also feature highlight // ADD RESULTLAYERS if (isset($_SESSION["resultlayers"])) { $resultlayers = $_SESSION["resultlayers"]; foreach ($resultlayers as $reslayer => $shpindexes) { addResultLayer($map, $reslayer, $shpindexes); } } */ // GET MAP IMAGE URL $printMap = new PrintMap($map, $newMapW, $newMapH, $scale, "dl", $imgDPI, $imgFormat, null); $printUrlList = $printMap->returnImgUrlList(); $printmapUrl = $printUrlList[0]; if ($imgFormat): header('Content-type: image/tiff'); header('Content-Disposition: attachment; filename="mapdownload.tif"'); readfile($printmapUrl); else: $printlegUrl = $printUrlList[1]; ?> Download

") ?>