Commit 197def1aea05dee3fcfc17407e9220cf6be2aa8a
1 parent
1f90886e
Exists in
master
and in
7 other branches
Inclusão da opção de edição dos parâmetros de disponibilidade de uma camada no editor de mapfiles
Showing
12 changed files
with
985 additions
and
184 deletions
Show diff stats
admin/admin.db
No preview for this file type
... | ... | @@ -0,0 +1,148 @@ |
1 | +<?php | |
2 | +/* | |
3 | + * Licenca: | |
4 | + * | |
5 | + * GPL2 | |
6 | + * | |
7 | + * i3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet | |
8 | + * | |
9 | + * Direitos Autorais Reservados (c) 2006 Edmar Moretti | |
10 | + * Desenvolvedor: Edmar Moretti edmar.moretti@gmail.com | |
11 | + * | |
12 | + * Este programa é software livre; você pode redistribuí-lo | |
13 | + * e/ou modificá-lo sob os termos da Licença Pública Geral | |
14 | + * GNU conforme publicada pela Free Software Foundation; | |
15 | + * | |
16 | + * Este programa é distribuído na expectativa de que seja útil, | |
17 | + * porém, SEM NENHUMA GARANTIA; nem mesmo a garantia implícita | |
18 | + * de COMERCIABILIDADE OU ADEQUAÇÃO A UMA FINALIDADE ESPECÍFICA. | |
19 | + * Consulte a Licença Pública Geral do GNU para mais detalhes. | |
20 | + * Você deve ter recebido uma copia da Licença Pública Geral do | |
21 | + * GNU junto com este programa; se não, escreva para a | |
22 | + * Free Software Foundation, Inc., no endereço | |
23 | + * 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. | |
24 | + */ | |
25 | +error_reporting ( 0 ); | |
26 | +// | |
27 | +// pega as variaveis passadas com get ou post | |
28 | +// | |
29 | + | |
30 | +include_once (dirname ( __FILE__ ) . "/../../../../admin/php/login.php"); | |
31 | +if (verificaOperacaoSessao ( "admin/html/editormapfile" ) === false) { | |
32 | + header ( "HTTP/1.1 403 Vc nao pode realizar essa operacao" ); | |
33 | + exit (); | |
34 | +} | |
35 | + | |
36 | +include (dirname ( __FILE__ ) . "/../../../../admin/php/conexao.php"); | |
37 | + | |
38 | +$codigo = $_POST ["codigo"]; | |
39 | +$id_tema = ( int ) $_POST ["id_tema"]; | |
40 | + | |
41 | +$funcao = strtoupper ( $funcao ); | |
42 | +switch ($funcao) { | |
43 | + case "ALTERAR" : | |
44 | + $codigo = str_replace ( " ", "", removeAcentos ( $codigo ) ); | |
45 | + $codigo = str_replace ( ".", "", $codigo ); | |
46 | + $codigo = strip_tags ( $codigo ); | |
47 | + $codigo = htmlspecialchars ( $codigo, ENT_QUOTES ); | |
48 | + $arq = $locaplic . "/temas/" . $codigo . ".map"; | |
49 | + if ($codigo == "" || ! file_exists ( $arq )) { | |
50 | + header ( "HTTP/1.1 400 arquivo nao existe" ); | |
51 | + exit (); | |
52 | + } | |
53 | + // quando e feita a listagem unica, o mapfile ja foi registrado no banco se nao tinha sido antes | |
54 | + $novo = alterar ( $locaplic, $id_tema, $codigo, $_POST["permiteogc"], $_POST["permitedownload"], $_POST["permitekml"], $_POST["permitekmz"], $_POST["download"], $_POST["arquivodownload"], $_POST["arquivokmz"], $dbhw ); | |
55 | + if ($novo === false) { | |
56 | + header ( "HTTP/1.1 500 erro ao consultar banco de dados" ); | |
57 | + exit (); | |
58 | + } | |
59 | + retornaJSON ( array ( | |
60 | + "codigo" => $codigo | |
61 | + ) ); | |
62 | + exit (); | |
63 | + break; | |
64 | + case "LISTA" : | |
65 | + // pega o nome registrado no mapfile | |
66 | + if (! file_exists ( $locaplic . "/temas/" . $codigo . ".map" )) { | |
67 | + header ( "HTTP/1.1 500 erro mapfile nao existe" ); | |
68 | + exit (); | |
69 | + } | |
70 | + $mapa = ms_newMapObj ( $locaplic . "/temas/" . $codigo . ".map" ); | |
71 | + $layer = $mapa->getlayerbyname ( $codigo ); | |
72 | + if ($layer == "") { | |
73 | + header ( "HTTP/1.1 500 erro nao existe LAYER com o nome $codigo" ); | |
74 | + exit (); | |
75 | + } | |
76 | + $dados = array (); | |
77 | + $dados ["download"] = strtoupper ( $layer->getmetadata ( "download" ) ); | |
78 | + if (empty ( $dados ["download"] )) { | |
79 | + $dados ["download"] = "SIM"; | |
80 | + } | |
81 | + $dados ["permiteogc"] = strtoupper ( $layer->getmetadata ( "permiteogc" ) ); | |
82 | + if (empty ( $dados ["permiteogc"] )) { | |
83 | + $dados ["permiteogc"] = "SIM"; | |
84 | + } | |
85 | + $dados ["permitedownload"] = strtoupper ( $layer->getmetadata ( "permitedownload" ) ); | |
86 | + if (empty ( $dados ["permitedownload"] )) { | |
87 | + $dados ["permitedownload"] = "SIM"; | |
88 | + } | |
89 | + $dados ["permitekml"] = strtoupper ( $layer->getmetadata ( "permitekml" ) ); | |
90 | + if (empty ( $dados ["permitekml"] )) { | |
91 | + $dados ["permitekml"] = "SIM"; | |
92 | + } | |
93 | + $dados ["permitekmz"] = strtoupper ( $layer->getmetadata ( "permitekmz" ) ); | |
94 | + if (empty ( $dados ["permitekmz"] )) { | |
95 | + $dados ["permitekmz"] = "SIM"; | |
96 | + } | |
97 | + $dados ["arquivodownload"] = $layer->getmetadata ( "arquivodownload" ); | |
98 | + $dados ["arquivokmz"] = $layer->getmetadata ( "arquivokmz" ); | |
99 | + retornaJSON ( array ( | |
100 | + "dados" => $dados | |
101 | + ) ); | |
102 | + break; | |
103 | +} | |
104 | +cpjson ( $retorno ); | |
105 | +function alterar($locaplic, $id_tema, $codigo, $permiteogc, $permitedownload, $permitekml, $permitekmz, $download, $arquivodownload, $arquivokmz, $dbhw) { | |
106 | + global $esquemaadmin; | |
107 | + $arq = $locaplic . "/temas/" . $codigo . ".map"; | |
108 | + if (! file_exists ( $locaplic . "/temas/" . $codigo . ".map" )) { | |
109 | + return false; | |
110 | + } | |
111 | + $mapa = ms_newMapObj ( $arq ); | |
112 | + $layer = @$mapa->getlayerbyname ( $codigo ); | |
113 | + if ($layer == "") { | |
114 | + return false; | |
115 | + } | |
116 | + $layer->setmetadata ( "download", $download ); | |
117 | + $layer->setmetadata ( "permiteogc", $permiteogc ); | |
118 | + $layer->setmetadata ( "permitedownload", $permitedownload ); | |
119 | + $layer->setmetadata ( "permitekml", $permitekml ); | |
120 | + $layer->setmetadata ( "permitekmz", $permitekmz ); | |
121 | + $layer->setmetadata ( "arquivodownload", $arquivodownload ); | |
122 | + $layer->setmetadata ( "arquivokmz", $arquivokmz ); | |
123 | + if (! empty ( $id_tema )) { | |
124 | + try { | |
125 | + $dataCol = array ( | |
126 | + "kml_tema" => $permitekml, | |
127 | + "kmz_tema" => $permitekmz, | |
128 | + "ogc_tema" => $permiteogc, | |
129 | + "download_tema" => $download | |
130 | + ); | |
131 | + $resultado = i3GeoAdminUpdate ( $dbhw, "i3geoadmin_temas", $dataCol, "WHERE id_tema = $id_tema" ); | |
132 | + if ($resultado === false) { | |
133 | + return false; | |
134 | + } | |
135 | + } catch ( PDOException $e ) { | |
136 | + return false; | |
137 | + } | |
138 | + } | |
139 | + try { | |
140 | + $mapa->save ( $arq ); | |
141 | + include (dirname ( __FILE__ ) . "/../../../php/removeCabecalhoMapfile.php"); | |
142 | + removeCabecalhoMapfile ( $arq ); | |
143 | + return true; | |
144 | + } catch (Exception $e) { | |
145 | + return false; | |
146 | + } | |
147 | +} | |
148 | +?> | ... | ... |
... | ... | @@ -0,0 +1,131 @@ |
1 | +/* | |
2 | +Licenca: | |
3 | + | |
4 | +GPL2 | |
5 | + | |
6 | +i3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet | |
7 | + | |
8 | +Direitos Autorais Reservados (c) 2006 Ministério do Meio Ambiente Brasil | |
9 | +Desenvolvedor: Edmar Moretti edmar.moretti@gmail.com | |
10 | + | |
11 | +Este programa é software livre; você pode redistribuí-lo | |
12 | +e/ou modificá-lo sob os termos da Licença Pública Geral | |
13 | +GNU conforme publicada pela Free Software Foundation; | |
14 | + | |
15 | +Este programa é distribuído na expectativa de que seja útil, | |
16 | +porém, SEM NENHUMA GARANTIA; nem mesmo a garantia implícita | |
17 | +de COMERCIABILIDADE OU ADEQUAÇÃO A UMA FINALIDADE ESPECÍFICA. | |
18 | +Consulte a Licença Pública Geral do GNU para mais detalhes. | |
19 | +Você deve ter recebido uma cópia da Licença Pública Geral do | |
20 | +GNU junto com este programa; se não, escreva para a | |
21 | +Free Software Foundation, Inc., no endereço | |
22 | +59 Temple Stredisponibilidadeet, Suite 330, Boston, MA 02111-1307 USA. | |
23 | + | |
24 | + */ | |
25 | +i3GEOadmin.mapfile = {}; | |
26 | +i3GEOadmin.disponibilidade = { | |
27 | + inicia: function(codigo, id_tema){ | |
28 | + i3GEOadmin.core.modalAguarde(true); | |
29 | + $.post( | |
30 | + "exec.php?funcao=lista", | |
31 | + "codigo="+codigo | |
32 | + ) | |
33 | + .done( | |
34 | + function(data, status){ | |
35 | + i3GEOadmin.core.modalAguarde(false); | |
36 | + var json = jQuery.parseJSON(data); | |
37 | + var hash = { | |
38 | + "sim": i3GEOadmin.disponibilidade.dicionario.sim, | |
39 | + "nao": i3GEOadmin.disponibilidade.dicionario.nao, | |
40 | + "NAO-sel" : "", | |
41 | + "SIM-sel": "" | |
42 | + }; | |
43 | + $("#corpo").html( | |
44 | + Mustache.to_html( | |
45 | + $("#templateFormDisponibilidade").html(), | |
46 | + $.extend( | |
47 | + {}, | |
48 | + i3GEOadmin.disponibilidade.dicionario, | |
49 | + json.dados, | |
50 | + { | |
51 | + "codigo": codigo, | |
52 | + "id_tema": id_tema, | |
53 | + "onSalvar": "i3GEOadmin.disponibilidade.salvar", | |
54 | + "download": function(){ | |
55 | + hash[json.dados.download + "-sel"] = "selected"; | |
56 | + return Mustache.to_html( | |
57 | + $("#templateOpcoesPublicado").html(), | |
58 | + hash | |
59 | + ); | |
60 | + }, | |
61 | + "permitedownload": function(){ | |
62 | + hash["NAO-sel"] = ""; | |
63 | + hash["SIM-sel"] = ""; | |
64 | + hash[json.dados.permitedownload + "-sel"] = "selected"; | |
65 | + return Mustache.to_html( | |
66 | + $("#templateOpcoesPublicado").html(), | |
67 | + hash | |
68 | + ); | |
69 | + }, | |
70 | + "permiteogc": function(){ | |
71 | + hash["NAO-sel"] = ""; | |
72 | + hash["SIM-sel"] = ""; | |
73 | + hash[json.dados.permiteogc + "-sel"] = "selected"; | |
74 | + return Mustache.to_html( | |
75 | + $("#templateOpcoesPublicado").html(), | |
76 | + hash | |
77 | + ); | |
78 | + }, | |
79 | + "permitekml": function(){ | |
80 | + hash["NAO-sel"] = ""; | |
81 | + hash["SIM-sel"] = ""; | |
82 | + hash[json.dados.permitekml + "-sel"] = "selected"; | |
83 | + return Mustache.to_html( | |
84 | + $("#templateOpcoesPublicado").html(), | |
85 | + hash | |
86 | + ); | |
87 | + }, | |
88 | + "permitekmz": function(){ | |
89 | + hash["NAO-sel"] = ""; | |
90 | + hash["SIM-sel"] = ""; | |
91 | + hash[json.dados.permitekmz + "-sel"] = "selected"; | |
92 | + return Mustache.to_html( | |
93 | + $("#templateOpcoesPublicado").html(), | |
94 | + hash | |
95 | + ); | |
96 | + } | |
97 | + } | |
98 | + ) | |
99 | + ) | |
100 | + ); | |
101 | + $.material.init(); | |
102 | + } | |
103 | + ) | |
104 | + .fail( | |
105 | + function(data){ | |
106 | + i3GEOadmin.core.modalAguarde(false); | |
107 | + i3GEOadmin.core.mostraErro(data.status + " " +data.statusText); | |
108 | + } | |
109 | + ); | |
110 | + }, | |
111 | + salvar: function(codigo,id_tema){ | |
112 | + var parametros = $("#form-edicao-disponibilidade").serialize(); | |
113 | + i3GEOadmin.core.modalAguarde(true); | |
114 | + $.post( | |
115 | + "exec.php?funcao=alterar", | |
116 | + "codigo=" + codigo + "&id_tema="+ id_tema+"&"+parametros | |
117 | + ) | |
118 | + .done( | |
119 | + function(data, status){ | |
120 | + i3GEOadmin.core.modalAguarde(false); | |
121 | + i3GEOadmin.disponibilidade.inicia(codigo,id_tema); | |
122 | + } | |
123 | + ) | |
124 | + .fail( | |
125 | + function(data){ | |
126 | + i3GEOadmin.core.modalAguarde(false); | |
127 | + i3GEOadmin.core.mostraErro(data.status + " " +data.statusText); | |
128 | + } | |
129 | + ); | |
130 | + } | |
131 | +}; | |
0 | 132 | \ No newline at end of file | ... | ... |
... | ... | @@ -0,0 +1,95 @@ |
1 | +<?php | |
2 | +define ( ONDEI3GEO, "../../../.." ); | |
3 | +include (dirname ( __FILE__ ) . "/../../../../ms_configura.php"); | |
4 | +error_reporting ( 0 ); | |
5 | +include "../../../head.php"; | |
6 | +$codigo = filter_var ( $_GET ["codigo"], FILTER_SANITIZE_STRING ); | |
7 | +$id_tema = (int) $_GET ["id_tema"]; | |
8 | +?> | |
9 | +<div class="container-fluid migalha"> | |
10 | + <div class="row"> | |
11 | + <div class="btn-group btn-breadcrumb"> | |
12 | + <a class="btn btn-default" href="../../../../init/index.php"> | |
13 | + <span>i3Geo</span> | |
14 | + </a> | |
15 | + <a class="btn btn-default" href="../../../index.php"> | |
16 | + <span>Admin</span> | |
17 | + </a> | |
18 | + <a class="btn btn-default" style="pointer-events: none"> | |
19 | + <span>Catálogo</span> | |
20 | + </a> | |
21 | + <a class="btn btn-default" href="../index.php"> | |
22 | + <span>Mapfiles</span> | |
23 | + </a> | |
24 | + <a class="btn btn-default" href="../opcoes/index.php?codigo=<?php echo $codigo; ?>&id_tema=<?php echo $id_tema; ?>"> | |
25 | + <span>Opções</span> | |
26 | + </a> | |
27 | + <a class="btn btn-default" style="pointer-events: none"> | |
28 | + <span><?php echo $codigo; ?></span> | |
29 | + </a> | |
30 | + <a class="btn btn-default" style="pointer-events: none"> | |
31 | + <span>Disponibilidade</span> | |
32 | + </a> | |
33 | + </div> | |
34 | + </div> | |
35 | +</div> | |
36 | +<div class="container"> | |
37 | + <div class="row center-block"> | |
38 | + <div class="col-md-12" id="titulo"> | |
39 | + <div class="well hidden" > | |
40 | + <h2><small>{{{disponibilidade}}}</small></h2> | |
41 | + <blockquote>{{{txtDisponibilidade}}}</blockquote> | |
42 | + <div class="clearfix"></div> | |
43 | + </div> | |
44 | + <div class="well hidden"> | |
45 | + <div id="corpo"> | |
46 | + </div> | |
47 | + </div> | |
48 | + </div> | |
49 | + </div> | |
50 | +</div> | |
51 | +<?php | |
52 | +include("templates/templateFormDisponibilidade.php"); | |
53 | +include("../../../templates/templateOpcoesPublicado.php"); | |
54 | +?> | |
55 | +<script type="text/javascript" src="index.js"></script> | |
56 | +<script type="text/javascript" src="../../../dicionario/editormapfile.js"></script> | |
57 | +<script> | |
58 | + $(document).ready(function(){ | |
59 | + //vem de admin1/index.js | |
60 | + iniciaMenuPrincipal(); | |
61 | + $('ul.dropdown-menu [data-toggle=dropdown]').on('click', function(event) { | |
62 | + event.preventDefault(); | |
63 | + event.stopPropagation(); | |
64 | + $(this).parent().siblings().removeClass('open'); | |
65 | + $(this).parent().toggleClass('open'); | |
66 | + }); | |
67 | + //traducao | |
68 | + | |
69 | + //complementa dicionario | |
70 | + i3GEOadmin.disponibilidade.dicionario = $.extend( | |
71 | + {}, | |
72 | + i3GEOadmin.mapfile.dicionario, | |
73 | + i3GEOadmin.core.dicionario | |
74 | + ); | |
75 | + | |
76 | + i3GEOadmin.core.dicionario = null; | |
77 | + | |
78 | + i3GEOadmin.disponibilidade.dicionario = i3GEO.idioma.objetoIdioma(i3GEOadmin.disponibilidade.dicionario); | |
79 | + var t = $("#titulo"); | |
80 | + t.html( | |
81 | + Mustache.to_html( | |
82 | + t.html(), | |
83 | + i3GEOadmin.disponibilidade.dicionario | |
84 | + ) | |
85 | + ); | |
86 | + | |
87 | + var inicia = function() { | |
88 | + $(".hidden").removeClass('hidden'); | |
89 | + i3GEOadmin.disponibilidade.inicia("<?php echo $codigo; ?>","<?php echo $id_tema; ?>"); | |
90 | + }; | |
91 | + i3GEO.login.verificaOperacao("admin/html/editormapfile",i3GEO.configura.locaplic, inicia, "sessao"); | |
92 | + }); | |
93 | +</script> | |
94 | +</body> | |
95 | +</html> | ... | ... |
admin1/catalogo/mapfile/disponibilidade/templates/templateFormDisponibilidade.php
0 → 100755
... | ... | @@ -0,0 +1,124 @@ |
1 | +<script id="templateFormDisponibilidade" type="x-tmpl-mustache"> | |
2 | +<form id="form-edicao-disponibilidade" style="" action="#" onsubmit="{{onSalvar}}('{{codigo}}','{{id_tema}}');return false;" class="form-horizontal" role="form" | |
3 | + method="post" > | |
4 | + <div class="col-md-12"> | |
5 | + <div class="form-group form-group-lg"> | |
6 | + <div class="col-md-6"> | |
7 | + <label class="control-label" for="download"> | |
8 | + {{{permiteDownloadTitulo}}} | |
9 | + </label> | |
10 | + <p class="small"> | |
11 | + {{{permiteDownload}}} (metadata: DOWNLOAD) | |
12 | + </p> | |
13 | + </div> | |
14 | + <div class="col-md-6"> | |
15 | + <select title="{{{permiteDownloadTitulo}}}" name="download" class="form-control" required > | |
16 | + {{{download}}} | |
17 | + </select> | |
18 | + </div> | |
19 | + </div> | |
20 | + </div> | |
21 | + <div class="col-md-12"> | |
22 | + <div class="form-group form-group-lg"> | |
23 | + <div class="col-md-6"> | |
24 | + <label class="control-label" for="permitedownload"> | |
25 | + {{{permiteDownload2}}} | |
26 | + </label> | |
27 | + <p class="small"> | |
28 | + (metadata: PERMITEDOWNLOAD) | |
29 | + </p> | |
30 | + </div> | |
31 | + <div class="col-md-6"> | |
32 | + <select name="permitedownload" class="form-control" required > | |
33 | + {{{permitedownload}}} | |
34 | + </select> | |
35 | + </div> | |
36 | + </div> | |
37 | + </div> | |
38 | + <div class="col-md-12"> | |
39 | + <div class="form-group form-group-lg"> | |
40 | + <div class="col-md-6"> | |
41 | + <label class="control-label" for="permiteogc"> | |
42 | + {{{permiteOgc2}}} | |
43 | + </label> | |
44 | + <p class="small"> | |
45 | + (metadata: PERMITEOGC) | |
46 | + </p> | |
47 | + </div> | |
48 | + <div class="col-md-6"> | |
49 | + <select name="permiteogc" class="form-control" required > | |
50 | + {{{permiteogc}}} | |
51 | + </select> | |
52 | + </div> | |
53 | + </div> | |
54 | + </div> | |
55 | + <div class="col-md-12"> | |
56 | + <div class="form-group form-group-lg"> | |
57 | + <div class="col-md-6"> | |
58 | + <label class="control-label" for="permitekml"> | |
59 | + {{{permiteKml}}} | |
60 | + </label> | |
61 | + <p class="small"> | |
62 | + (metadata: PERMITEKML) | |
63 | + </p> | |
64 | + </div> | |
65 | + <div class="col-md-6"> | |
66 | + <select name="permitekml" class="form-control" required > | |
67 | + {{{permitekml}}} | |
68 | + </select> | |
69 | + </div> | |
70 | + </div> | |
71 | + </div> | |
72 | + <div class="col-md-12"> | |
73 | + <div class="form-group form-group-lg"> | |
74 | + <div class="col-md-6"> | |
75 | + <label class="control-label" for="permitekmz"> | |
76 | + {{{permiteKmz}}} | |
77 | + </label> | |
78 | + <p class="small"> | |
79 | + (metadata: PERMITEKMZ) | |
80 | + </p> | |
81 | + </div> | |
82 | + <div class="col-md-6"> | |
83 | + <select name="permitekmz" class="form-control" required > | |
84 | + {{{permitekmz}}} | |
85 | + </select> | |
86 | + </div> | |
87 | + </div> | |
88 | + </div> | |
89 | + <div class="col-md-12"> | |
90 | + <div class="form-group form-group-lg"> | |
91 | + <div class="col-md-6"> | |
92 | + <label class="control-label" for="arquivodownload"> | |
93 | + {{{enderecoTitulo}}} | |
94 | + </label> | |
95 | + <p class="small"> | |
96 | + {{{endereco}}} (metadata: ARQUIVODOWNLOAD) | |
97 | + </p> | |
98 | + </div> | |
99 | + <div class="col-md-6"> | |
100 | + <input title="{{{enderecoTitulo}}}" type="text" value="{{{arquivodownload}}}" class="form-control" name="arquivodownload" > | |
101 | + </div> | |
102 | + </div> | |
103 | + </div> | |
104 | + <div class="col-md-12"> | |
105 | + <div class="form-group form-group-lg"> | |
106 | + <div class="col-md-6"> | |
107 | + <label class="control-label" for="arquivokmz"> | |
108 | + {{{arquivoKmzTitulo}}} | |
109 | + </label> | |
110 | + <p class="small"> | |
111 | + {{{arquivoKmz}}} (metadata: ARQUIVOKMZ) | |
112 | + </p> | |
113 | + </div> | |
114 | + <div class="col-md-6"> | |
115 | + <input title="{{{arquivoKmzTitulo}}}" type="text" value="{{{arquivokmz}}}" class="form-control" name="arquivokmz" > | |
116 | + </div> | |
117 | + </div> | |
118 | + </div> | |
119 | + <div class="pull-right"> | |
120 | + <button type="submit" class="btn btn-primary" role="button" style="color:#008579;">{{salvar}}</button> | |
121 | + </div> | |
122 | + <div class="clearfix"></div> | |
123 | +</form> | |
124 | +</script> | |
0 | 125 | \ No newline at end of file | ... | ... |
admin1/catalogo/mapfile/editor/index.php
1 | 1 | <?php |
2 | -//TODO botoes de copiar, colar, limpar | |
3 | -//TODO editor de cores | |
2 | +// TODO botoes de copiar, colar, limpar | |
3 | +// TODO editor de cores | |
4 | 4 | // |
5 | 5 | define ( ONDEI3GEO, "../../../.." ); |
6 | 6 | include (dirname ( __FILE__ ) . "/../../../../ms_configura.php"); |
... | ... | @@ -9,7 +9,7 @@ include "../../../head.php"; |
9 | 9 | $codigo = filter_var ( $_GET ["codigo"], FILTER_SANITIZE_STRING ); |
10 | 10 | $id_tema = ( int ) $_GET ["id_tema"]; |
11 | 11 | include ("exec.php"); |
12 | -salvaMapfile(); | |
12 | +salvaMapfile (); | |
13 | 13 | $textoMapfile = textoMapfile ( $codigo ); |
14 | 14 | ?> |
15 | 15 | <div class="container-fluid migalha"> |
... | ... | @@ -41,28 +41,34 @@ $textoMapfile = textoMapfile ( $codigo ); |
41 | 41 | </div> |
42 | 42 | <div class="container-fluid"> |
43 | 43 | <div class="row center-block"> |
44 | - <div class="col-md-12"> | |
45 | - <div class="well" id="titulo"> | |
46 | - <blockquote> | |
47 | - {{{ajudaEditor}}} | |
48 | - <a href="http://mapserver.org/mapfile/index.html#mapfile" target="_new">Mapserver</a> | |
49 | - </blockquote> | |
50 | - <a onclick="i3GEOadmin.editor.salvar()" class="btn btn-primary" style="color: #008579;" href="#" role="button"> {{{salva}}} </a> | |
51 | - <a onclick="i3GEOadmin.editor.preview('<?php echo $codigo;?>')" class="btn btn-primary" style="color: #008579;" href="#" role="button"> Preview </a> | |
52 | - <a onclick="i3GEOadmin.editor.testar('<?php echo $codigo;?>')" href="javascript:void(0)" class="btn btn-primary" style="color: #008579;" role="button"> {{{testaLayer}}} </a> | |
53 | - <a onclick="window.open('../../../../ms_criamapa.php?temasa=<?php echo $codigo;?>&layers=<?php echo $codigo;?>')" class="btn btn-primary" style="color: #008579;" href="javascript:void(0)" role="button"> {{{testarI3geo}}} </a> | |
54 | - <a onclick="i3GEOadmin.editor.testaTabela('<?php echo $codigo;?>')" class="btn btn-primary" style="color: #008579;" href="javascript:void(0)" role="button"> {{{tabela}}} </a> | |
55 | - </div> | |
56 | - <form action="index.php?codigo=<?php echo $codigo;?>&id_tema=<?php echo $id_tema;?>" method="post"> | |
57 | - <TEXTAREA id=editor name=texto class="well form-control" style='font-size: 16px; width: 100%; float: left; border: 2px dotted lightgray;'> | |
58 | - <?php echo $textoMapfile; ?> | |
44 | + <div class="col-md-12 well" id="titulo"> | |
45 | + | |
46 | + <blockquote> | |
47 | + {{{ajudaEditor}}} | |
48 | + <a href="http://mapserver.org/mapfile/index.html#mapfile" target="_new">Mapserver</a> | |
49 | + </blockquote> | |
50 | + <a onclick="i3GEOadmin.editor.salvar()" class="btn btn-primary" style="color: #008579;" href="#" role="button"> {{{salva}}} </a> | |
51 | + <a onclick="i3GEOadmin.editor.preview('<?php echo $codigo;?>')" class="btn btn-primary" style="color: #008579;" href="#" role="button"> Preview </a> | |
52 | + <a onclick="i3GEOadmin.editor.testar('<?php echo $codigo;?>')" href="javascript:void(0)" class="btn btn-primary" style="color: #008579;" role="button"> {{{testaLayer}}} </a> | |
53 | + <a onclick="window.open('../../../../ms_criamapa.php?temasa=<?php echo $codigo;?>&layers=<?php echo $codigo;?>')" class="btn btn-primary" style="color: #008579;" href="javascript:void(0)" | |
54 | + role="button"> {{{testarI3geo}}} </a> | |
55 | + <a onclick="i3GEOadmin.editor.testaTabela('<?php echo $codigo;?>')" class="btn btn-primary" style="color: #008579;" href="javascript:void(0)" role="button"> {{{tabela}}} </a> | |
56 | + | |
57 | + </div> | |
58 | + </div> | |
59 | + <div class="row center-block"> | |
60 | + <div class="col-md-12 well"> | |
61 | + <form action="index.php?codigo=<?php echo $codigo;?>&id_tema=<?php echo $id_tema;?>" method="post"> | |
62 | + <TEXTAREA id=editor name=texto style='font-size: 16px; width: 100%; float: left; border: 2px dotted lightgray;'> | |
63 | + <?php echo $textoMapfile; ?> | |
59 | 64 | </TEXTAREA> |
60 | - </form> | |
61 | - <!-- para calcular a altura do textarea --> | |
62 | - <pre id="editortemp" style="font-size: 16px; display: block; visibility: hidden;"><?php echo $textoMapfile; ?></pre> | |
65 | + </form> | |
66 | + <!-- para calcular a altura do textarea --> | |
67 | + <pre id="editortemp" style="font-size: 16px; display: block; visibility: hidden;"><?php echo $textoMapfile; ?></pre> | |
63 | 68 | </div> |
64 | 69 | </div> |
65 | 70 | </div> |
71 | + | |
66 | 72 | <script type="text/javascript" src="index.js"></script> |
67 | 73 | <script type="text/javascript" src="../teste/index.js"></script> |
68 | 74 | <script type="text/javascript" src="../../../dicionario/editormapfile.js"></script> |
... | ... | @@ -77,8 +83,7 @@ $(document).ready(function(){ |
77 | 83 | $(this).parent().siblings().removeClass('open'); |
78 | 84 | $(this).parent().toggleClass('open'); |
79 | 85 | }); |
80 | - //traducao | |
81 | - var t = $("#titulo"); | |
86 | + | |
82 | 87 | //complementa dicionario |
83 | 88 | i3GEOadmin.mapfile.dicionario = $.extend( |
84 | 89 | {}, |
... | ... | @@ -90,13 +95,21 @@ $(document).ready(function(){ |
90 | 95 | |
91 | 96 | i3GEOadmin.editor.dicionario = i3GEO.idioma.objetoIdioma(i3GEOadmin.mapfile.dicionario); |
92 | 97 | |
98 | + //traducao | |
99 | + var t = $("#titulo"); | |
100 | + t.html( | |
101 | + Mustache.to_html( | |
102 | + t.html(), | |
103 | + i3GEOadmin.editor.dicionario | |
104 | + ) | |
105 | + ); | |
106 | + t = $("#ajudantes"); | |
93 | 107 | t.html( |
94 | 108 | Mustache.to_html( |
95 | 109 | t.html(), |
96 | 110 | i3GEOadmin.editor.dicionario |
97 | 111 | ) |
98 | 112 | ); |
99 | - | |
100 | 113 | var inicia = function() { |
101 | 114 | $(".hidden").removeClass('hidden'); |
102 | 115 | }; | ... | ... |
admin1/catalogo/mapfile/index.php
... | ... | @@ -7,50 +7,56 @@ include "../../head.php"; |
7 | 7 | <div class="container-fluid migalha"> |
8 | 8 | <div class="row"> |
9 | 9 | <div class="btn-group btn-breadcrumb"> |
10 | - <a class="btn btn-default" href="../../../init/index.php"><span>i3Geo</span></a> | |
11 | - <a class="btn btn-default" href="../../index.php"><span>Admin</span></a> | |
12 | - <a class="btn btn-default" style="pointer-events: none"><span>Catálogo</span></a> | |
13 | - <a class="btn btn-default" style="pointer-events: none"><span>Mapfiles</span></a> | |
10 | + <a class="btn btn-default" href="../../../init/index.php"> | |
11 | + <span>i3Geo</span> | |
12 | + </a> | |
13 | + <a class="btn btn-default" href="../../index.php"> | |
14 | + <span>Admin</span> | |
15 | + </a> | |
16 | + <a class="btn btn-default" style="pointer-events: none"> | |
17 | + <span>Catálogo</span> | |
18 | + </a> | |
19 | + <a class="btn btn-default" style="pointer-events: none"> | |
20 | + <span>Mapfiles</span> | |
21 | + </a> | |
14 | 22 | </div> |
15 | 23 | </div> |
16 | 24 | </div> |
17 | 25 | <div class="container"> |
18 | 26 | <div class="row center-block"> |
19 | 27 | <div class="col-md-12" id="titulo"> |
20 | - <div class="well hidden" > | |
21 | - <button data-toggle="modal" data-target="#ajudaPrincipal" | |
22 | - class="btn btn-primary btn-fab btn-fab-mini pull-right"> | |
28 | + <div class="well hidden"> | |
29 | + <button data-toggle="modal" data-target="#ajudaPrincipal" class="btn btn-primary btn-fab btn-fab-mini pull-right"> | |
23 | 30 | <i class="material-icons">help</i> |
24 | 31 | </button> |
25 | 32 | <span class="pull-right"> </span> |
26 | - <button data-toggle="modal" data-target="#modalFiltro" | |
27 | - class="btn btn-primary btn-fab btn-fab-mini pull-right"> | |
33 | + <button data-toggle="modal" data-target="#modalFiltro" class="btn btn-primary btn-fab btn-fab-mini pull-right"> | |
28 | 34 | <i class="material-icons">search</i> |
29 | 35 | </button> |
30 | - <h2><small>{{{txtTitulo}}}</small></h2> | |
36 | + <h2> | |
37 | + <small>{{{txtTitulo}}}</small> | |
38 | + </h2> | |
31 | 39 | <blockquote>{{{txtDesc}}}</blockquote> |
32 | 40 | <div class="col-md-6"> |
33 | 41 | <div class="form-group"> |
34 | - <label class="control-label">{{{validar}}}</label> | |
35 | - <select title="{{{validar}}}" onchange="i3GEOadmin.mapfile.lista('',this.value);" id="" class="form-control input-lg"> | |
36 | - <option value='' ></option> | |
37 | - <option value=1 >Sem fonte</option> | |
38 | - <option value=12 >Títulos diferentes no mapfile e no banco de dados</option> | |
39 | - <option value=13 >LAYER com NAME diferente do nome do arquivo mapfile</option> | |
40 | - <option value=2 >Nome não definido no banco de dados</option> | |
41 | - <option value=3 >Nome definido no banco de dados</option> | |
42 | - <option value=4 >Permite download</option> | |
43 | - <option value=5 >Não permite download</option> | |
44 | - <option value=6 >Permite WMS</option> | |
45 | - <option value=7 >Não permite WMS</option> | |
46 | - <option value=8 >Permite KML</option> | |
47 | - <option value=9 >Não permite KML</option> | |
48 | - <option value=10 >Permite KMZ</option> | |
49 | - <option value=11 >Não permite KMZ</option> | |
42 | + <label class="control-label">{{{validar}}}</label> <select title="{{{validar}}}" onchange="i3GEOadmin.mapfile.lista('',this.value);" id="" class="form-control input-lg"> | |
43 | + <option value=''></option> | |
44 | + <option value=1>Sem fonte</option> | |
45 | + <option value=12>Títulos diferentes no mapfile e no banco de dados</option> | |
46 | + <option value=13>LAYER com NAME diferente do nome do arquivo mapfile</option> | |
47 | + <option value=2>Nome não definido no banco de dados</option> | |
48 | + <option value=3>Nome definido no banco de dados</option> | |
49 | + <option value=4>Permite download</option> | |
50 | + <option value=5>Não permite download</option> | |
51 | + <option value=6>Permite WMS</option> | |
52 | + <option value=7>Não permite WMS</option> | |
53 | + <option value=8>Permite KML</option> | |
54 | + <option value=9>Não permite KML</option> | |
55 | + <option value=10>Permite KMZ</option> | |
56 | + <option value=11>Não permite KMZ</option> | |
50 | 57 | </select> |
51 | 58 | </div> |
52 | 59 | </div> |
53 | - | |
54 | 60 | <div class="clearfix"></div> |
55 | 61 | <div id="ajudaPrincipal" class="modal fade" tabindex="-1"> |
56 | 62 | <div class="modal-dialog"> |
... | ... | @@ -63,35 +69,36 @@ include "../../head.php"; |
63 | 69 | </div> |
64 | 70 | </div> |
65 | 71 | <div class="well hidden"> |
66 | - <div class="panel-heading"> | |
67 | - <p class="lead" style="margin:0px;"> | |
68 | - <a title="{{{adicionar}}}" onclick="i3GEOadmin.mapfile.adicionaDialogo();" href="javascript:void(0)" | |
69 | - class="pull-right btn btn-danger btn-fab btn-fab-mini" role="button" ><i class="material-icons ">add</i> | |
70 | - </a> | |
71 | - </p> | |
72 | - </div> | |
73 | - <div class="clearfix"></div> | |
72 | + | |
74 | 73 | <div class="panel panel-default" id="favoritos"> |
75 | 74 | <div class="panel-heading icon" role="tab"> |
76 | 75 | <h4 class="panel-title"> |
77 | - <a class="collapsed in" role="button" data-toggle="collapse" href="#body-favoritos" | |
78 | - aria-expanded="false" > <i class="material-icons">star_border</i> {{{favoritos}}} </a> | |
76 | + <a class="collapsed in" role="button" data-toggle="collapse" href="#body-favoritos" aria-expanded="false"> | |
77 | + <i class="material-icons">star_border</i> {{{favoritos}}} | |
78 | + </a> | |
79 | 79 | </h4> |
80 | 80 | </div> |
81 | - <div class="panel-body panel-collapse collapse" id="body-favoritos"> | |
82 | - </div> | |
81 | + <div class="panel-body panel-collapse collapse" id="body-favoritos"></div> | |
83 | 82 | </div> |
84 | - <div id="corpo"> | |
83 | + <div class="panel-heading"> | |
84 | + <p class="lead" style="margin: 0px;"> | |
85 | + | |
86 | + <a title="{{{adicionar}}}" onclick="i3GEOadmin.mapfile.adicionaDialogo();" href="javascript:void(0)" class="pull-right btn btn-danger btn-fab btn-fab-mini" role="button"> | |
87 | + <i class="material-icons ">add</i> | |
88 | + </a> | |
89 | + </p> | |
85 | 90 | </div> |
91 | + <div class="clearfix"></div> | |
92 | + <div id="corpo"></div> | |
86 | 93 | </div> |
87 | 94 | </div> |
88 | 95 | </div> |
89 | 96 | </div> |
90 | 97 | <?php |
91 | -include("templates/templateManterTema.php"); | |
92 | -include("templates/templateLista.php"); | |
93 | -include("templates/templateFiltro.php"); | |
94 | -include("templates/templateClonarTema.php"); | |
98 | +include ("templates/templateManterTema.php"); | |
99 | +include ("templates/templateLista.php"); | |
100 | +include ("templates/templateFiltro.php"); | |
101 | +include ("templates/templateClonarTema.php"); | |
95 | 102 | ?> |
96 | 103 | <script type="text/javascript" src="index.js"></script> |
97 | 104 | <script type="text/javascript" src="../../dicionario/editormapfile.js"></script> | ... | ... |
admin1/catalogo/mapfile/opcoes/templates/templateMaisOpcoes.php
... | ... | @@ -2,10 +2,21 @@ |
2 | 2 | <div class="list-group-item"> |
3 | 3 | <div class="row-content" > |
4 | 4 | <h4 class="list-group-item-heading"> |
5 | - <a title="{{{gruposUsuarios}}}" href="../gruposusuarios/index.php?codigo={{codigo}}&id_tema={{id_tema}}" class="pull-right btn btn-danger btn-fab btn-fab-mini" role="button"> | |
6 | - <i class="material-icons">sending</i> | |
5 | + <a title="{{{testaLayer}}}" onclick="i3GEOadmin.opcoesmapfile.testa('{{codigo}}')" href="javascript:void(0)" class="pull-right btn btn-danger btn-fab btn-fab-mini" role="button"> | |
6 | + <i class="material-icons md-18">send</i> | |
7 | + </a> | |
8 | + {{{testaLayer}}} | |
9 | + </h4> | |
10 | + </div> | |
11 | + <div class="list-group-separator"></div> | |
12 | +</div> | |
13 | +<div class="list-group-item"> | |
14 | + <div class="row-content" > | |
15 | + <h4 class="list-group-item-heading"> | |
16 | + <a title="{{{testarI3geo}}}" onclick="window.open('../../../../ms_criamapa.php?temasa={{codigo}}&layers={{codigo}}')" href="javascript:void(0)" class="pull-right btn btn-danger btn-fab btn-fab-mini" role="button"> | |
17 | + <i class="material-icons md-18">send</i> | |
7 | 18 | </a> |
8 | - {{{gruposUsuarios}}} | |
19 | + {{{testarI3geo}}} | |
9 | 20 | </h4> |
10 | 21 | </div> |
11 | 22 | <div class="list-group-separator"></div> |
... | ... | @@ -14,7 +25,7 @@ |
14 | 25 | <div class="row-content" > |
15 | 26 | <h4 class="list-group-item-heading"> |
16 | 27 | <a title="{{{editarI3geo}}}" onclick="window.open('../../../../interface/black_editor.php?temaEdicao={{codigo}}')" href="javascript:void(0)" class="pull-right btn btn-danger btn-fab btn-fab-mini" role="button"> |
17 | - <i class="material-icons">sending</i> | |
28 | + <i class="material-icons md-18">more_horiz</i> | |
18 | 29 | </a> |
19 | 30 | {{{editarI3geo}}} |
20 | 31 | </h4> |
... | ... | @@ -25,7 +36,7 @@ |
25 | 36 | <div class="row-content" > |
26 | 37 | <h4 class="list-group-item-heading"> |
27 | 38 | <a title="{{{editorTxt}}}" href="../editor/index.php?codigo={{codigo}}&id_tema={{id_tema}}" class="pull-right btn btn-danger btn-fab btn-fab-mini" role="button"> |
28 | - <i class="material-icons">sending</i> | |
39 | + <i class="material-icons md-18">more_horiz</i> | |
29 | 40 | </a> |
30 | 41 | {{{editorTxt}}} |
31 | 42 | </h4> |
... | ... | @@ -36,9 +47,12 @@ |
36 | 47 | <div class="row-content"> |
37 | 48 | <h4 class="list-group-item-heading"> |
38 | 49 | <a title="{{{limpaCache}}}" onclick="i3GEOadmin.opcoesmapfile.limpaCacheDialogo('{{codigo}}')" href="javascript:void(0)" class="pull-right btn btn-danger btn-fab btn-fab-mini" role="button"> |
39 | - <i class="material-icons">sending</i> | |
50 | + <i class="material-icons md-18">send</i> | |
40 | 51 | </a> |
41 | 52 | {{{limpaCache}}} |
53 | + <span id="helpBlock" class="help-block"> | |
54 | + {{{txtLimpaCache}}} | |
55 | + </span> | |
42 | 56 | </h4> |
43 | 57 | </div> |
44 | 58 | <div class="list-group-separator"></div> |
... | ... | @@ -46,10 +60,13 @@ |
46 | 60 | <div class="list-group-item"> |
47 | 61 | <div class="row-content" > |
48 | 62 | <h4 class="list-group-item-heading"> |
49 | - <a title="{{{testaLayer}}}" onclick="i3GEOadmin.opcoesmapfile.testa('{{codigo}}')" href="javascript:void(0)" class="pull-right btn btn-danger btn-fab btn-fab-mini" role="button"> | |
50 | - <i class="material-icons">sending</i> | |
63 | + <a title="{{{gruposUsuarios}}}" href="../gruposusuarios/index.php?codigo={{codigo}}&id_tema={{id_tema}}" class="pull-right btn btn-danger btn-fab btn-fab-mini" role="button"> | |
64 | + <i class="material-icons md-18">more_horiz</i> | |
51 | 65 | </a> |
52 | - {{{testaLayer}}} | |
66 | + {{{gruposEusuarios}}} | |
67 | + <span id="helpBlock" class="help-block"> | |
68 | + {{{txtGruposUsuarios}}} | |
69 | + </span> | |
53 | 70 | </h4> |
54 | 71 | </div> |
55 | 72 | <div class="list-group-separator"></div> |
... | ... | @@ -57,12 +74,16 @@ |
57 | 74 | <div class="list-group-item"> |
58 | 75 | <div class="row-content" > |
59 | 76 | <h4 class="list-group-item-heading"> |
60 | - <a title="{{{testarI3geo}}}" onclick="window.open('../../../../ms_criamapa.php?temasa={{codigo}}&layers={{codigo}}')" href="javascript:void(0)" class="pull-right btn btn-danger btn-fab btn-fab-mini" role="button"> | |
61 | - <i class="material-icons">sending</i> | |
77 | + <a title="{{{disponibilidade}}}" href="../disponibilidade/index.php?codigo={{codigo}}&id_tema={{id_tema}}" class="pull-right btn btn-danger btn-fab btn-fab-mini" role="button"> | |
78 | + <i class="material-icons md-18">more_horiz</i> | |
62 | 79 | </a> |
63 | - {{{testarI3geo}}} | |
80 | + {{{disponibilidade}}} | |
81 | + <span id="helpBlock" class="help-block"> | |
82 | + {{{txtDisponibilidade}}} | |
83 | + </span> | |
64 | 84 | </h4> |
65 | 85 | </div> |
66 | 86 | <div class="list-group-separator"></div> |
67 | 87 | </div> |
88 | + | |
68 | 89 | </script> | ... | ... |
admin1/dicionario/editormapfile.js
... | ... | @@ -141,7 +141,12 @@ i3GEOadmin.mapfile.dicionario = { |
141 | 141 | es : "" |
142 | 142 | } ], |
143 | 143 | 'limpaCache' : [ { |
144 | - pt : "Limpa o cache de imagens se houver", | |
144 | + pt : "Limpa o cache de imagens", | |
145 | + en : "", | |
146 | + es : "" | |
147 | + } ], | |
148 | + 'txtLimpaCache' : [ { | |
149 | + pt : "Remove os arquivos de imagem temporários gerados no processo de renderização da camada. A geração do cache é uma opção de cada camada. A limpeza pode não funcionar em alguns sistemas, o que exige a intervenção manual do administrador. A pasta onde o cache é armazenado é definida em ms_configura.php.", | |
145 | 150 | en : "", |
146 | 151 | es : "" |
147 | 152 | } ], |
... | ... | @@ -150,7 +155,7 @@ i3GEOadmin.mapfile.dicionario = { |
150 | 155 | en : "", |
151 | 156 | es : "" |
152 | 157 | } ], |
153 | - 'gruposUsuarios' : [ { | |
158 | + 'gruposEusuarios' : [ { | |
154 | 159 | pt : "Grupos de usuários que podem utilizar", |
155 | 160 | en : "", |
156 | 161 | es : "" |
... | ... | @@ -630,6 +635,11 @@ i3GEOadmin.mapfile.dicionario = { |
630 | 635 | en : "", |
631 | 636 | es : "" |
632 | 637 | } ], |
638 | + 'txtDisponibilidade' : [ { | |
639 | + pt : "Os dados de uma camada podem ficar disponíveis para download ou acessíveis por meio de serviços OGC. Para uso com o aplicativo 'mashup' os dados devem estar disponíveis como serviços OGC.", | |
640 | + en : "", | |
641 | + es : "" | |
642 | + } ], | |
633 | 643 | 'conexao' : [ { |
634 | 644 | pt : "Conexão", |
635 | 645 | en : "", |
... | ... | @@ -641,7 +651,7 @@ i3GEOadmin.mapfile.dicionario = { |
641 | 651 | es : "" |
642 | 652 | } ], |
643 | 653 | 'permiteDownloadTitulo' : [ { |
644 | - pt : "Permite download (METADATA: DOWNLOAD)", | |
654 | + pt : "Permite download", | |
645 | 655 | en : "", |
646 | 656 | es : "" |
647 | 657 | } ], |
... | ... | @@ -651,7 +661,7 @@ i3GEOadmin.mapfile.dicionario = { |
651 | 661 | es : "" |
652 | 662 | } ], |
653 | 663 | 'enderecoTitulo' : [ { |
654 | - pt : "Arquivo download (ARQUIVODOWNLOAD)", | |
664 | + pt : "Arquivo download", | |
655 | 665 | en : "", |
656 | 666 | es : "" |
657 | 667 | } ], |
... | ... | @@ -661,27 +671,27 @@ i3GEOadmin.mapfile.dicionario = { |
661 | 671 | es : "" |
662 | 672 | } ], |
663 | 673 | 'arquivoKmzTitulo' : [ { |
664 | - pt : "Arquivo KML ou KMZ (ARQUIVOKMZ)", | |
674 | + pt : "Arquivo KML ou KMZ", | |
665 | 675 | en : "", |
666 | 676 | es : "" |
667 | 677 | } ], |
668 | 678 | 'permiteOgc2' : [ { |
669 | - pt : "Permite acesso via WMS/WFS? (não ocasiona restrição em temas do tipo gvSIG)", | |
679 | + pt : "Permite acesso via WMS/WFS", | |
670 | 680 | en : "", |
671 | 681 | es : "" |
672 | 682 | } ], |
673 | 683 | 'permiteDownload2' : [ { |
674 | - pt : "Permite o download na aplicação datadownload.htm? (não afeta temas do tipo gvSIG) (não afeta a permissão de download definida no item 'disponibilidade' existente em cada layer)", | |
684 | + pt : "Mostra essa camada no aplicativo de acesso aos serviços OGC e download", | |
675 | 685 | en : "", |
676 | 686 | es : "" |
677 | 687 | } ], |
678 | 688 | 'permiteKml' : [ { |
679 | - pt : "Permite acesso via kml? (não restringe em temas do tipo gvSIG)", | |
689 | + pt : "Permite acesso via kml", | |
680 | 690 | en : "", |
681 | 691 | es : "" |
682 | 692 | } ], |
683 | 693 | 'permiteKmz' : [ { |
684 | - pt : "Permite acesso via kmz (kml com dados vetoriais)? (não restringe em temas do tipo gvSIG)", | |
694 | + pt : "Permite acesso via kmz (kml com dados vetoriais)", | |
685 | 695 | en : "", |
686 | 696 | es : "" |
687 | 697 | } ], |
... | ... | @@ -1185,11 +1195,6 @@ i3GEOadmin.mapfile.dicionario = { |
1185 | 1195 | en : "", |
1186 | 1196 | es : "" |
1187 | 1197 | } ], |
1188 | - 'disponibLayer' : [ { | |
1189 | - pt : " Disponibilidade (download, wms,...)", | |
1190 | - en : "", | |
1191 | - es : "" | |
1192 | - } ], | |
1193 | 1198 | 'miscLayer' : [ { |
1194 | 1199 | pt : " Miscelânea", |
1195 | 1200 | en : "", | ... | ... |
ferramentas/graficotema/exec.php
... | ... | @@ -15,6 +15,7 @@ Gera graficos automaticamente para os elementos de um tema |
15 | 15 | <Temas->graficotema> |
16 | 16 | */ |
17 | 17 | case "GRAFICOTEMA": |
18 | + $mesmoTema = $_GET["mesmoTema"]; | |
18 | 19 | include_once(dirname(__FILE__)."/../../classesphp/classe_temas.php"); |
19 | 20 | copiaSeguranca($map_file); |
20 | 21 | $m = new Temas($map_file,$tema,$locaplic); |
... | ... | @@ -25,7 +26,7 @@ Gera graficos automaticamente para os elementos de um tema |
25 | 26 | $mesmoTema = false; |
26 | 27 | } |
27 | 28 | |
28 | - $m->graficotema($_GET["lista"],$_GET["tamanho"],$_GET["tipo"],$_GET["outlinecolor"],$_GET["offset"],$_GET["mesmoTema"]); | |
29 | + $m->graficotema($_GET["lista"],$_GET["tamanho"],$_GET["tipo"],$_GET["outlinecolor"],$_GET["offset"],$mesmoTema); | |
29 | 30 | $m->salva(); |
30 | 31 | $_SESSION["contadorsalva"]++; |
31 | 32 | redesenhaMapa(); | ... | ... |
... | ... | @@ -0,0 +1,253 @@ |
1 | +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
2 | +<html> | |
3 | +<head> | |
4 | +<meta http-equiv="Category" content="i3Geo Mapa interativo MMA geoprocessamento sig mobile"> | |
5 | +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> | |
6 | +<meta name="viewport" content="width=device-width, initial-scale=1"> | |
7 | +<title>i3GEO - OpenLayers</title> | |
8 | +<script src="../classesjs/i3geonaocompacto.js"></script> | |
9 | +<script src="../pacotes/openlayers/OpenLayers2131.js.php"></script> | |
10 | +<link rel="stylesheet" type="text/css" href="../css/black.css"> | |
11 | +<style> | |
12 | + .olControlEditingToolbar1 div { | |
13 | + background-image: url(../mashups/openlayers.png); | |
14 | + background-repeat: no-repeat; | |
15 | + float: right; | |
16 | + right: 50px; | |
17 | + height: 29px; | |
18 | + margin: 2px; | |
19 | + width: 29px; | |
20 | + cursor: pointer; | |
21 | + top: 10px; | |
22 | + } | |
23 | +</style> | |
24 | +</head> | |
25 | +<body id="i3geo" style='margin-left: 7px; background: white;'> | |
26 | + <!-- inclui o nome do usuario logado --> | |
27 | + <div id="i3GEONomeLogin" style="position: absolute; left: 10px; top: 12px; font-size: 11px; z-index: 50000"></div> | |
28 | + <table id='mst' summary="" style='display: none;' width=100% cellspacing='0'> | |
29 | + <tr> | |
30 | + <td id="contemMenu"> | |
31 | + <!--menu suspenso--> | |
32 | + <div id="menus"></div> | |
33 | + </td> | |
34 | + </tr> | |
35 | + <tr> | |
36 | + <td style="vertical-align: top; border-width: 0px;"> | |
37 | + <table width="100%" style="vertical-align: top; border-width: 0px"> | |
38 | + <tr> | |
39 | + <td class=verdeclaro id=contemImg> | |
40 | + <div id=corpoMapa style="position: relative; background-image: url('../imagens/i3geo1bw.jpg');"></div> | |
41 | + </td> | |
42 | + </tr> | |
43 | + </table> | |
44 | + </td> | |
45 | + </tr> | |
46 | + <tr> | |
47 | + <td> | |
48 | + <table style="width: 100%; height: 28px"> | |
49 | + <tr> | |
50 | + <td class=fundoRodape style="width: 25%"> | |
51 | + <!-- aqui será incluída a escala numérica --> | |
52 | + <div id=escala style="margin: auto; text-align: right; left: 15px;"></div> | |
53 | + </td> | |
54 | + <td class=fundoRodape style="width: 5%"></td> | |
55 | + <td class=fundoRodape style="width: 40%"> | |
56 | + <!-- aqui será incluído o gadget que mostra a coordenada geográfica da posição do mouse --> | |
57 | + <div id=localizarxy style="margin: auto; text-align: left; font-size: 10px; display: inline-table"></div> | |
58 | + </td> | |
59 | + <td class=fundoRodape style="width: 20%"> | |
60 | + <!-- botão de compartilhamento em redes sociais--> | |
61 | + <!--<div id=i3GEOcompartilhar style="width: 170px; margin: auto; text-align: left; padding-top: 1px"></div> --> | |
62 | + <!-- aqui será incluído o contador de tempo quando o temporizador de redesenho do mapa estiver ativo --> | |
63 | + <div id=tempoRedesenho style="z-index: 100; position: absolute; top: 0px; color: green; background-color: black; width: 50px; display: none"></div> | |
64 | + </td> | |
65 | + <!-- aqui serão incluídas as bandeiras que permitem a troca de idioma --> | |
66 | + <td class=fundoRodape style="width: 10%;"> | |
67 | + <div id=seletorIdiomas style="right: 15px;"></div> | |
68 | + </td> | |
69 | + </tr> | |
70 | + </table> | |
71 | + </td> | |
72 | + </tr> | |
73 | + </table> | |
74 | + <div id="i3GEOlogoMarca"> | |
75 | + <table> | |
76 | + <tr> | |
77 | + <td> | |
78 | + <div id=versaoi3geo></div> | |
79 | + <h1 class="i3GEOlogoMarca">i3Geo | |
80 | + - Software livre para criação de mapas interativos e geoprocessamento</h1> | |
81 | + <h1 class="i3GEOlogoMarca">Baseado | |
82 | + no Mapserver, é licenciado sob GPL e integra o Portal do Software Público | |
83 | + Brasileiro</h1> | |
84 | + </td> | |
85 | + </tr> | |
86 | + </table> | |
87 | + <img src='../imagens/logo_inicio.png'> | |
88 | + </div> | |
89 | + | |
90 | + <div id="i3GEOguiaMovel" style="visibility: hidden; position: absolute; display: block; border: 0px solid white; text-align: left; z-index: 2000; background-color: none"> | |
91 | + <div style="cursor: pointer; position: absolute; top: 10px; width: 30px; z-index: 5000; left: 18px;"> | |
92 | + <div id="iconeGuia_temas"></div> | |
93 | + <div id="iconeGuia_adiciona" style="margin-top: 3px;"></div> | |
94 | + <div id="iconeGuia_legenda" style="margin-top: 3px;"></div> | |
95 | + <div id="iconeGuia_dobraPagina" style="margin-top: 3px;"></div> | |
96 | + <div id="iconeGuia_identificaBalao" style="margin-top: 3px;"></div> | |
97 | + <div id="iconeGuia_identifica" style="margin-top: 3px;"></div> | |
98 | + </div> | |
99 | + <div id="i3GEOguiaMovelMolde" style="top: 0px; box-shadow: 0 2px 10px 0 #888888; position: absolute; display: none; border: 0px solid white; text-align: left; z-index: 1000; background-color: gray"> | |
100 | + <div id="i3GEOguiaMovelConteudo" style='top: 10px; overflow: auto; display: none; position: absolute; border-color: gray; border-width: 0px 0 0px 0px; left: 0px; height: 0px; background-color: white'> | |
101 | + <div id='guia1obj' style='display: none;'> | |
102 | + <div onclick="i3GEO.guias.guiaMovel.abreFecha('fecha');" style='cursor:pointer; left: 0px; top: 0px; width: 95%; text-align: right; font-size: 14pt;'>X</div> | |
103 | + <!-- Esta div acrescenta a opção de busca rápida, caso vc queira colocá-la em um lugar específico --> | |
104 | + <div style='left: 5px; top: 10px; width: 150px;' id=buscaRapida></div> | |
105 | + <!-- Esta div acrescenta a lista de propriedades do mapa --> | |
106 | + <!--<div id=listaPropriedades style='top:15px;' ></div>--> | |
107 | + <!-- Esta div acrescenta a lista de de camadas do tipo 'baselayers' específicas da interface Openlayers. Veja também a opção i3GEO.Interface.openlayers.GADGETS.LayerSwitcher --> | |
108 | + <div id=listaLayersBase style='top: 15px;'></div> | |
109 | + <!-- Esta div acrescenta a lista de de camadas disponíveis no mapa atual --> | |
110 | + <div id=listaTemas style='top: 15px;'></div> | |
111 | + </div> | |
112 | + <div id='guia2obj' style='display: none;'> | |
113 | + <div onclick="i3GEO.guias.guiaMovel.abreFecha('fecha');" style='cursor:pointer; left: 0px; top: 0px; width: 95%; text-align: right; font-size: 14pt;'>X</div> | |
114 | + <div id="arvoreAdicionaTema" >Aguarde...</div> | |
115 | + </div> | |
116 | + <div id='guia4obj' style='display: none; text-align: left'> | |
117 | + <div onclick="i3GEO.guias.guiaMovel.abreFecha('fecha');" style='cursor:pointer; left: 0px; top: 0px; width: 95%; text-align: right; font-size: 14pt;'>X</div> | |
118 | + <div id="arvoreLegenda" style='display: block; text-align: left' >Aguarde...</div><br><br> | |
119 | + </div> | |
120 | + </div> | |
121 | + </div> | |
122 | + </div> | |
123 | + <script> | |
124 | + i3GEO.configura.locaplic = i3GEO.util.protocolo() + "://" | |
125 | + + window.location.host + "/i3geo"; | |
126 | + i3GEO.configura.autotamanho = false; | |
127 | + i3GEO.Interface.ATUAL = "openlayers"; | |
128 | + i3GEO.Interface.IDCORPO = "contemImg"; | |
129 | + i3GEO.Interface.openlayers.TILES = true; | |
130 | + | |
131 | + i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso.finaliza = 'if($i("omenudataInterface1")){i3GEOoMenuBar.getMenuItem("omenudataInterface1").cfg.setProperty("text", " ");}'; | |
132 | + i3GEO.cria(); | |
133 | + | |
134 | + i3GEO.guias.guiaMovel.ABERTA=true; | |
135 | + i3GEO.guias.ATUAL = "temas"; | |
136 | + | |
137 | + i3GEO.configura.mapaRefDisplay = "none"; | |
138 | + i3GEO.barraDeBotoes.TIPO = "olhodepeixe"; | |
139 | + //ajusta o deslocamento da barra de botoes | |
140 | + i3GEO.barraDeBotoes.OFFSET = 11; | |
141 | + //ajusta a posicao da barra de botoes no IE | |
142 | + if(navm){ | |
143 | + i3GEO.barraDeBotoes.OFFSET = 5; | |
144 | + } | |
145 | + if(chro){ | |
146 | + i3GEO.barraDeBotoes.OFFSET = 15; | |
147 | + } | |
148 | + | |
149 | + i3GEO.configura.oMenuData["submenus"]["janelas"] = []; | |
150 | + i3GEO.ajuda.ATIVAJANELA = false; | |
151 | + i3GEO.idioma.IDSELETOR = "seletorIdiomas"; | |
152 | + | |
153 | + //i3GEO.arvoreDeTemas.TIPOBOTAO = "radio"; | |
154 | + i3GEO.arvoreDeTemas.OPCOESADICIONAIS.comentarios = true; | |
155 | + i3GEO.arvoreDeCamadas.VERIFICAABRANGENCIATEMAS = true; | |
156 | + i3GEO.arvoreDeCamadas.MOSTRALISTAKML = false; | |
157 | + i3GEO.mapa.AUTORESIZE = true; | |
158 | + i3GEO.guias.TIPO = "movel"; | |
159 | + i3GEO.guias.guiaMovel.config.topGuiaMovel = 36; | |
160 | + i3GEO.janela.ativaAlerta(); | |
161 | + i3GEO.finaliza = function() { | |
162 | + if ($i("i3GEOlogoMarca")) { | |
163 | + $i("i3GEOlogoMarca").style.display = "none"; | |
164 | + } | |
165 | + | |
166 | + //i3GEO.mapa.insereDobraPagina("googlemaps", | |
167 | + // "../imagens/dobragooglemaps.png" | |
168 | + //); | |
169 | + }; | |
170 | + //indica se a opcao de navegacao nas pastas do servidor sera ativada | |
171 | + i3GEO.arvoreDeTemas.OPCOESADICIONAIS.navegacaoDir = true; | |
172 | + i3GEO.janela.TRANSICAOSUAVE = true; | |
173 | + | |
174 | + OpenLayers.ImgPath = "../pacotes/openlayers/img/"; | |
175 | + //desliga a camada com o mapa mundi | |
176 | + i3GEO.configura.mashuppar = "&desligar=mundo"; | |
177 | + //se vc nao quer o fundo, mude visibility true para false | |
178 | + (function() { | |
179 | + var eng = new OpenLayers.Layer.ArcGIS93Rest( | |
180 | + "ESRI National Geographic", | |
181 | + "http://server.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer/export", | |
182 | + { | |
183 | + format : "jpeg" | |
184 | + }, { | |
185 | + resolutions : [0.703125,0.3515625,0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.001373291015625,0.0006866455078125,0.00034332275390625], | |
186 | + isBaseLayer : true, | |
187 | + visibility : true, | |
188 | + attribution: 'Tiles © <a href="http://server.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer">ArcGIS</a>' | |
189 | + }); | |
190 | + var oce = new OpenLayers.Layer.ArcGIS93Rest( | |
191 | + "ESRI Ocean Basemap", | |
192 | + "http://server.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer/export", | |
193 | + { | |
194 | + format : "jpeg" | |
195 | + }, { | |
196 | + resolutions : [0.703125,0.3515625,0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.001373291015625], | |
197 | + isBaseLayer : true, | |
198 | + visibility : false, | |
199 | + attribution: 'Tiles © <a href="http://server.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer">ArcGIS</a>' | |
200 | + }); | |
201 | + var ims = new OpenLayers.Layer.ArcGIS93Rest( | |
202 | + "ESRI Imagery World 2D", | |
203 | + "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer/export", | |
204 | + { | |
205 | + format : "jpeg" | |
206 | + }, { | |
207 | + resolutions : [0.703125,0.3515625,0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.001373291015625,0.0006866455078125,0.00034332275390625,0.000171661376953125], | |
208 | + isBaseLayer : true, | |
209 | + visibility : false, | |
210 | + attribution : 'Tiles © <a href="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer">ArcGIS</a>' | |
211 | + }); | |
212 | + var wsm = new OpenLayers.Layer.ArcGIS93Rest( | |
213 | + "ESRI World Street Map", | |
214 | + "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer/export", | |
215 | + { | |
216 | + format : "jpeg" | |
217 | + }, { | |
218 | + isBaseLayer : true, | |
219 | + visibility : false, | |
220 | + attribution : 'Tiles © <a href="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer">ArcGIS</a>' | |
221 | + }); | |
222 | + var bra = new OpenLayers.Layer.WMS( | |
223 | + "Base carto MMA", | |
224 | + "http://mapas.mma.gov.br/cgi-bin/mapserv?map=/opt/www/html/webservices/baseraster.map", | |
225 | + { | |
226 | + layers : "baseraster", | |
227 | + srs : "EPSG:4618", | |
228 | + format : "image/png", | |
229 | + isBaseLayer : false | |
230 | + }, { | |
231 | + isBaseLayer : true, | |
232 | + visibility : false | |
233 | + }); | |
234 | + | |
235 | + var tms = new OpenLayers.Layer.TMS("OSGEO", | |
236 | + "http://tilecache.osgeo.org/wms-c/Basic.py/", { | |
237 | + layername : "basic", | |
238 | + type : "png", | |
239 | + // set if different than the bottom left of map.maxExtent | |
240 | + tileOrigin : new OpenLayers.LonLat(-180, -90), | |
241 | + isBaseLayer : true, | |
242 | + visibility : false, | |
243 | + attribution : '© <a href="http://www.tilecache.org/">2006-2010, TileCache Contributors</a>' | |
244 | + }); | |
245 | + | |
246 | + i3GEO.Interface.openlayers.LAYERSADICIONAIS = [ eng, oce, ims, wsm, tms, | |
247 | + bra ]; | |
248 | + })(); | |
249 | + //i3GEO.Interface.TABLET = true; | |
250 | + i3GEO.inicia(); | |
251 | + </script> | |
252 | +</body> | |
253 | +</html> | ... | ... |
temas/_lbiomashp.map
1 | -MAP | |
2 | - FONTSET "../symbols/fontes.txt" | |
3 | - SYMBOLSET "../symbols/simbolosv6.sym" | |
4 | - LAYER | |
5 | - CONNECTION "" | |
6 | - DATA "/var/www/i3geo/aplicmap/dados/biomas.shp" | |
7 | - METADATA | |
8 | - "TIP" "CD_LEGENDA" | |
9 | - #"cache" "sim" | |
10 | - "transitioneffect" "SIM" | |
11 | - "CLASSE" "SIM" | |
12 | - "permitekmz" "nao" | |
13 | - "ITENSDESC" "Teste de acentuação" | |
14 | - "permitedownload" "sim" | |
15 | - "download" "SIM" | |
16 | - "itembuscarapida" "CD_LEGENDA" | |
17 | - "ITENS" "CD_LEGENDA" | |
18 | - "permiteogc" "sim" | |
19 | - "permitekml" "sim" | |
20 | - "TEMA" "Biomas shapefile (acentuação)" | |
21 | - "ESCALA" "1000000" | |
22 | - "TILES" "SIM" | |
23 | - END # METADATA | |
24 | - NAME "_lbiomashp" | |
25 | - PROCESSING "ITEMS=CD_LEGENDA" | |
26 | - PROCESSING "LABEL_NO_CLIP=True" | |
27 | - PROCESSING "POLYLINE_NO_CLIP=True" | |
28 | - STATUS DEFAULT | |
29 | - TEMPLATE "none.htm" | |
30 | - TILEITEM "location" | |
31 | - OPACITY 90 | |
32 | - TYPE POLYGON | |
33 | - UNITS METERS | |
34 | - CLASS | |
35 | - NAME "CAATINGA" | |
36 | - EXPRESSION ('[CD_LEGENDA]'eq'CAATINGA') | |
37 | - STYLE | |
38 | - COLOR 183 247 169 | |
39 | - OUTLINECOLOR 255 255 255 | |
40 | - END # STYLE | |
41 | - TITLE "" | |
42 | - END # CLASS | |
43 | - CLASS | |
44 | - NAME "PAMPA area > 5" | |
45 | - EXPRESSION ('[CD_LEGENDA]'eq'PAMPA area > 5') | |
46 | - STYLE | |
47 | - COLOR 239 22 152 | |
48 | - OUTLINECOLOR 255 255 255 | |
49 | - END # STYLE | |
50 | - TITLE "" | |
51 | - END # CLASS | |
52 | - CLASS | |
53 | - NAME "CERRADO" | |
54 | - EXPRESSION ('[CD_LEGENDA]'eq'CERRADO') | |
55 | - STYLE | |
56 | - COLOR 57 32 234 | |
57 | - OUTLINECOLOR 255 255 255 | |
58 | - END # STYLE | |
59 | - TITLE "" | |
60 | - END # CLASS | |
61 | - CLASS | |
62 | - NAME "PANTANAL" | |
63 | - EXPRESSION ('[CD_LEGENDA]'eq'PANTANAL') | |
64 | - STYLE | |
65 | - COLOR 214 107 232 | |
66 | - OUTLINECOLOR 255 255 255 | |
67 | - END # STYLE | |
68 | - TITLE "" | |
69 | - END # CLASS | |
70 | - CLASS | |
71 | - NAME "AMAZÔNIA" | |
72 | - EXPRESSION ('[CD_LEGENDA]'eq'AMAZÔNIA') | |
73 | - STYLE | |
74 | - COLOR 0 177 0 | |
75 | - OUTLINECOLOR 255 255 255 | |
76 | - END # STYLE | |
77 | - TITLE "" | |
78 | - END # CLASS | |
79 | - CLASS | |
80 | - NAME "MATA ATLÂNTICA" | |
81 | - EXPRESSION ('[CD_LEGENDA]'eq'MATA ATLÂNTICA') | |
82 | - STYLE | |
83 | - COLOR 44 215 49 | |
84 | - OUTLINECOLOR 255 255 255 | |
85 | - END # STYLE | |
86 | - TITLE "" | |
87 | - END # CLASS | |
88 | - END # LAYER | |
89 | -END # MAP | |
90 | 1 | \ No newline at end of file |
2 | +MAP | |
3 | + FONTSET "../symbols/fontes.txt" | |
4 | + SYMBOLSET "../symbols/simbolosv6.sym" | |
5 | + LAYER | |
6 | + CONNECTION "" | |
7 | + DATA "/var/www/i3geo/aplicmap/dados/biomas.shp" | |
8 | + METADATA | |
9 | + "TIP" "CD_LEGENDA" | |
10 | + "CLASSE" "SIM" | |
11 | + "permitekmz" "SIM" | |
12 | + "ITENSDESC" "Teste de acentuação" | |
13 | + "TILES" "SIM" | |
14 | + "ESCALA" "1000000" | |
15 | + "permitedownload" "SIM" | |
16 | + "download" "SIM" | |
17 | + "itembuscarapida" "CD_LEGENDA" | |
18 | + "arquivokmz" "" | |
19 | + "arquivodownload" "" | |
20 | + "ITENS" "CD_LEGENDA" | |
21 | + "permitekml" "SIM" | |
22 | + "permiteogc" "SIM" | |
23 | + "transitioneffect" "SIM" | |
24 | + "TEMA" "Biomas shapefile (acentuação)" | |
25 | + END # METADATA | |
26 | + NAME "_lbiomashp" | |
27 | + PROCESSING "ITEMS=CD_LEGENDA" | |
28 | + PROCESSING "LABEL_NO_CLIP=True" | |
29 | + PROCESSING "POLYLINE_NO_CLIP=True" | |
30 | + STATUS DEFAULT | |
31 | + TEMPLATE "none.htm" | |
32 | + TILEITEM "location" | |
33 | + OPACITY 90 | |
34 | + TYPE POLYGON | |
35 | + UNITS METERS | |
36 | + CLASS | |
37 | + NAME "CAATINGA" | |
38 | + EXPRESSION ('[CD_LEGENDA]'eq'CAATINGA') | |
39 | + STYLE | |
40 | + COLOR 183 247 169 | |
41 | + OUTLINECOLOR 255 255 255 | |
42 | + END # STYLE | |
43 | + TITLE "" | |
44 | + END # CLASS | |
45 | + CLASS | |
46 | + NAME "PAMPA area > 5" | |
47 | + EXPRESSION ('[CD_LEGENDA]'eq'PAMPA area > 5') | |
48 | + STYLE | |
49 | + COLOR 239 22 152 | |
50 | + OUTLINECOLOR 255 255 255 | |
51 | + END # STYLE | |
52 | + TITLE "" | |
53 | + END # CLASS | |
54 | + CLASS | |
55 | + NAME "CERRADO" | |
56 | + EXPRESSION ('[CD_LEGENDA]'eq'CERRADO') | |
57 | + STYLE | |
58 | + COLOR 57 32 234 | |
59 | + OUTLINECOLOR 255 255 255 | |
60 | + END # STYLE | |
61 | + TITLE "" | |
62 | + END # CLASS | |
63 | + CLASS | |
64 | + NAME "PANTANAL" | |
65 | + EXPRESSION ('[CD_LEGENDA]'eq'PANTANAL') | |
66 | + STYLE | |
67 | + COLOR 214 107 232 | |
68 | + OUTLINECOLOR 255 255 255 | |
69 | + END # STYLE | |
70 | + TITLE "" | |
71 | + END # CLASS | |
72 | + CLASS | |
73 | + NAME "AMAZÔNIA" | |
74 | + EXPRESSION ('[CD_LEGENDA]'eq'AMAZÔNIA') | |
75 | + STYLE | |
76 | + COLOR 0 177 0 | |
77 | + OUTLINECOLOR 255 255 255 | |
78 | + END # STYLE | |
79 | + TITLE "" | |
80 | + END # CLASS | |
81 | + CLASS | |
82 | + NAME "MATA ATLÂNTICA" | |
83 | + EXPRESSION ('[CD_LEGENDA]'eq'MATA ATLÂNTICA') | |
84 | + STYLE | |
85 | + COLOR 44 215 49 | |
86 | + OUTLINECOLOR 255 255 255 | |
87 | + END # STYLE | |
88 | + TITLE "" | |
89 | + END # CLASS | |
90 | + END # LAYER | |
91 | + | |
92 | +END # MAP | |
93 | + | ... | ... |