Commit c232d61cc305875c8ccfaeab9576e2dff64a9386

Authored by Edmar Moretti
1 parent 0a1fdc07

Versão mobile funcionando

.project 0 → 100644
@@ -0,0 +1,11 @@ @@ -0,0 +1,11 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<projectDescription>
  3 + <name>i3geo_svn</name>
  4 + <comment></comment>
  5 + <projects>
  6 + </projects>
  7 + <buildSpec>
  8 + </buildSpec>
  9 + <natures>
  10 + </natures>
  11 +</projectDescription>
aplicmap/geral.htm
@@ -250,7 +250,6 @@ g_localimg = &quot;http://&quot;+window.location.host+&quot;/i3geo/imagens&quot;; @@ -250,7 +250,6 @@ g_localimg = &quot;http://&quot;+window.location.host+&quot;/i3geo/imagens&quot;;
250 250
251 g_diminuixN = 20; 251 g_diminuixN = 20;
252 */ 252 */
253 -  
254 /* 253 /*
255 Variable: g_diminuiyM 254 Variable: g_diminuiyM
256 255
imagens/banner_amazonia.png

42.5 KB | W: | H:

13.6 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
imagens/banner_biodiversidade.png

10.8 KB | W: | H:

1.92 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
imagens/banner_cprm.png

16 KB | W: | H:

6.76 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
imagens/banner_estados.png 0 → 100644

6.16 KB

imagens/banner_limites.png

6.4 KB | W: | H:

951 Bytes | W: | H:

  • 2-up
  • Swipe
  • Onion skin
imagens/banner_probio.png

22.8 KB | W: | H:

8.82 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
imagens/banner_probio2.png

21.7 KB | W: | H:

8.49 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
mobile/desligar.php 0 → 100644
@@ -0,0 +1,75 @@ @@ -0,0 +1,75 @@
  1 +<?php
  2 +require_once("../classesphp/funcoes_gerais.php");
  3 +include_once ("../classesphp/pega_variaveis.php");
  4 +include_once("../classesphp/carrega_ext.php");
  5 +include("../classesphp/classe_vermultilayer.php");
  6 +include("../classesphp/classe_mapa.php");
  7 +?>
  8 +<html>
  9 +<style>
  10 +body
  11 +{
  12 + font:14pt arial,helvetica,clean,sans-serif;
  13 + color:rgb(100,100,100);
  14 +}
  15 +p
  16 +{
  17 + font:12pt arial,helvetica,clean,sans-serif;
  18 + color:black;
  19 +}
  20 +input
  21 +{
  22 + font:14pt arial,helvetica,clean,sans-serif;
  23 + color:black;
  24 + cursor:pointer;
  25 +}
  26 +</style>
  27 +<body>
  28 +<form id='f' action='desligar.php?' method='get'>
  29 + <input type='hidden' name='tmpfname' value='<?php echo $tmpfname; ?>' />
  30 + <input id='tipo' type=hidden name='tipo' value='retorno' />
  31 + <input id='tema' type=hidden name='tema' value='' />
  32 +</form>
  33 +<?php
  34 +$m = New Mapa($tmpfname);
  35 +if(isset($tema) && $tema != '')
  36 +{
  37 + $m->ligaDesligaTemas("","$tema");
  38 + $m->salva();
  39 +}
  40 +$m = New Mapa($tmpfname);
  41 +$par = $m->parametrosTemas();
  42 +$par = mb_convert_encoding($par,"ISO-8859-1","UTF-8");
  43 +$par = explode("'",$par);
  44 +$par = explode(";",$par[1]);
  45 +echo "Escolha o tema que vc não quer ver no mapa:<br><br>";
  46 +$existe = false;
  47 +foreach($par as $p)
  48 +{
  49 + $p = explode("*",$p);
  50 + if($p[1] == 2)
  51 + {
  52 + $existe=true;
  53 + echo "<input type=radio value='$p[0]' onclick='desligar(this.value)' />".$p[2]."<br>";
  54 + }
  55 +}
  56 +if (!$existe)
  57 +echo "<span style='color:red' >Nenhum tema dispon&iacute;vel.</br>";
  58 +?>
  59 +<br><input type='button' value='retorna' style='cursor:pointer;' onclick='retorno()' />
  60 +</body>
  61 +<script>
  62 +function retorno()
  63 +{
  64 + document.getElementById('tipo').value='retorno';
  65 + document.getElementById('f').action = 'mobile.php';
  66 + document.getElementById('f').submit();
  67 +}
  68 +function desligar(tema)
  69 +{
  70 + document.getElementById('tema').value=tema;
  71 + document.getElementById('f').submit();
  72 +}
  73 +</script>
  74 +</html>
  75 +
mobile/in.png

763 Bytes | W: | H:

624 Bytes | W: | H:

  • 2-up
  • Swipe
  • Onion skin
mobile/index.htm
@@ -7,5 +7,5 @@ Redireciona o navegador para o ms_criamapa.php @@ -7,5 +7,5 @@ Redireciona o navegador para o ms_criamapa.php
7 File: index.htm 7 File: index.htm
8 */ 8 */
9 9
10 -window.location="../ms_criamapa.php?interface=mobile/mobile.php" 10 +window.location="index.php"
11 </script> 11 </script>
12 \ No newline at end of file 12 \ No newline at end of file
mobile/index.html
@@ -20,6 +20,6 @@ Redireciona o navegador para o ms_criamapa.php @@ -20,6 +20,6 @@ Redireciona o navegador para o ms_criamapa.php
20 20
21 File: index.html 21 File: index.html
22 */ 22 */
23 -window.location="../ms_criamapa.php?interface=mobile/mobile.php" 23 +window.location="index.php"
24 </script> 24 </script>
25 </html> 25 </html>
26 \ No newline at end of file 26 \ No newline at end of file
mobile/index.php 0 → 100644
@@ -0,0 +1,53 @@ @@ -0,0 +1,53 @@
  1 +<html>
  2 +<style>
  3 +body
  4 +{
  5 + font:14pt arial,helvetica,clean,sans-serif;
  6 + color:rgb(100,100,100);
  7 +}
  8 +p
  9 +{
  10 + font:12pt arial,helvetica,clean,sans-serif;
  11 + color:black;
  12 +}
  13 +input
  14 +{
  15 + font:14pt arial,helvetica,clean,sans-serif;
  16 + color:blue;
  17 + cursor:pointer;
  18 +}
  19 +</style>
  20 +<body>
  21 +<img src='../imagens/i3geo1.jpg' /><br>
  22 +
  23 +<?php
  24 +include_once("../classesphp/pega_variaveis.php");
  25 +require_once("../classesphp/funcoes_gerais.php");
  26 +include("../classesphp/classe_menutemas.php");
  27 +include("../ms_configura.php");
  28 +$m = new Menutemas($tmpfname,"");
  29 +$mapas = $m->pegaListaDeMapas($locmapas);
  30 +foreach($mapas["mapas"] as $obj)
  31 +{
  32 + echo "<input type=radio onclick='ligar(\"".$obj["TEMAS"]."\")' />".$obj["NOME"]."<br><br>";
  33 +}
  34 +?>
  35 +<form id=f action='inicia.php' method='get' >
  36 +<input id='wmobile' type=hidden name='wmobile' value='' />
  37 +<input id='hmobile' type=hidden name='hmobile' value='' />
  38 +<input type=hidden id=temasa name=temasa value='' />
  39 +</form>
  40 +<hr>
  41 +<p>O i3Geo &eacute; um software livre desenvolvido pelo Minist&eacute;rio do Meio Ambiente. Veja:
  42 +<a href='http://mapas.mma.gov.br' >http://mapas.mma.gov.br</a></p>
  43 +</body>
  44 +<script>
  45 +document.getElementById('wmobile').value = screen.availWidth;
  46 +document.getElementById('hmobile').value = screen.availHeight;
  47 +function ligar(temas)
  48 +{
  49 + document.getElementById('temasa').value = temas;
  50 + document.getElementById('f').submit();
  51 +}
  52 +</script>
  53 +</html>
