diff --git a/mobile/index.php b/mobile/index.php index ef99b40..02634da 100644 --- a/mobile/index.php +++ b/mobile/index.php @@ -75,6 +75,7 @@ $mapas = $m->pegaListaDeMapas($locmapas); echo "

Escolha um dos mapas:

"; foreach($mapas["mapas"] as $obj) { + if($obj["TEMAS"] != "") echo "".$obj["NOME"]."

"; } echo "

ou uma das opções:

"; diff --git a/mobile/localizar.php b/mobile/localizar.php index 15e2b78..8f6e8e3 100644 --- a/mobile/localizar.php +++ b/mobile/localizar.php @@ -92,27 +92,31 @@ if ($tipo == 'executa') $layer = $linha["layer"]; foreach ($lugares as $lugar) { + $x = array(); + $y = array(); $wkt = $lugar["limite"]; - $wkt = str_replace("POLYGON","",$wkt); - $wkt = explode("(",$wkt); - $wkt = explode(")",$wkt[2]); - $wkt = explode(",",$wkt[0]); + $wkt = str_replace("POLYGON((","",$wkt); + $wkt = str_replace("))","",$wkt); + $wkt = explode(",",$wkt); + //echo "
".var_dump($wkt); for($w=0;$wFinal ".$wkt."
"; $gid = $lugar["gid"]; $nome = mb_convert_encoding($lugar["nome"],"ISO-8859-1","UTF-8"); echo "".$nome."
"; } - } } if($tipo == "zoom") -- libgit2 0.21.2