From 710974a13eea971f7ab5114a7358fc4481d61f4b Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Thu, 31 Jan 2008 18:26:01 +0000 Subject: [PATCH] Modificação na interface com a inclusão de ícones de navegação ao invés de botões --- mobile/mobile.php | 34 +++++++++++++++++++++++++++++++++- mobile/navegacao.png | Bin 0 -> 3811 bytes 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 mobile/navegacao.png diff --git a/mobile/mobile.php b/mobile/mobile.php index 37fe0ed..ed448c5 100644 --- a/mobile/mobile.php +++ b/mobile/mobile.php @@ -21,6 +21,7 @@ input @@ -119,6 +120,7 @@ if ($tipo=="localizar") $mapa = ms_newMapObj($tmpfname); $w = $mapa->width; $h = $mapa->height; +/* if (isset($utilizacgi) && strtolower($utilizacgi) == "sim") {$nomeimagem = $locmapserv."?map=".$tmpfname."&mode=map";} else @@ -128,14 +130,36 @@ else $imgo->saveImage($nome); $nomeimagem = ($imgo->imageurl).basename($nome); } +*/ +error_reporting(E_ALL); +$imgo = $mapa->draw(); +$nome = ($imgo->imagepath).nomeRandomico().".png"; +$imgo->saveImage($nome); +$nomeimagem = ($imgo->imageurl).basename($nome); +//funde com a imagem da barra de navegacao +$ims = imagecreatefrompng("navegacao.png"); +$img = imagecreatefrompng($nome); +$wdst = imagesx($img); +$hdst = imagesy($img); +$wsrc = imagesx($ims); +$hsrc = imagesy($ims); +$xdst = abs(($wdst - $wsrc) / 2); +$ydst = abs(($hdst - $hsrc) / 2); +$branco = imagecolorresolve($ims,255,255,255); +//imagecolortransparent($ims,$branco); +//imageSaveAlpha($ims, true); +imagecopymerge($img,$ims,0,0,0,0,$wsrc,$hsrc,80); +ImagePNG($img, $nome); ?>
+ - + + + + + + + + +