0 \ No newline at end of file 54 \ No newline at end of file
mobile/inicia.php 0 → 100644
@@ -0,0 +1,17 @@ @@ -0,0 +1,17 @@
  1 +<?php
  2 +include_once("../classesphp/pega_variaveis.php");
  3 +$caminho = "../";
  4 +$layers = $temasa;
  5 +$executa = "iniciamobile";
  6 +include("../ms_criamapa.php");
  7 +function iniciamobile()
  8 +{
  9 + global $wmobile,$hmobile,$tmpfname;
  10 + $mapa = ms_newMapObj($tmpfname);
  11 + $mapa->setsize($wmobile,$hmobile);
  12 + $mapa->save($tmpfname);
  13 + $tipo = "inicia";
  14 + include("mobile.php");
  15 + exit;
  16 +}
  17 +?>
0 \ No newline at end of file 18 \ No newline at end of file
mobile/l.png

535 Bytes | W: | H:

483 Bytes | W: | H:

  • 2-up
  • Swipe
  • Onion skin
mobile/ligar.php 0 → 100644
@@ -0,0 +1,75 @@ @@ -0,0 +1,75 @@
  1 +<?php
  2 +require_once("../classesphp/funcoes_gerais.php");
  3 +include_once ("../classesphp/pega_variaveis.php");
  4 +include_once("../classesphp/carrega_ext.php");
  5 +include("../classesphp/classe_vermultilayer.php");
  6 +include("../classesphp/classe_mapa.php");
  7 +?>
  8 +<html>
  9 +<style>
  10 +body
  11 +{
  12 + font:14pt arial,helvetica,clean,sans-serif;
  13 + color:rgb(100,100,100);
  14 +}
  15 +p
  16 +{
  17 + font:12pt arial,helvetica,clean,sans-serif;
  18 + color:black;
  19 +}
  20 +input
  21 +{
  22 + font:14pt arial,helvetica,clean,sans-serif;
  23 + color:black;
  24 + cursor:pointer;
  25 +}
  26 +</style>
  27 +<body>
  28 +<form id='f' action='ligar.php?' method='get'>
  29 + <input type='hidden' name='tmpfname' value='<?php echo $tmpfname; ?>' />
  30 + <input id='tipo' type=hidden name='tipo' value='retorno' />
  31 + <input id='tema' type=hidden name='tema' value='' />
  32 +</form>
  33 +<?php
  34 +$m = New Mapa($tmpfname);
  35 +if(isset($tema) && $tema != '')
  36 +{
  37 + $m->ligaDesligaTemas($tema,"");
  38 + $m->salva();
  39 +}
  40 +$m = New Mapa($tmpfname);
  41 +$par = $m->parametrosTemas();
  42 +$par = mb_convert_encoding($par,"ISO-8859-1","UTF-8");
  43 +$par = explode("'",$par);
  44 +$par = explode(";",$par[1]);
  45 +echo "Escolha o tema que vc quer ver no mapa:<br><br>";
  46 +$existe = false;
  47 +foreach($par as $p)
  48 +{
  49 + $p = explode("*",$p);
  50 + if($p[1] != 2)
  51 + {
  52 + $existe=true;
  53 + echo "<input type=radio value='$p[0]' onclick='ligar(this.value)' />".$p[2]."<br>";
  54 + }
  55 +}
  56 +if (!$existe)
  57 +echo "<span style='color:red' >Nenhum tema dispon&iacute;vel.</br>";
  58 +?>
  59 +<br><input type='button' value='retorna' style='cursor:pointer;' onclick='retorno()' />
  60 +</body>
  61 +<script>
  62 +function retorno()
  63 +{
  64 + document.getElementById('tipo').value='retorno';
  65 + document.getElementById('f').action = 'mobile.php';
  66 + document.getElementById('f').submit();
  67 +}
  68 +function ligar(tema)
  69 +{
  70 + document.getElementById('tema').value=tema;
  71 + document.getElementById('f').submit();
  72 +}
  73 +</script>
  74 +</html>
  75 +
