$MAP_PANEL["all"]["info"] = true;
$MAP_LAYER["demo"]["layers"]["budovy"]["active"] = true;
<?
$MAP_INFO["budovy"] = array(
"type"=>"MapServer",
"caption"=>"Budovy",
"table"=>array(
"connection"=>"demo",
"name" => "budovy",
"schema"=>array(
"CPOP"=>"číslo popisné",
"OBJEKT_KOD"=>"Kód objektu"
)
),
"output"=>"table"
);
?>
TOLERANCE 0
TOLERANCEUNITS meters
QUERY
TEMPLATE '../../data/demo/budovy_p.html'
# relativní cesta k šabloně
END # QUERY
$data=array( "layer"=>"[cl]", "ext"=>"[shpext]", "id"=>"[OBJEKT_KOD]", "OBJEKT_KOD"=>"[OBJEKT_KOD]", "CPOP"=>"[CPOP]" );
$MAP_PANEL["all"]["hotlink"] = true;
$MAP_LINK["budovy"] = array(
"type"=>"MapServer",
"caption"=>"Budovy",
"selected"=>true,
"hotlink"=>GetAgendaPath("UIRADR_OBJEKT", false, true)."/brow.php?client_lang=cz_iso&hide_tel=1&OBJEKT_KOD=",
"table"=>array(
"connection"=>"demo",
"name" => "budovy",
"hotlink_field" => "OBJEKT_KOD",
"schema"=>array(
"OBJEKT_KOD"=>""
)
)
);
$MAP_PANEL["all"]["edit"] = true;
$MAP_LINK["kina"] = array(
"type"=>"Table",
"caption"=>"Kina",
"edit"=>array(
"link"=>GetAgendaPath("KINA", false, true)."/edit.php",
"request"=>"&RELOAD_FRAME=map",
"left"=>350,
"top"=>50,
"width"=>600,
"height"=>400
),
"output"=>array(
"target"=>"NewWindow",
"name"=>"Athos",
"features"=>"resizable,scrollbars,width=500,height=500"
),
"hotlink"=>GetAgendaPath("KINA", false, true)."/brow.php?client_lang=cz_iso&ID=",
"size_type"=>"pixel",
"size"=>16,
"table"=>array(
"connection"=>"DB_HK",
"name" => "kina",
"hotlink_field" => "ID",
"schema"=>array(
"ID"=>"kód kina"
)
)
);
$MAP_PANEL["map"]["db"] = true;
$MAP_PANEL["all"]["legend"] = true;
$MAP_STYLE["demo"] = array(
"desc"=>"Mapa čísel popisných",
"type"=>"MapServer",
"legend"=>array(
"image"=>"legenda/seznam.gif"
),
"parameters"=>array(
"mode"=>"map"
)
);
$MAP_PANEL["all"]["print_ext"] = true;
<?
$arr = Explode('&',$QUERY_STRING);
for($i=0;$i<Count($arr);$i++) {
list($key,$val) = Explode('=',$arr[$i]);
$keyarr[$key] = $val;
}
$keyarr["FORMAT"] = "GIF";
$arr = array();
while(list($key,$val) = each($keyarr)) {
$arr[] = "$key=$val";
}
$query = Implode('&',$arr);
$scale = "name=crm&mapext=".$BBOX."&mode=scalebar";
$scale = StrTr($scale,",","+");
echo "<h1>Print Map</h1>\n";
echo "<img src=\"../map.php?$query\" WIDHT=650 HEIGHT=537 BORDER=1><BR>";
echo "<img src=\"../map_image.php?$scale\" WIDHT=421 HEIGHT=47>";
?>