diff --git a/mobile/desligar.php b/mobile/desligar.php
index edc70dd..a074c14 100644
--- a/mobile/desligar.php
+++ b/mobile/desligar.php
@@ -22,6 +22,7 @@ input
font:14pt arial,helvetica,clean,sans-serif;
color:black;
cursor:pointer;
+ background-color:white;
}
diff --git a/mobile/escala.php b/mobile/escala.php
new file mode 100644
index 0000000..fafc3bd
--- /dev/null
+++ b/mobile/escala.php
@@ -0,0 +1,48 @@
+
+
+
+
+
+
+
+
+
+retornaBarraEscala());
+echo "
";
+?>
\ No newline at end of file
diff --git a/mobile/legenda.php b/mobile/legenda.php
new file mode 100644
index 0000000..9401117
--- /dev/null
+++ b/mobile/legenda.php
@@ -0,0 +1,51 @@
+
+
+
+
+
+
+criaLegenda();
+if(!$r){$r = "erro. Legenda nao disponivel";}
+$r = mb_convert_encoding($r,"ISO-8859-1","UTF-8");
+echo $r;
+?>
+
+
+
\ No newline at end of file
diff --git a/mobile/ligar.php b/mobile/ligar.php
index b2b1cb8..2544713 100644
--- a/mobile/ligar.php
+++ b/mobile/ligar.php
@@ -22,6 +22,7 @@ input
font:14pt arial,helvetica,clean,sans-serif;
color:black;
cursor:pointer;
+ background-color:white;
}
diff --git a/mobile/localizar.php b/mobile/localizar.php
new file mode 100644
index 0000000..4e8ba93
--- /dev/null
+++ b/mobile/localizar.php
@@ -0,0 +1,167 @@
+
+
+
+
+
+
+
+
+";
+ $layer = $linha["layer"];
+ foreach ($lugares as $lugar)
+ {
+ $wkt = $lugar["limite"];
+ $wkt = str_replace("POLYGON","",$wkt);
+ $wkt = explode("(",$wkt);
+ $wkt = explode(")",$wkt[2]);
+ $wkt = explode(",",$wkt[0]);
+ for($w=0;$w".$nome."
";
+ }
+
+ }
+}
+if($tipo == "zoom")
+{
+ $mapa = ms_newMapObj($tmpfname);
+ $ext = $mapa->extent;
+ $wkt = explode(",",$wkt);
+ $ext->setextent($wkt[0],$wkt[1],$wkt[2],$wkt[3]);
+ $mapa->save($tmpfname);
+ $servico = "http://mapas.mma.gov.br/webservices/geonameswms.php?gid=".$gid;
+ $nomecamada = $nome." - ".$layer;
+ $nome = "default";
+ $proj = "EPSG:4291";
+ $formato = "image/png";
+ $suportasld = "nao";
+ $versao = "1.1.0";
+ $m = new Mapa($tmpfname);
+ $m->adicionatemawms($layer,$servico,$nome,$proj,$formato,$locaplic,$tipo,$versao,$nomecamada,$dir_tmp,$imgdir,$imgurl,$tiporep,$suportasld,$formatosinfo);
+ $m->salva();
+ //echo $tmpfname;exit;
+ $urln = "mobile.php?tmpfname=".$tmpfname;
+ echo "";
+
+/*
+ var re = new RegExp("POLYGON", "g")
+ wkt = wkt.replace(re,"")
+ wkt = wkt.split("(")[2].split(")")[0]
+ wkt = wkt.split(",");
+ x = new Array();
+ y = new Array();
+ for (w=0;w
+
+
+
\ No newline at end of file
diff --git a/mobile/mobile.php b/mobile/mobile.php
index 4ed8ee4..dcea4b5 100644
--- a/mobile/mobile.php
+++ b/mobile/mobile.php
@@ -79,16 +79,6 @@ if ($tipo=="oeste")
$m->pan($x,$y,"","");
$m->salva();
}
-if ($tipo=="ligar")
-{
- include("ligar.php");
- exit;
-}
-if ($tipo=="desligar")
-{
- include("desligar.php");
- exit;
-}
$mapa = ms_newMapObj($tmpfname);
$w = $mapa->width;
$h = $mapa->height;
@@ -102,7 +92,7 @@ else
$nomeimagem = ($imgo->imageurl).basename($nome);
}
?>
-