mobile/mobile.php
1 -<?php  
2 -//  
3 -//  
4 -//  
5 -//error_reporting(E_ALL);  
6 -if (file_exists("classesphp/pega_variaveis.php"))  
7 -{  
8 - include_once ("classesphp/pega_variaveis.php");  
9 -}  
10 -else  
11 -{  
12 - include_once("../classesphp/pega_variaveis.php");  
13 - include_once("../classesphp/carrega_ext.php");  
14 - require_once("../classesphp/funcoes_gerais.php");  
15 -}  
16 -//  
17 -//executado quando o mapa é inicializado  
18 -//  
19 -if (!isset($tipo))  
20 -{  
21 - include("classesphp/classe_menutemas.php");  
22 - include("ms_configura.php");  
23 - $m = new Menutemas($tmpfname,"");  
24 - $mapas = $m->pegaListaDeMapas($locmapas);  
25 - echo  
26 - "  
27 - <html><body>  
28 - <center>  
29 -  
30 - <img src='imagens/i3geo1.jpg' /><br>  
31 - ";  
32 - foreach($mapas["mapas"] as $obj)  
33 - {  
34 - echo "<br><div onclick='ligar(\"".$obj["TEMAS"]."\")' style='font:16px arial,helvetica,clean,sans-serif;color:blue;text-decoration:underline;cursor:pointer'>".$obj["NOME"]."</div><br>";  
35 - $i = $obj["IMAGEM"];  
36 - echo "<img src='$i' /><br>";  
37 - }  
38 - echo "  
39 - <form id=f action='mobile/mobile.php' method='get' >  
40 - <input id='w' type=hidden name='w' value='' />  
41 - <input id='h' type=hidden name='h' value='' />  
42 - <input type=hidden name='tmpfname' value='$tmpfname' />  
43 - <input type=hidden name='tipo' value='' />  
44 - <input type=hidden id=ligar name=ligar value='' />  
45 - </form>  
46 - </body>  
47 - <script>  
48 - document.getElementById('w').value = screen.availWidth;  
49 - document.getElementById('h').value = screen.availHeight;  
50 - function ligar(temas)  
51 - {  
52 - document.getElementById('ligar').value = temas;  
53 - document.getElementById('f').submit();  
54 - }  
55 - </script>  
56 - ";  
57 -}  
58 -else  
59 -{  
60 - include("../ms_configura.php");  
61 - if (isset($opcoes) && $opcoes != "")  
62 - {  
63 - echo "ok";  
64 - exit;  
65 - }  
66 - if (isset($ligar))  
67 - {  
68 - $temasa = $ligar;  
69 - incluiTemasIniciais2();  
70 - }  
71 - $mapa = ms_newMapObj($tmpfname);  
72 - if ($tipo=="")  
73 - {  
74 - $mapa->setsize($w-5,$h-5);  
75 - $mapa->save($tmpfname);  
76 - }  
77 - if ($tipo=="zoommais")  
78 - {  
79 - include("../classesphp/classe_navegacao.php");  
80 - $m = new Navegacao($tmpfname);  
81 - $m->aproxima(2);  
82 - $m->salva();  
83 - }  
84 - if ($tipo=="zoommenos")  
85 - {  
86 - include("../classesphp/classe_navegacao.php");  
87 - $m = new Navegacao($tmpfname);  
88 - $m->afasta(2);  
89 - $m->salva();  
90 - }  
91 - if ($tipo=="norte")  
92 - {  
93 - include("../classesphp/classe_navegacao.php");  
94 - $m = new Navegacao($tmpfname);  
95 - $x = $mapa->width;  
96 - $x = $x/2;  
97 - $y = 0;  
98 - $m->pan($x,$y,"","");  
99 - $m->salva();  
100 - }  
101 - if ($tipo=="sul")  
102 - {  
103 - include("../classesphp/classe_navegacao.php");  
104 - $m = new Navegacao($tmpfname);  
105 - $x = $mapa->width;  
106 - $x = $x/2;  
107 - $y = $mapa->height;  
108 - $m->pan($x,$y,"","");  
109 - $m->salva();  
110 - }  
111 - if ($tipo=="leste")  
112 - {  
113 - include("../classesphp/classe_navegacao.php");  
114 - $m = new Navegacao($tmpfname);  
115 - $x = $mapa->width;  
116 - $y = $mapa->height/2;  
117 - $m->pan($x,$y,"","");  
118 - $m->salva();  
119 - }  
120 - if ($tipo=="oeste")  
121 - {  
122 - include("../classesphp/classe_navegacao.php");  
123 - $m = new Navegacao($tmpfname);  
124 - $x = 0;  
125 - $y = $mapa->height/2;  
126 - $m->pan($x,$y,"","");  
127 - $m->salva();  
128 - }  
129 - $nomeimagem = desenhaImagem();  
130 - retornaMapa(); 1 +<html>
  2 +<style>
  3 +body
  4 +{
  5 + font:14pt arial,helvetica,clean,sans-serif;
  6 + color:blue;
  7 + margin:2px;
131 } 8 }
  9 +p
  10 +{
  11 + font:12pt arial,helvetica,clean,sans-serif;
  12 + color:black;
  13 +}
  14 +input
  15 +{
  16 + font:12pt arial,helvetica,clean,sans-serif;
  17 + color:black;
  18 + cursor:pointer;
  19 + background-color:white;
  20 +}
  21 +</style>
  22 +<body>
