Commit ced283fab1a11affefa00ebb3cfd95f8b4f474ae
1 parent
540af59d
Exists in
master
and in
7 other branches
Incluido o metadata "IDENTIFICA" que pode ser incluido em um tema. Quando "IDENT…
…IFICA "nao", o tema não será mostrado na janela de identificação
Showing
16 changed files
with
88 additions
and
56 deletions
Show diff stats
aplicmap/geral1.map
... | ... | @@ -127,6 +127,7 @@ MAP |
127 | 127 | "CLASSE" "SIM" #o simbolo nao sera mostrado na legenda |
128 | 128 | "TEMA" "Zona Econômica Exclusiva Marinha" #o tema nao sera mostrado na legenda |
129 | 129 | #"ESCONDIDO" "SIM" |
130 | + "IDENTIFICA" "nao" | |
130 | 131 | END |
131 | 132 | NAME "zee" |
132 | 133 | SIZEUNITS PIXELS |
... | ... | @@ -197,6 +198,7 @@ MAP |
197 | 198 | "CLASSE" "SIM" |
198 | 199 | "TEMA" "Brasil" |
199 | 200 | "ESCALA" "250000" #escala utilizada nas marcas ao lado do tema na legenda |
201 | + "IDENTIFICA" "nao" | |
200 | 202 | END |
201 | 203 | NAME "estados" |
202 | 204 | SIZEUNITS PIXELS | ... | ... |
aplicmap/geral1windows.map
... | ... | @@ -126,6 +126,7 @@ MAP |
126 | 126 | METADATA |
127 | 127 | "CLASSE" "SIM" #o simbolo nao sera mostrado na legenda |
128 | 128 | "TEMA" "Zona Econômica Exclusiva Marinha" #o tema nao sera mostrado na legenda |
129 | + "IDENTIFICA" "nao" | |
129 | 130 | END |
130 | 131 | NAME "zee" |
131 | 132 | SIZEUNITS PIXELS |
... | ... | @@ -199,6 +200,7 @@ MAP |
199 | 200 | "CLASSE" "SIM" |
200 | 201 | "TEMA" "Brasil" |
201 | 202 | "ESCALA" "250000" #escala utilizada nas marcas ao lado do tema na legenda |
203 | + "IDENTIFICA" "nao" | |
202 | 204 | END |
203 | 205 | NAME "estados" |
204 | 206 | SIZEUNITS PIXELS | ... | ... |
classesphp/classe_atributos.php
... | ... | @@ -533,12 +533,17 @@ $resolucao - Resolucao de busca. |
533 | 533 | if ($vermultilayer->resultado == 1) // o tema e multi layer |
534 | 534 | { |
535 | 535 | foreach (($vermultilayer->temasvisiveis) as $tv) |
536 | - {$listatemas[] = $tv;} | |
536 | + { | |
537 | + $l = $this->mapa->getlayerbyname($tv); | |
538 | + if ($l->getmetadata("identifica") != "nao") | |
539 | + {$listatemas[] = $tv;} | |
540 | + } | |
537 | 541 | } |
538 | 542 | else |
539 | 543 | { |
540 | 544 | $l = $this->mapa->getlayerbyname($tem); |
541 | - if ($l->getmetadata("escondido") == ""){$listatemas[] = $tem;} | |
545 | + if (($l->getmetadata("escondido") == "") && ($l->getmetadata("identifica") != "nao")) | |
546 | + {$listatemas[] = $tem;} | |
542 | 547 | } |
543 | 548 | } |
544 | 549 | $listatemas = array_unique($listatemas); | ... | ... |
classesphp/classe_mapa.php
... | ... | @@ -386,7 +386,10 @@ nome |
386 | 386 | foreach ($this->layers as $layer) |
387 | 387 | { |
388 | 388 | if (($layer->isvisible()) && ($layer->status == 2) && ($layer->getmetadata("ESCONDIDO") == "")) |
389 | - {$final[] = array("tema"=>$layer->name,"nome"=>(pegaNome($layer,"UTF-8")));} | |
389 | + { | |
390 | + $ident = $layer->getmetadata("IDENTIFICA"); | |
391 | + $final[] = array("tema"=>$layer->name,"nome"=>(pegaNome($layer,"UTF-8")),"identifica"=>$ident); | |
392 | + } | |
390 | 393 | } |
391 | 394 | } |
392 | 395 | else | ... | ... |
ferramentas/conectarwfs/index.htm
... | ... | @@ -42,7 +42,7 @@ |
42 | 42 | </div> |
43 | 43 | </body> |
44 | 44 | <script language="JavaScript" type="text/javascript" src="../funcoes.js"></script> |
45 | -<script src="../../classesjs/cpaint/cpaint2.inc.compressed.js" type="text/javascript"></script> | |
45 | +<script src="../../pacotes/cpaint/cpaint2.inc.compressed.js" type="text/javascript"></script> | |
46 | 46 | <script language="JavaScript" type="text/javascript" src="index.js"></script> |
47 | 47 | |
48 | 48 | <script> | ... | ... |
ferramentas/convertekml/index.htm
... | ... | @@ -13,7 +13,7 @@ para visualizar um tema em softwares que aceitam o formato kml. |
13 | 13 | |
14 | 14 | </div> |
15 | 15 | |
16 | -<script src="../../classesjs/cpaint/cpaint2.inc.compressed.js" type="text/javascript"></script> | |
16 | +<script src="../../pacotes/cpaint/cpaint2.inc.compressed.js" type="text/javascript"></script> | |
17 | 17 | <script language="JavaScript" type="text/javascript" src="../funcoes.js"></script> |
18 | 18 | <script language="JavaScript" type="text/javascript" src="index.js"></script> |
19 | 19 | </body> | ... | ... |
ferramentas/convertews/index.htm
... | ... | @@ -13,7 +13,7 @@ instalados em seu computador, como por exemplo, o <a href="http://www.openjump.o |
13 | 13 | A disponibilidade do endereço é temporária, permanecendo |
14 | 14 | apenas no dia em que foi criado.<br></div> |
15 | 15 | |
16 | -<script src="../../classesjs/cpaint/cpaint2.inc.compressed.js" type="text/javascript"></script> | |
16 | +<script src="../../pacotes/cpaint/cpaint2.inc.compressed.js" type="text/javascript"></script> | |
17 | 17 | <script language="JavaScript" type="text/javascript" src="../funcoes.js"></script> |
18 | 18 | <script language="JavaScript" type="text/javascript" src="index.js"></script> |
19 | 19 | </body> | ... | ... |
ferramentas/download/index.htm
... | ... | @@ -6,7 +6,7 @@ |
6 | 6 | <body style='background-color:white;margin:0px'> |
7 | 7 | <div style="top:0px;left:10px;width:90%;" id='resultado' > Aguarde...</div> |
8 | 8 | <script language="JavaScript" type="text/javascript" src="../funcoes.js"></script> |
9 | -<script src="../../classesjs/cpaint/cpaint2.inc.compressed.js" type="text/javascript"></script> | |
9 | +<script src="../../pacotes/cpaint/cpaint2.inc.compressed.js" type="text/javascript"></script> | |
10 | 10 | <script language="JavaScript" type="text/javascript" src="index.js"></script> |
11 | 11 | </body> |
12 | 12 | </html> |
13 | 13 | \ No newline at end of file | ... | ... |
ferramentas/especies/pesquisa.htm
... | ... | @@ -137,7 +137,7 @@ File: pesquisa.htm |
137 | 137 | |
138 | 138 | Include: |
139 | 139 | |
140 | -<http://mapas.mma.gov.br/i3geo/classesjs/cpaint/cpaint2.inc.compressed.js> | |
140 | +<http://mapas.mma.gov.br/i3geo/pacotes/cpaint/cpaint2.inc.compressed.js> | |
141 | 141 | |
142 | 142 | */ |
143 | 143 | g_sid = window.parent.g_sid | ... | ... |
ferramentas/exemplo/index.htm
... | ... | @@ -30,6 +30,6 @@ |
30 | 30 | </div> |
31 | 31 | </body> |
32 | 32 | <script language="JavaScript" type="text/javascript" src="../funcoes.js"></script> |
33 | -<script src="../../classesjs/cpaint/cpaint2.inc.compressed.js" type="text/javascript"></script> | |
33 | +<script src="../../pacotes/cpaint/cpaint2.inc.compressed.js" type="text/javascript"></script> | |
34 | 34 | <script language="JavaScript" type="text/javascript" src="index.js"></script> |
35 | 35 | </html> | ... | ... |
ferramentas/googlemaps/index.htm
1 | 1 | <html> |
2 | 2 | <head> |
3 | -<script src="../../classesjs/cpaint/cpaint2.inc.compressed.js" type="text/javascript"></script> | |
3 | +<script src="../../pacotes/cpaint/cpaint2.inc.compressed.js" type="text/javascript"></script> | |
4 | 4 | <script language="JavaScript" type="text/javascript" src="http://maps.google.com/maps?file=api&v=1&key=ABQIAAAAg9kA9xQlYqK9iBDKaeTpgxSieGwtcPDeiUtRiq7Xa63cyLppcxTVYXnVlPwveOe-sXuXfpBeNpL6pA"> |
5 | 5 | </script> |
6 | 6 | </head> | ... | ... |
ferramentas/identifica/index.htm
... | ... | @@ -33,7 +33,7 @@ |
33 | 33 | |
34 | 34 | </div> |
35 | 35 | </body> |
36 | -<script language="JavaScript" type="text/javascript" src="../../classesjs/redesenho_compacto.js"></script> | |
36 | +<script language="JavaScript" type="text/javascript" src="../../classesjs/compactados/redesenho_compacto.js"></script> | |
37 | 37 | <script src="../i3geo_tudo_compacto.js.php" type="text/javascript"></script> |
38 | 38 | <script language="JavaScript" type="text/javascript" src="index.js"></script><script> |
39 | 39 | inicializaJanela() | ... | ... |
ferramentas/identifica/index.js
... | ... | @@ -70,51 +70,71 @@ function pegavalSistemas(xmlDoc) |
70 | 70 | function listaTemasLigados() |
71 | 71 | { |
72 | 72 | aguarde("none"); |
73 | - var lista = (window.parent.objmapa.temas).split(";") | |
74 | - var b = window.parent.convdmsf(xpt,ypt); | |
75 | - var x = b[0].split(" ") | |
76 | - var y = b[1].split(" ") | |
77 | - var w = "W" | |
78 | - var s = "S" | |
79 | - if (x[0]*1 > 0){w = "L"} | |
80 | - if (y[0]*1 > 0){s = "N"} | |
81 | - if (x[0]*1 < 0){x[0] = x[0]*-1} | |
82 | - if (y[0]*1 < 0){y[0] = y[0]*-1} | |
83 | - var param = y[0]+"_"+y[1]+"_"+y[2]+"_"+s+"_"+x[0]+"_"+x[1]+"_"+x[2]+"_"+w | |
84 | - var url = "http://tools.wikimedia.de/~magnus/geo/geohack.php?params="+param//15_48_00_S_47_51_50_W | |
85 | - var linhas = "<a href='"+url+"' target=blank >Buscadores web</a><br>" | |
86 | - linhas += "Clique no tema para ver os dados<table class=lista2 >" | |
87 | - var linhas1 = ""; | |
88 | - for (l=0;l<lista.length;l++) | |
73 | + var retorno = function (retorno) | |
89 | 74 | { |
90 | - var ltema = lista[l].split("*") | |
91 | - if(ltema[1] == 2) | |
75 | + //var lista = (window.parent.objmapa.temas).split(";") | |
76 | + var lista = retorno.data; | |
77 | + var b = window.parent.convdmsf(xpt,ypt); | |
78 | + var x = b[0].split(" ") | |
79 | + var y = b[1].split(" ") | |
80 | + var w = "W" | |
81 | + var s = "S" | |
82 | + if (x[0]*1 > 0){w = "L"} | |
83 | + if (y[0]*1 > 0){s = "N"} | |
84 | + if (x[0]*1 < 0){x[0] = x[0]*-1} | |
85 | + if (y[0]*1 < 0){y[0] = y[0]*-1} | |
86 | + var param = y[0]+"_"+y[1]+"_"+y[2]+"_"+s+"_"+x[0]+"_"+x[1]+"_"+x[2]+"_"+w | |
87 | + var url = "http://tools.wikimedia.de/~magnus/geo/geohack.php?params="+param//15_48_00_S_47_51_50_W | |
88 | + var linhas = "<a href='"+url+"' target=blank >Buscadores web</a><br>" | |
89 | + linhas += "Clique no tema para ver os dados<table class=lista2 >" | |
90 | + var linhas1 = ""; | |
91 | + for (l=0;l<lista.length;l++) | |
92 | 92 | { |
93 | - linhas1 += "<tr><td><input onclick='identifica(\""+ltema[0]+"\")' style=cursor:pointer type=radio name=tema /></td><td>"+ltema[2]+"</td></tr>" | |
93 | + var nome = lista[l].nome | |
94 | + var tema = lista[l].tema | |
95 | + if(lista[l].identifica != "nao") | |
96 | + { | |
97 | + linhas1 += "<tr><td><input onclick='identifica(\""+tema+"\")' style=cursor:pointer type=radio name=tema /></td><td>"+nome+"</td></tr>" | |
98 | + } | |
94 | 99 | } |
95 | - } | |
96 | - $i("resultado").innerHTML = linhas+"<table class=lista ><tr><td style=text-align:left ><input onclick='identifica(\"ligados\")' style=cursor:pointer type=radio name=tema /></td><td>Todos</td></tr>"+linhas1+"</table>" | |
97 | - //verifica se existem sistemas para identificar | |
98 | - g_locidentifica = window.parent.g_locidentifica | |
99 | - if (g_locidentifica != "") | |
100 | - { | |
101 | - sistemasAdicionais = new Array() | |
102 | - ajaxexecASXml(g_locidentifica,"pegavalSistemas") | |
103 | - } | |
104 | - if (window.parent.objmapa.temaAtivo == "") | |
105 | - { | |
106 | - var temp = "" | |
107 | - for (l=0;l<lista.length;l++) | |
100 | + $i("resultado").innerHTML = linhas+"<table class=lista ><tr><td style=text-align:left ><input onclick='identifica(\"ligados\")' style=cursor:pointer type=radio name=tema /></td><td>Todos</td></tr>"+linhas1+"</table>" | |
101 | + //verifica se existem sistemas para identificar | |
102 | + g_locidentifica = window.parent.g_locidentifica | |
103 | + if (g_locidentifica != "") | |
108 | 104 | { |
109 | - var ltema = lista[l].split("*") | |
110 | - if(ltema[1] == 2) | |
111 | - {var temp = ltema[0];break;} | |
105 | + sistemasAdicionais = new Array() | |
106 | + ajaxexecASXml(g_locidentifica,"pegavalSistemas") | |
112 | 107 | } |
113 | - window.parent.objmapa.temaAtivo = temp | |
114 | - identifica(temp) | |
115 | - } | |
116 | - else | |
117 | - {identifica(window.parent.objmapa.temaAtivo)} | |
108 | + if (window.parent.objmapa.temaAtivo == "") | |
109 | + { | |
110 | + /* | |
111 | + var temp = "" | |
112 | + for (l=0;l<lista.length;l++) | |
113 | + { | |
114 | + var ltema = lista[l].split("*") | |
115 | + if(ltema[1] == 2) | |
116 | + {var temp = ltema[0];break;} | |
117 | + } | |
118 | + window.parent.objmapa.temaAtivo = temp | |
119 | + */ | |
120 | + var temp = ""; | |
121 | + for (l=0;l<lista.length;l++) | |
122 | + { | |
123 | + if(lista[l].identifica != "nao") | |
124 | + {var temp = lista[l].tema;break;} | |
125 | + } | |
126 | + identifica(temp) | |
127 | + } | |
128 | + else | |
129 | + {identifica(window.parent.objmapa.temaAtivo)} | |
130 | + }; | |
131 | + var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=listatemas&opcao=ligados" | |
132 | + var cp = new cpaint(); | |
133 | + //cp.set_debug(2) | |
134 | + cp.set_response_type("JSON"); | |
135 | + cp.call(p,"listatemas",retorno); | |
136 | + | |
137 | + | |
118 | 138 | } |
119 | 139 | //lista os temas ligados |
120 | 140 | function listaTodos() | ... | ... |
ferramentas/inserexy/index.htm
... | ... | @@ -53,6 +53,6 @@ |
53 | 53 | </div> |
54 | 54 | </body> |
55 | 55 | <script language="JavaScript" type="text/javascript" src="../funcoes.js"></script> |
56 | -<script src="../../classesjs/cpaint/cpaint2.inc.compressed.js" type="text/javascript"></script> | |
56 | +<script src="../../pacotes/cpaint/cpaint2.inc.compressed.js" type="text/javascript"></script> | |
57 | 57 | <script language="JavaScript" type="text/javascript" src="index.js"></script> |
58 | 58 | </html> |
59 | 59 | \ No newline at end of file | ... | ... |
ferramentas/planosmanejoflorestal/pesquisa.htm
... | ... | @@ -73,7 +73,7 @@ width: 94px; |
73 | 73 | height: 35px; |
74 | 74 | } |
75 | 75 | </STYLE> |
76 | -<SCRIPT src="http://mapas.mma.gov.br/i3geo/classesjs/cpaint/cpaint2.inc.compressed.js" ></script> | |
76 | +<SCRIPT src="http://mapas.mma.gov.br/i3geo/pacotes/cpaint/cpaint2.inc.compressed.js" ></script> | |
77 | 77 | <body> |
78 | 78 | <FONT face=Arial color=#808000 size=4>Planos de Manejo - Pesquisa</FONT><br> |
79 | 79 | Planos de manejo florestal cadastrados no IBAMA. <a href="http://www.mma.gov.br/index.php?ido=conteudo.monta&idEstrutura=113&idConteudo=5588" >Mais info...</a> |
... | ... | @@ -110,7 +110,7 @@ File: pesquisa.htm |
110 | 110 | |
111 | 111 | Include: |
112 | 112 | |
113 | -<http://mapas.mma.gov.br/i3geo/classesjs/cpaint/cpaint2.inc.compressed.js> | |
113 | +<http://mapas.mma.gov.br/i3geo/pacotes/cpaint/cpaint2.inc.compressed.js> | |
114 | 114 | |
115 | 115 | */ |
116 | 116 | g_sid = window.parent.g_sid | ... | ... |
ferramentas/sibea/pesquisa.htm
... | ... | @@ -62,7 +62,7 @@ height: 35px; |
62 | 62 | } |
63 | 63 | </STYLE> |
64 | 64 | |
65 | -<SCRIPT src="http://mapas.mma.gov.br/i3geo/classesjs/cpaint/cpaint2.inc.compressed.js" ></script> | |
65 | +<SCRIPT src="http://mapas.mma.gov.br/i3geo/pacotes/cpaint/cpaint2.inc.compressed.js" ></script> | |
66 | 66 | <body> |
67 | 67 | <FONT face=Arial color=#808000 size=4>SIBEA - Educadores ambientais</FONT><br> |
68 | 68 | <FONT face=Arial color=#808000 size=2> |
... | ... | @@ -113,7 +113,7 @@ File: pesquisa.htm |
113 | 113 | |
114 | 114 | Include: |
115 | 115 | |
116 | -<http://mapas.mma.gov.br/i3geo/classesjs/cpaint/cpaint2.inc.compressed.js> | |
116 | +<http://mapas.mma.gov.br/i3geo/pacotes/cpaint/cpaint2.inc.compressed.js> | |
117 | 117 | |
118 | 118 | */ |
119 | 119 | g_sid = window.parent.g_sid | ... | ... |