aproxima(3);
$m->salva();
}
if ($tipo=="zoommenos")
{
include("../classesphp/classe_navegacao.php");
$m = new Navegacao($tmpfname);
$m->afasta(3);
$m->salva();
}
if ($tipo=="norte")
{
include("../classesphp/classe_navegacao.php");
$m = new Navegacao($tmpfname);
$x = $m->mapa->width;
$x = $x/2;
$y = 0;
$m->pan($x,$y,"","");
$m->salva();
}
if ($tipo=="sul")
{
include("../classesphp/classe_navegacao.php");
$m = new Navegacao($tmpfname);
$x = $m->mapa->width;
$x = $x/2;
$y = $m->mapa->height;
$m->pan($x,$y,"","");
$m->salva();
}
if ($tipo=="leste")
{
include("../classesphp/classe_navegacao.php");
$m = new Navegacao($tmpfname);
$x = $m->mapa->width;
$y = $m->mapa->height/2;
$m->pan($x,$y,"","");
$m->salva();
}
if ($tipo=="oeste")
{
include("../classesphp/classe_navegacao.php");
$m = new Navegacao($tmpfname);
$x = 0;
$y = $m->mapa->height/2;
$m->pan($x,$y,"","");
$m->salva();
}
if ($tipo=="localizar")
{
include("localizar.php");
exit;
}
$mapa = ms_newMapObj($tmpfname);
$w = $mapa->width;
$h = $mapa->height;
if (isset($utilizacgi) && strtolower($utilizacgi) == "sim")
{$nomeimagem = $locmapserv."?map=".$tmpfname."&mode=map";}
else
{
$imgo = $mapa->draw();
$nome = ($imgo->imagepath).nomeRandomico().".png";
$imgo->saveImage($nome);
$nomeimagem = ($imgo->imageurl).basename($nome);
}
?>