132 23
133 -function retornaMapa()  
134 -{  
135 - global $nomeimagem,$tmpfname,$tipo;  
136 - echo  
137 - "  
138 - <html><body style='margin: 0px;'>  
139 - <div style='z-index:100;background-color:white;position:relative;top:1px;left:1px;border:solid 1px white;'>  
140 - <img src='in.png' style='position:relative;top:2px;cursor:pointer' onclick='zoommais()' />&nbsp;  
141 - <img src='out.png' style='position:relative;top:2px;cursor:pointer' onclick='zoommenos()' />&nbsp;  
142 - <img src='o.png' style='position:relative;top:2px;cursor:pointer' onclick='oeste()' />&nbsp;  
143 - <img src='n.png' style='position:relative;top:2px;cursor:pointer' onclick='norte()' />&nbsp;  
144 - <img src='s.png' style='position:relative;top:2px;cursor:pointer' onclick='sul()' />&nbsp;  
145 - <img src='l.png' style='position:relative;top:2px;cursor:pointer' onclick='leste()' />&nbsp;  
146 - <select id='opcao' onchange='opcoes()' style='style='position:relative;top:0px;'>  
147 - <option >opções</option>  
148 - <option value=liga >liga temas</option>  
149 - <option value=desliga >desliga</option>  
150 - <option value=adiciona >adiciona</option>  
151 - </select>  
152 - </div>  
153 - <img style='position:relative;top:0px;left:0px' src='$nomeimagem' />  
154 - <form id='f' action='mobile.php?' method='get'>  
155 - <input type=hidden name='tmpfname' value='$tmpfname' />  
156 - <input id='tipo' type=hidden name='tipo' value='$tipo' />  
157 - <input id=opcoes type=hidden name=opcoes value=''/>  
158 - </form> 24 +<?php
159 25
160 - </body>  
161 - <script>  
162 - function zoommais()  
163 - {  
164 - document.getElementById('tipo').value = 'zoommais';  
165 - document.getElementById('f').submit();  
166 - }  
167 - function zoommenos()  
168 - {  
169 - document.getElementById('tipo').value = 'zoommenos';  
170 - document.getElementById('f').submit();  
171 - }  
172 - function norte()  
173 - {  
174 - document.getElementById('tipo').value = 'norte';  
175 - document.getElementById('f').submit();  
176 - }  
177 - function sul()  
178 - {  
179 - document.getElementById('tipo').value = 'sul';  
180 - document.getElementById('f').submit();  
181 - }  
182 - function leste()  
183 - {  
184 - document.getElementById('tipo').value = 'leste';  
185 - document.getElementById('f').submit();  
186 - }  
187 - function oeste()  
188 - {  
189 - document.getElementById('tipo').value = 'oeste';  
190 - document.getElementById('f').submit();  
191 - }  
192 - function opcoes()  
193 - {  
194 - document.getElementById('opcoes').value = document.getElementById('opcao').value;  
195 - document.getElementById('f').submit();  
196 - }  
197 - </script>  
198 - </html>  
199 - ";  
200 -}  
201 -function desenhaImagem()  
202 -{  
203 - global $tmpfname;  
204 - $mapa = ms_newMapObj($tmpfname);  
205 - $imgo = $mapa->draw();  
206 - $nome = ($imgo->imagepath).nomeRandomico().".png";  
207 - $imgo->saveImage($nome);  
208 - $nome = ($imgo->imageurl).basename($nome);  
209 - $imgo->free();  
210 - return $nome;  
211 -}  
212 -function incluiTemasIniciais2()  
213 -{  
214 - global $temasa,$temasaplic,$temasdir,$tmpfname;  
215 - $mapa = ms_newMapObj($tmpfname);  
216 - $estadosl = "estadosl";  
217 - if (!isset($temasa)){$temasa = $estadosl;}  
218 - $temasa = str_replace(','," ",$temasa);  
219 - $alayers = explode(" ",$temasa);  
220 - foreach ($alayers as $arqt)  
221 - {  
222 - $arqtemp = "";  
223 - $arqt = trim($arqt);  
224 - if ($arqt == "")  
225 - {continue;}  
226 - if (file_exists($arqt))  
227 - {$arqtemp = $arqt;}  
228 - if ((strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) && (file_exists($temasaplic."\\".$arqt.".map")))  
229 - {$arqtemp = $temasaplic."\\".$arqt.".map";}  
230 - elseif (file_exists($temasaplic."/".$arqt.".map"))  
231 - {$arqtemp = $temasaplic."/".$arqt.".map";}  
232 - if ((strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) && (file_exists($temasdir."\\".$arqt.".map")))  
233 - {$arqtemp = $temasdir."\\".$arqt.".map";}  
234 - elseif (file_exists($temasdir."/".$arqt.".map"))  
235 - {$arqtemp = $temasdir."/".$arqt.".map";}  
236 - if (($arqtemp != "") && (file_exists($arqtemp)))  
237 - {  
238 - $maptemp = @ms_newMapObj($arqtemp);  
239 - for($i=0;$i<($maptemp->numlayers);$i++)  
240 - {  
241 - $layern = $maptemp->getLayer($i);  
242 - $layern->setmetadata("NOMEORIGINAL",$layern->name);  
243 - if ($layern->name == "estadosl")  
244 - {$layern->set("data",$temasaplic."/dados/estados.shp");}  
245 - $layern->set("status",MS_DEFAULT);  
246 - ms_newLayerObj($mapa, $layern);  
247 - }  
248 - }  
249 - }  
250 - $mapa->save($tmpfname); 26 +include_once ("../classesphp/pega_variaveis.php");
  27 +include_once("../classesphp/carrega_ext.php");
  28 +require_once("../classesphp/funcoes_gerais.php");
  29 +include("../ms_configura.php");
  30 +if ($tipo=="zoommais")
  31 +{
  32 + include("../classesphp/classe_navegacao.php");
  33 + $m = new Navegacao($tmpfname);
  34 + $m->aproxima(3);
  35 + $m->salva();
  36 +}
  37 +if ($tipo=="zoommenos")
  38 +{
  39 + include("../classesphp/classe_navegacao.php");
  40 + $m = new Navegacao($tmpfname);
  41 + $m->afasta(3);
  42 + $m->salva();
  43 +}
  44 +if ($tipo=="norte")
  45 +{
  46 + include("../classesphp/classe_navegacao.php");
  47 + $m = new Navegacao($tmpfname);
  48 + $x = $m->mapa->width;
  49 + $x = $x/2;
  50 + $y = 0;
  51 + $m->pan($x,$y,"","");
  52 + $m->salva();
  53 +}
  54 +if ($tipo=="sul")
  55 +{
  56 + include("../classesphp/classe_navegacao.php");
  57 + $m = new Navegacao($tmpfname);
  58 + $x = $m->mapa->width;
  59 + $x = $x/2;
  60 + $y = $m->mapa->height;
  61 + $m->pan($x,$y,"","");
  62 + $m->salva();
  63 +}
  64 +if ($tipo=="leste")
  65 +{
  66 + include("../classesphp/classe_navegacao.php");
  67 + $m = new Navegacao($tmpfname);
  68 + $x = $m->mapa->width;
  69 + $y = $m->mapa->height/2;
  70 + $m->pan($x,$y,"","");
  71 + $m->salva();
  72 +}
  73 +if ($tipo=="oeste")
  74 +{
  75 + include("../classesphp/classe_navegacao.php");
  76 + $m = new Navegacao($tmpfname);
  77 + $x = 0;
  78 + $y = $m->mapa->height/2;
  79 + $m->pan($x,$y,"","");
  80 + $m->salva();
251 } 81 }
  82 +if ($tipo=="ligar")
  83 +{
  84 + include("ligar.php");
  85 + exit;
  86 +}
  87 +if ($tipo=="desligar")
  88 +{
  89 + include("desligar.php");
  90 + exit;
  91 +}
  92 +$mapa = ms_newMapObj($tmpfname);
  93 +$w = $mapa->width;
  94 +$h = $mapa->height;
252 95
253 -?>  
254 \ No newline at end of file 96 \ No newline at end of file
  97 +$imgo = $mapa->draw();
  98 +$nome = ($imgo->imagepath).nomeRandomico().".png";
  99 +$imgo->saveImage($nome);
  100 +$nomeimagem = ($imgo->imageurl).basename($nome);
  101 +?>
  102 +<div id='botoes' >
  103 + <input type='button' value='+' onclick='zoommais()' />
  104 + <input type='button' value='-' onclick='zoommenos()' />
  105 + <input type='button' value='N' onclick='norte()' />
  106 + <input type='button' value='S' onclick='sul()' />
  107 + <input type='button' value='L' onclick='leste()' />
  108 + <input type='button' value='O' onclick='oeste()' />
  109 + <select id='op' name='op' onchange='op(this.value)'>
  110 + <option value=''>Op&ccedil;&otilde;es</option>
  111 + <option value='ligar'>ligar</option>
  112 + <option value='desligar'>desligar</option>
  113 + </select>
  114 +</div>
  115 +<form id='f' action='mobile.php?' method='get'>
  116 + <input type='hidden' name='tmpfname' value='<?php echo $tmpfname;?>' />
  117 + <input id='tipo' type=hidden name='tipo' value='' />
  118 +</form>
  119 +<img id='mapa' src='<?php echo $nomeimagem; ?>' />
  120 +</body>
  121 +<script>
  122 +var app = navigator.appName.substring(0,1);
  123 +if (app=='N') navn=true; else navm=true;
  124 +pan = ""
  125 +function zoommais()
  126 +{
  127 + document.getElementById('tipo').value = 'zoommais';
  128 + document.getElementById('f').submit();
  129 +}
  130 +function zoommenos()
  131 +{
  132 + document.getElementById('tipo').value = 'zoommenos';
  133 + document.getElementById('f').submit();
  134 +}
  135 +function norte()
  136 +{
  137 + document.getElementById('tipo').value = 'norte';
  138 + document.getElementById('f').submit();
  139 +}
  140 +function sul()
  141 +{
  142 + document.getElementById('tipo').value = 'sul';
  143 + document.getElementById('f').submit();
  144 +}
  145 +function leste()
  146 +{
  147 + document.getElementById('tipo').value = 'leste';
  148 + document.getElementById('f').submit();
  149 +}
  150 +function oeste()
  151 +{
  152 + document.getElementById('tipo').value = 'oeste';
  153 + document.getElementById('f').submit();
  154 +}
  155 +function op(valor)
  156 +{
  157 + document.getElementById('tipo').value = valor;
  158 + document.getElementById('f').submit();
  159 +}
  160 +</script>
  161 +</html>
mobile/n.png

520 Bytes | W: | H:

474 Bytes | W: | H:

  • 2-up
  • Swipe
  • Onion skin
mobile/o.png

513 Bytes | W: | H:

456 Bytes | W: | H:

  • 2-up
  • Swipe
  • Onion skin
mobile/out.png

747 Bytes | W: | H:

593 Bytes | W: | H:

  • 2-up
  • Swipe
  • Onion skin
mobile/s.png

556 Bytes | W: | H:

501 Bytes | W: | H:

  • 2-up
  • Swipe
  • Onion skin
ms_criamapa.php
@@ -78,6 +78,11 @@ require_once ($caminho.&quot;classesphp/pega_variaveis.php&quot;); @@ -78,6 +78,11 @@ require_once ($caminho.&quot;classesphp/pega_variaveis.php&quot;);
78 require_once ($caminho."classesphp/funcoes_gerais.php"); 78 require_once ($caminho."classesphp/funcoes_gerais.php");
79 require_once ($caminho."ms_configura.php"); 79 require_once ($caminho."ms_configura.php");
80 // 80 //
  81 +//monta a apresentação do aguarde
  82 +//
  83 +if (!isset($executa))
  84 +{mostraAguarde();}
  85 +//
81 //define a variável $mapext que define a extensão geográfica do mapa 86 //define a variável $mapext que define a extensão geográfica do mapa
82 // 87 //
83 if (!isset($mapext)){$mapext="";} 88 if (!isset($mapext)){$mapext="";}
@@ -143,10 +148,7 @@ $_SESSION[&quot;utilizacgi&quot;] = $utilizacgi_; @@ -143,10 +148,7 @@ $_SESSION[&quot;utilizacgi&quot;] = $utilizacgi_;
143 // 148 //
144 foreach(array_keys($_SESSION) as $k) 149 foreach(array_keys($_SESSION) as $k)
145 {eval("\$".$k."='".$_SESSION[$k]."';");} 150 {eval("\$".$k."='".$_SESSION[$k]."';");}
146 -//  
147 -//monta a apresentação do aguarde  
148 -//  
149 -mostraAguarde(); 151 +
150 // 152 //
151 //define os arquivos .map conforme o tipo de sistema operacional 153 //define os arquivos .map conforme o tipo de sistema operacional
152 // 154 //