Commit 4a3c82c33ddbed22a8acb6cfbd80fd7218eec29a
1 parent
68debf12
Exists in
master
and in
7 other branches
reformulação da janela de opçoes do editor de mapfiles via i3Geo
Showing
4 changed files
with
344 additions
and
473 deletions
Show diff stats
ferramentas/atalhoscamada/template_mst.html
... | ... | @@ -4,27 +4,27 @@ |
4 | 4 | <label class='paragrafo'>{{{opacidade}}} |
5 | 5 | <a class=ajuda_usuario target=_blank href='{{{locaplic}}}/ajuda_usuario.php?idcategoria=5&idajuda=42' ><b> </b></a> |
6 | 6 | </label> |
7 | - <div class='i3geoForm i3geoFormIconeEdita' > | |
7 | + <div class="form-group condensed" > | |
8 | 8 | <form onsubmit='i3GEOF.atalhoscamada.mudaOpacidade(this,{{{idjanelaA}}});return false;'> |
9 | - <input type='text' value='' /> | |
9 | + <input class="form-control" type='text' value='' /> | |
10 | 10 | </form> |
11 | 11 | </div> |
12 | 12 | <br> |
13 | 13 | <label class='paragrafo'>{{{temporizador}}} |
14 | 14 | <a class=ajuda_usuario target=_blank href='{{{locaplic}}}/ajuda_usuario.php?idcategoria=5&idajuda=101' ><b> </b></a> |
15 | 15 | </label> |
16 | - <div class='i3geoForm i3geoFormIconeEdita' > | |
16 | + <div class="form-group condensed" > | |
17 | 17 | <form onsubmit='i3GEOF.atalhoscamada.temporizador(this,{{{idjanelaA}}});return false;'> |
18 | - <input type='text' value='' /> | |
18 | + <input class="form-control" type='text' value='' /> | |
19 | 19 | </form> |
20 | 20 | </div> |
21 | 21 | <br> |
22 | 22 | <label class='paragrafo'>{{{mudanome}}} |
23 | 23 | <a class=ajuda_usuario target=_blank href='{{{locaplic}}}/ajuda_usuario.php?idcategoria=5&idajuda=43' ><b> </b></a> |
24 | 24 | </label> |
25 | - <div class='i3geoForm i3geoFormIconeEdita' > | |
25 | + <div class="form-group condensed" > | |
26 | 26 | <form onsubmit='i3GEOF.atalhoscamada.mudaNome(this,{{{idjanelaA}}});return false;'> |
27 | - <input type='text' value='' /> | |
27 | + <input class="form-control" type='text' value='' /> | |
28 | 28 | </form> |
29 | 29 | </div> |
30 | 30 | <br> | ... | ... |
ferramentas/atalhosedicao/dicionario.js
... | ... | @@ -26,9 +26,9 @@ i3GEOF.atalhosedicao.dicionario = { |
26 | 26 | es : "Textos (toponimia)" |
27 | 27 | } ], |
28 | 28 | 'etiqueta' : [ { |
29 | - pt : "Etiquetas, busca rapida, alias", | |
29 | + pt : "Etiquetas, busca...", | |
30 | 30 | en : "", |
31 | - es : "Etiqueta, busqueda rápida, alias" | |
31 | + es : "Etiqueta, busqueda..." | |
32 | 32 | } ], |
33 | 33 | 'filtro' : [ { |
34 | 34 | pt : "Filtro de atributos", |
... | ... | @@ -56,9 +56,9 @@ i3GEOF.atalhosedicao.dicionario = { |
56 | 56 | es : "Herramientas con parámetros que pueden ser almazenados en el mapfile del tema" |
57 | 57 | } ], |
58 | 58 | "temacomgrafico" : [{ |
59 | - pt : "Feições com Gráficos", | |
59 | + pt : "Gráficos", | |
60 | 60 | en : "", |
61 | - es : "Feiciones con Gráficos" | |
61 | + es : "Gráficos" | |
62 | 62 | }], |
63 | 63 | "mostraClasses" : [{ |
64 | 64 | pt : "Mostra as classes na legenda", | ... | ... |
ferramentas/atalhosedicao/index.js
... | ... | @@ -11,430 +11,296 @@ if (typeof (i3GEOF) === 'undefined') { |
11 | 11 | //TODO criar nova opcao que permita editar um texto livre para a fonte e guarda-la no proprio mapfile |
12 | 12 | i3GEOF.atalhosedicao = |
13 | 13 | { |
14 | - tema: "", | |
15 | - /** | |
16 | - * Template no formato mustache. E preenchido na carga do javascript com o programa dependencias.php | |
17 | - */ | |
18 | - MUSTACHE : "", | |
19 | - /** | |
20 | - * Susbtitutos para o template | |
21 | - */ | |
22 | - mustacheHash : function() { | |
23 | - var dicionario = i3GEO.idioma.objetoIdioma(i3GEOF.atalhosedicao.dicionario); | |
24 | - dicionario["locaplic"] = i3GEO.configura.locaplic; | |
25 | - return dicionario; | |
26 | - }, | |
27 | - /* | |
28 | - * Function: iniciaDicionario (Depreciado na versao 6.0) | |
29 | - * | |
30 | - */ | |
31 | - iniciaDicionario : function() { | |
32 | - i3GEOF.atalhosedicao.iniciaJanelaFlutuante(); | |
33 | - }, | |
34 | - /* | |
35 | - * Function: inicia | |
36 | - * | |
37 | - * Inicia a ferramenta. É chamado por criaJanelaFlutuante | |
38 | - * | |
39 | - * Parametro: | |
40 | - * | |
41 | - * iddiv {String} - id do div que receberá o conteudo HTML da ferramenta | |
42 | - */ | |
43 | - inicia : function(iddiv, idjanela) { | |
44 | - var tema; | |
45 | - i3GEO.janela.comboCabecalhoTemas( | |
46 | - "i3GEOFatalhosedicaoComboCabeca", | |
47 | - "i3GEOFatalhosedicaoComboCabecaSel", | |
48 | - "atalhosedicao", | |
49 | - "ligadosComTabela"); | |
50 | - if(i3GEOF.atalhosedicao.tema === ""){ | |
51 | - i3GEOF.atalhosedicao.tema = i3GEO.temaAtivo; | |
52 | - } | |
53 | - $i(iddiv).innerHTML = i3GEOF.atalhosedicao.html(idjanela); | |
14 | + tema: "", | |
15 | + /** | |
16 | + * Template no formato mustache. E preenchido na carga do javascript com o programa dependencias.php | |
17 | + */ | |
18 | + MUSTACHE : "", | |
19 | + /** | |
20 | + * Susbtitutos para o template | |
21 | + */ | |
22 | + mustacheHash : function() { | |
23 | + var dicionario = i3GEO.idioma.objetoIdioma(i3GEOF.atalhosedicao.dicionario); | |
24 | + dicionario["locaplic"] = i3GEO.configura.locaplic; | |
25 | + return dicionario; | |
26 | + }, | |
27 | + /* | |
28 | + * Function: iniciaDicionario (Depreciado na versao 6.0) | |
29 | + * | |
30 | + */ | |
31 | + iniciaDicionario : function() { | |
32 | + i3GEOF.atalhosedicao.iniciaJanelaFlutuante(); | |
33 | + }, | |
34 | + salva: function(){ | |
35 | + i3GEOF.atalhosedicao.metadata($i("i3GEOFatalhosedicaoCache"),true); | |
36 | + i3GEO.tema.dialogo.salvaMapfile(i3GEOF.atalhosedicao.tema); | |
37 | + }, | |
38 | + temaComGrafico: function(){ | |
39 | + i3GEO.temaAtivo = i3GEOF.atalhosedicao.tema; | |
40 | + i3GEO.tema.dialogo.graficotema(i3GEO.temaAtivo,{ | |
41 | + mesmoTema : true | |
42 | + }); | |
43 | + }, | |
44 | + parametrosSql: function() { | |
45 | + i3GEO.temaAtivo = i3GEOF.atalhosedicao.tema; | |
46 | + //i3GEO.pluginI3geo.parametrossql.buscaParForm(i3GEOF.atalhosedicao.tema); | |
47 | + YAHOO.namespace("admin"); | |
48 | + YAHOO.namespace("admin.container"); | |
49 | + core_montaEditor("","450px","500px","","Plugin",true,false,false); | |
50 | + var sUrl = i3GEO.configura.locaplic + "/admin1/catalogo/mapfile/exec.php?funcao=pegaPlugin&codigoMap="+i3GEO.temaAtivo+"&codigoLayer="+i3GEO.temaAtivo+"&g_sid="+i3GEO.configura.sid; | |
51 | + var montaEditorPlugin = function(retorno){ | |
52 | + var plugin = "parametrossql"; | |
53 | + var ins = "<input type=button title='"+ $trad("salva",i3GEOadmin.core.dicionario) +"' value='"+ $trad("salva",i3GEOadmin.core.dicionario) +"' id=salvarPlugin />" | |
54 | + + "<input type=button title='"+ $trad("removePlugin",i3GEOF.atalhosedicao.dicionario) +"' value='"+ $trad("removePlugin",i3GEOF.atalhosedicao.dicionario) +"' id=removerPlugin />"; | |
55 | + //pega os campos do formulario | |
56 | + ins += i3GEO.pluginI3geo.formAdmin(plugin,retorno); | |
57 | + var ajuda = "<p class='paragrafo'>Mais informações:<br><a href='"+i3GEO.pluginI3geo.linkAjuda(plugin)+"' target=_blank >" + i3GEO.pluginI3geo.linkAjuda(plugin) + "</a></p>"; | |
58 | + $i("editor_bd").innerHTML = ins + ajuda; | |
54 | 59 | |
55 | - new YAHOO.widget.Button("i3GEOFatalhosedicaoLegenda", { | |
56 | - onclick : { | |
57 | - fn : function() { | |
58 | - i3GEO.temaAtivo = i3GEOF.atalhosedicao.tema; | |
59 | - i3GEO.tema.dialogo.editaLegenda(); | |
60 | - } | |
61 | - } | |
62 | - }); | |
63 | - $i("i3GEOFatalhosedicaoLegenda-button").style.width = "200px"; | |
60 | + new YAHOO.widget.Button("salvarPlugin",{ onclick: { fn: function(){ | |
61 | + i3GEOF.atalhosedicao.salvarDadosEditorPlugin($i("editor_bd"),plugin,i3GEOF.atalhosedicao.tema,i3GEOF.atalhosedicao.tema); | |
62 | + } }}); | |
64 | 63 | |
65 | - new YAHOO.widget.Button("i3GEOFatalhosedicaoSalva", { | |
66 | - onclick : { | |
67 | - fn : function() { | |
68 | - //obtem os parametros que devem ficar no objeto camada | |
69 | - i3GEOF.atalhosedicao.metadata($i("i3GEOFatalhosedicaoCache"),true); | |
70 | - i3GEO.tema.dialogo.salvaMapfile(i3GEOF.atalhosedicao.tema); | |
71 | - } | |
72 | - } | |
73 | - }); | |
74 | - $i("i3GEOFatalhosedicaoSalva-button").style.width = "200px"; | |
64 | + new YAHOO.widget.Button("removerPlugin",{ onclick: { fn: function(){ | |
65 | + i3GEOF.atalhosedicao.salvarDadosEditorPlugin($i("editor_bd"),"",i3GEOF.atalhosedicao.tema,i3GEOF.atalhosedicao.tema); | |
66 | + } }}); | |
67 | + }; | |
68 | + core_pegaDados("",sUrl,montaEditorPlugin); | |
69 | + }, | |
70 | + layerKml: function() { | |
71 | + i3GEO.temaAtivo = i3GEOF.atalhosedicao.tema; | |
72 | + YAHOO.namespace("admin"); | |
73 | + YAHOO.namespace("admin.container"); | |
74 | + core_montaEditor("","450px","500px","","Plugin",true,false,false); | |
75 | + var sUrl = i3GEO.configura.locaplic + "/admin1/catalogo/mapfile/exec.php?funcao=pegaPlugin&codigoMap="+i3GEO.temaAtivo+"&codigoLayer="+i3GEO.temaAtivo+"&g_sid="+i3GEO.configura.sid; | |
76 | + var montaEditorPlugin = function(retorno){ | |
77 | + var plugin = "layerkml"; | |
78 | + var ins = "<input type=button title='"+ $trad("salva",i3GEOadmin.core.dicionario) +"' value='"+ $trad("salva",i3GEOadmin.core.dicionario) +"' id=salvarPlugin />" | |
79 | + + "<input type=button title='"+ $trad("removePlugin",i3GEOF.atalhosedicao.dicionario) +"' value='"+ $trad("removePlugin",i3GEOF.atalhosedicao.dicionario) +"' id=removerPlugin />"; | |
80 | + //pega os campos do formulario | |
81 | + ins += i3GEO.pluginI3geo.formAdmin(plugin,retorno); | |
82 | + var ajuda = "<p class='paragrafo'>Mais informações:<br><a href='"+i3GEO.pluginI3geo.linkAjuda(plugin)+"' target=_blank >" + i3GEO.pluginI3geo.linkAjuda(plugin) + "</a></p>"; | |
83 | + $i("editor_bd").innerHTML = ins + ajuda; | |
75 | 84 | |
76 | - new YAHOO.widget.Button("i3GEOFatalhosedicaoTabela", { | |
77 | - onclick : { | |
78 | - fn : function() { | |
79 | - i3GEO.temaAtivo = i3GEOF.atalhosedicao.tema; | |
80 | - i3GEO.tema.dialogo.tabela(); | |
81 | - } | |
82 | - } | |
83 | - }); | |
84 | - $i("i3GEOFatalhosedicaoTabela-button").style.width = "200px"; | |
85 | + new YAHOO.widget.Button("salvarPlugin",{ onclick: { fn: function(){ | |
86 | + i3GEOF.atalhosedicao.salvarDadosEditorPlugin($i("editor_bd"),plugin,i3GEOF.atalhosedicao.tema,i3GEOF.atalhosedicao.tema); | |
87 | + } }}); | |
85 | 88 | |
86 | - new YAHOO.widget.Button("i3GEOFatalhosedicaoTexto", { | |
87 | - onclick : { | |
88 | - fn : function() { | |
89 | - i3GEO.temaAtivo = i3GEOF.atalhosedicao.tema; | |
90 | - i3GEO.tema.dialogo.toponimia(); | |
91 | - } | |
92 | - } | |
93 | - }); | |
94 | - $i("i3GEOFatalhosedicaoTexto-button").style.width = "200px"; | |
89 | + new YAHOO.widget.Button("removerPlugin",{ onclick: { fn: function(){ | |
90 | + i3GEOF.atalhosedicao.salvarDadosEditorPlugin($i("editor_bd"),"",i3GEOF.atalhosedicao.tema,i3GEOF.atalhosedicao.tema); | |
91 | + } }}); | |
92 | + }; | |
93 | + core_pegaDados("",sUrl,montaEditorPlugin); | |
94 | + }, | |
95 | + markercluster: function() { | |
96 | + i3GEO.temaAtivo = i3GEOF.atalhosedicao.tema; | |
97 | + YAHOO.namespace("admin"); | |
98 | + YAHOO.namespace("admin.container"); | |
99 | + core_montaEditor("","450px","500px","","Plugin",false,false,false); | |
100 | + var sUrl = i3GEO.configura.locaplic + "/admin1/catalogo/mapfile/exec.php?funcao=pegaPlugin&codigoMap="+i3GEO.temaAtivo+"&codigoLayer="+i3GEO.temaAtivo+"&g_sid="+i3GEO.configura.sid; | |
101 | + var montaEditorPlugin = function(retorno){ | |
102 | + var plugin = "markercluster"; | |
103 | + var ins = "<input type=button title='"+ $trad("salva",i3GEOadmin.core.dicionario) +"' value='"+ $trad("salva",i3GEOadmin.core.dicionario) +"' id=salvarPlugin />" | |
104 | + + "<input type=button title='"+ $trad("removePlugin",i3GEOF.atalhosedicao.dicionario) +"' value='"+ $trad("removePlugin",i3GEOF.atalhosedicao.dicionario) +"' id=removerPlugin />"; | |
105 | + //pega os campos do formulario | |
106 | + ins += i3GEO.pluginI3geo.formAdmin(plugin,retorno); | |
107 | + var ajuda = "<p class='paragrafo'>Mais informações:<br><a href='"+i3GEO.pluginI3geo.linkAjuda(plugin)+"' target=_blank >" + i3GEO.pluginI3geo.linkAjuda(plugin) + "</a></p>"; | |
108 | + $i("editor_bd").innerHTML = ins + ajuda; | |
95 | 109 | |
96 | - new YAHOO.widget.Button("i3GEOFatalhosedicaoEtiqueta", { | |
97 | - onclick : { | |
98 | - fn : function() { | |
99 | - i3GEO.temaAtivo = i3GEOF.atalhosedicao.tema; | |
100 | - i3GEO.tema.dialogo.etiquetas(); | |
101 | - } | |
102 | - } | |
103 | - }); | |
104 | - $i("i3GEOFatalhosedicaoEtiqueta-button").style.width = "200px"; | |
110 | + new YAHOO.widget.Button("salvarPlugin",{ onclick: { fn: function(){ | |
111 | + i3GEOF.atalhosedicao.salvarDadosEditorPlugin($i("editor_bd"),plugin,i3GEOF.atalhosedicao.tema,i3GEOF.atalhosedicao.tema); | |
112 | + } }}); | |
105 | 113 | |
106 | - new YAHOO.widget.Button("i3GEOFatalhosedicaoFiltro", { | |
107 | - onclick : { | |
108 | - fn : function() { | |
109 | - i3GEO.temaAtivo = i3GEOF.atalhosedicao.tema; | |
110 | - i3GEO.tema.dialogo.filtro(); | |
111 | - } | |
112 | - } | |
113 | - }); | |
114 | - $i("i3GEOFatalhosedicaoFiltro-button").style.width = "200px"; | |
114 | + new YAHOO.widget.Button("removerPlugin",{ onclick: { fn: function(){ | |
115 | + i3GEOF.atalhosedicao.salvarDadosEditorPlugin($i("editor_bd"),"",i3GEOF.atalhosedicao.tema,i3GEOF.atalhosedicao.tema); | |
116 | + } }}); | |
117 | + i3GEO.util.aplicaAquarela("editor_bd"); | |
118 | + }; | |
119 | + core_pegaDados("",sUrl,montaEditorPlugin); | |
120 | + }, | |
121 | + heatmap: function() { | |
122 | + i3GEO.temaAtivo = i3GEOF.atalhosedicao.tema; | |
123 | + YAHOO.namespace("admin"); | |
124 | + YAHOO.namespace("admin.container"); | |
125 | + core_montaEditor("","450px","500px","","Plugin",true,false,false); | |
126 | + var sUrl = i3GEO.configura.locaplic + "/admin1/catalogo/mapfile/exec.php?funcao=pegaPlugin&codigoMap="+i3GEO.temaAtivo+"&codigoLayer="+i3GEO.temaAtivo+"&g_sid="+i3GEO.configura.sid; | |
127 | + var montaEditorPlugin = function(retorno){ | |
128 | + var plugin = "heatmap"; | |
129 | + var ins = "<input type=button title='"+ $trad("salva",i3GEOadmin.core.dicionario) +"' value='"+ $trad("salva",i3GEOadmin.core.dicionario) +"' id=salvarPlugin />" | |
130 | + + "<input type=button title='"+ $trad("removePlugin",i3GEOF.atalhosedicao.dicionario) +"' value='"+ $trad("removePlugin",i3GEOF.atalhosedicao.dicionario) +"' id=removerPlugin />"; | |
131 | + //pega os campos do formulario | |
132 | + ins += i3GEO.pluginI3geo.formAdmin(plugin,retorno); | |
133 | + var ajuda = "<p class='paragrafo'>Mais informações:<br><a href='"+i3GEO.pluginI3geo.linkAjuda(plugin)+"' target=_blank >" + i3GEO.pluginI3geo.linkAjuda(plugin) + "</a></p>"; | |
134 | + $i("editor_bd").innerHTML = ins + ajuda; | |
115 | 135 | |
116 | - new YAHOO.widget.Button("i3GEOFatalhosedicaoOpacidadeB", { | |
117 | - onclick : { | |
118 | - fn : function() { | |
119 | - var valor = $i("i3GEOFatalhosedicaoOpacidade").value; | |
120 | - i3GEO.tema.mudatransp(i3GEOF.atalhosedicao.tema,valor); | |
121 | - } | |
122 | - } | |
123 | - }); | |
124 | - $i("i3GEOFatalhosedicaoOpacidadeB-button").style.width = "50px"; | |
136 | + new YAHOO.widget.Button("salvarPlugin",{ onclick: { fn: function(){ | |
137 | + i3GEOF.atalhosedicao.salvarDadosEditorPlugin($i("editor_bd"),plugin,i3GEOF.atalhosedicao.tema,i3GEOF.atalhosedicao.tema); | |
138 | + } }}); | |
125 | 139 | |
126 | - new YAHOO.widget.Button("i3GEOFatalhosedicaoTme", { | |
127 | - onclick : { | |
128 | - fn : function() { | |
129 | - i3GEO.temaAtivo = i3GEOF.atalhosedicao.tema; | |
130 | - i3GEO.tema.dialogo.tme(i3GEOF.atalhosedicao.tema); | |
131 | - } | |
140 | + new YAHOO.widget.Button("removerPlugin",{ onclick: { fn: function(){ | |
141 | + i3GEOF.atalhosedicao.salvarDadosEditorPlugin($i("editor_bd"),"",i3GEOF.atalhosedicao.tema,i3GEOF.atalhosedicao.tema); | |
142 | + } }}); | |
143 | + }; | |
144 | + core_pegaDados("",sUrl,montaEditorPlugin); | |
145 | + }, | |
146 | + /* | |
147 | + * Function: inicia | |
148 | + * | |
149 | + * Inicia a ferramenta. É chamado por criaJanelaFlutuante | |
150 | + * | |
151 | + * Parametro: | |
152 | + * | |
153 | + * iddiv {String} - id do div que receberá o conteudo HTML da ferramenta | |
154 | + */ | |
155 | + inicia : function(iddiv, idjanela) { | |
156 | + var tema; | |
157 | + i3GEO.janela.comboCabecalhoTemas( | |
158 | + "i3GEOFatalhosedicaoComboCabeca", | |
159 | + "i3GEOFatalhosedicaoComboCabecaSel", | |
160 | + "atalhosedicao", | |
161 | + "ligadosComTabela"); | |
162 | + if(i3GEOF.atalhosedicao.tema === ""){ | |
163 | + i3GEOF.atalhosedicao.tema = i3GEO.temaAtivo; | |
132 | 164 | } |
133 | - }); | |
134 | - $i("i3GEOFatalhosedicaoTme-button").style.width = "200px"; | |
135 | - | |
136 | - new YAHOO.widget.Button("i3GEOFatalhosedicaoStorymap", { | |
137 | - onclick : { | |
138 | - fn : function() { | |
139 | - i3GEO.temaAtivo = i3GEOF.atalhosedicao.tema; | |
140 | - i3GEO.tema.dialogo.storymap(i3GEOF.atalhosedicao.tema); | |
141 | - } | |
165 | + $i(iddiv).innerHTML = i3GEOF.atalhosedicao.html(idjanela); | |
166 | + // | |
167 | + //atualiza os campos que dependem de parametros de cada camada | |
168 | + // | |
169 | + tema = i3GEO.arvoreDeCamadas.pegaTema(i3GEOF.atalhosedicao.tema); | |
170 | + if(tema.cache.toLowerCase() === "sim"){ | |
171 | + $i("i3GEOFatalhosedicaoCache").checked = true; | |
142 | 172 | } |
143 | - }); | |
144 | - $i("i3GEOFatalhosedicaoStorymap-button").style.width = "200px"; | |
145 | - | |
146 | - new YAHOO.widget.Button("i3GEOFatalhosedicaoLinhadotempo", { | |
147 | - onclick : { | |
148 | - fn : function() { | |
149 | - i3GEO.temaAtivo = i3GEOF.atalhosedicao.tema; | |
150 | - i3GEO.analise.dialogo.linhaDoTempo(); | |
151 | - } | |
173 | + if(tema.classe.toLowerCase() === "nao"){ | |
174 | + $i("i3GEOFatalhosedicaoClasse").checked = false; | |
152 | 175 | } |
153 | - }); | |
154 | - $i("i3GEOFatalhosedicaoLinhadotempo-button").style.width = "200px"; | |
155 | - | |
156 | - new YAHOO.widget.Button("i3GEOFatalhosedicaoAnimagif", { | |
157 | - onclick : { | |
158 | - fn : function() { | |
159 | - i3GEO.temaAtivo = i3GEOF.atalhosedicao.tema; | |
160 | - i3GEO.tema.dialogo.animagif(i3GEOF.atalhosedicao.tema); | |
161 | - } | |
176 | + if(tema.identifica.toLowerCase() === "nao"){ | |
177 | + $i("i3GEOFatalhosedicaoIdentifica").checked = false; | |
162 | 178 | } |
163 | - }); | |
164 | - $i("i3GEOFatalhosedicaoAnimagif-button").style.width = "200px"; | |
165 | - | |
166 | - new YAHOO.widget.Button("i3GEOFatalhosedicaoParametrossql", { | |
167 | - onclick : { | |
168 | - fn : function() { | |
169 | - i3GEO.temaAtivo = i3GEOF.atalhosedicao.tema; | |
170 | - //i3GEO.pluginI3geo.parametrossql.buscaParForm(i3GEOF.atalhosedicao.tema); | |
171 | - YAHOO.namespace("admin"); | |
172 | - YAHOO.namespace("admin.container"); | |
173 | - core_montaEditor("","450px","500px","","Plugin",true,false,false); | |
174 | - var sUrl = i3GEO.configura.locaplic + "/admin1/catalogo/mapfile/exec.php?funcao=pegaPlugin&codigoMap="+i3GEO.temaAtivo+"&codigoLayer="+i3GEO.temaAtivo+"&g_sid="+i3GEO.configura.sid; | |
175 | - var montaEditorPlugin = function(retorno){ | |
176 | - var plugin = "parametrossql"; | |
177 | - var ins = "<input type=button title='"+ $trad("salva",i3GEOadmin.core.dicionario) +"' value='"+ $trad("salva",i3GEOadmin.core.dicionario) +"' id=salvarPlugin />" | |
178 | - + "<input type=button title='"+ $trad("removePlugin",i3GEOF.atalhosedicao.dicionario) +"' value='"+ $trad("removePlugin",i3GEOF.atalhosedicao.dicionario) +"' id=removerPlugin />"; | |
179 | - //pega os campos do formulario | |
180 | - ins += i3GEO.pluginI3geo.formAdmin(plugin,retorno); | |
181 | - var ajuda = "<p class='paragrafo'>Mais informações:<br><a href='"+i3GEO.pluginI3geo.linkAjuda(plugin)+"' target=_blank >" + i3GEO.pluginI3geo.linkAjuda(plugin) + "</a></p>"; | |
182 | - $i("editor_bd").innerHTML = ins + ajuda; | |
179 | + $i("i3GEOFatalhosedicaoOpacidade").value = tema.transparency; | |
180 | + }, | |
181 | + /* | |
182 | + * Function: html | |
183 | + * | |
184 | + * Gera o código html para apresentação das opções da ferramenta | |
185 | + * | |
186 | + * Retorno: | |
187 | + * | |
188 | + * String com o código html | |
189 | + */ | |
190 | + html : function(idjanela) { | |
191 | + var ins = Mustache.render(i3GEOF.atalhosedicao.MUSTACHE, i3GEOF.atalhosedicao.mustacheHash()); | |
192 | + return ins; | |
193 | + }, | |
194 | + /* | |
195 | + * Function: criaJanelaFlutuante | |
196 | + * | |
197 | + * Cria a janela flutuante para controle da ferramenta. | |
198 | + */ | |
199 | + iniciaJanelaFlutuante : function() { | |
200 | + var minimiza, cabecalho, janela, divid, titulo; | |
183 | 201 | |
184 | - new YAHOO.widget.Button("salvarPlugin",{ onclick: { fn: function(){ | |
185 | - i3GEOF.atalhosedicao.salvarDadosEditorPlugin($i("editor_bd"),plugin,i3GEOF.atalhosedicao.tema,i3GEOF.atalhosedicao.tema); | |
186 | - } }}); | |
187 | - | |
188 | - new YAHOO.widget.Button("removerPlugin",{ onclick: { fn: function(){ | |
189 | - i3GEOF.atalhosedicao.salvarDadosEditorPlugin($i("editor_bd"),"",i3GEOF.atalhosedicao.tema,i3GEOF.atalhosedicao.tema); | |
190 | - } }}); | |
191 | - }; | |
192 | - core_pegaDados("",sUrl,montaEditorPlugin); | |
193 | - } | |
202 | + if($i("i3GEOF.atalhosedicao")){ | |
203 | + return; | |
194 | 204 | } |
195 | - }); | |
196 | - $i("i3GEOFatalhosedicaoParametrossql-button").style.width = "200px"; | |
197 | - | |
198 | - new YAHOO.widget.Button("i3GEOFatalhosedicaoLayerkml", { | |
199 | - onclick : { | |
200 | - fn : function() { | |
201 | - i3GEO.temaAtivo = i3GEOF.atalhosedicao.tema; | |
202 | - YAHOO.namespace("admin"); | |
203 | - YAHOO.namespace("admin.container"); | |
204 | - core_montaEditor("","450px","500px","","Plugin",true,false,false); | |
205 | - var sUrl = i3GEO.configura.locaplic + "/admin1/catalogo/mapfile/exec.php?funcao=pegaPlugin&codigoMap="+i3GEO.temaAtivo+"&codigoLayer="+i3GEO.temaAtivo+"&g_sid="+i3GEO.configura.sid; | |
206 | - var montaEditorPlugin = function(retorno){ | |
207 | - var plugin = "layerkml"; | |
208 | - var ins = "<input type=button title='"+ $trad("salva",i3GEOadmin.core.dicionario) +"' value='"+ $trad("salva",i3GEOadmin.core.dicionario) +"' id=salvarPlugin />" | |
209 | - + "<input type=button title='"+ $trad("removePlugin",i3GEOF.atalhosedicao.dicionario) +"' value='"+ $trad("removePlugin",i3GEOF.atalhosedicao.dicionario) +"' id=removerPlugin />"; | |
210 | - //pega os campos do formulario | |
211 | - ins += i3GEO.pluginI3geo.formAdmin(plugin,retorno); | |
212 | - var ajuda = "<p class='paragrafo'>Mais informações:<br><a href='"+i3GEO.pluginI3geo.linkAjuda(plugin)+"' target=_blank >" + i3GEO.pluginI3geo.linkAjuda(plugin) + "</a></p>"; | |
213 | - $i("editor_bd").innerHTML = ins + ajuda; | |
214 | - | |
215 | - new YAHOO.widget.Button("salvarPlugin",{ onclick: { fn: function(){ | |
216 | - i3GEOF.atalhosedicao.salvarDadosEditorPlugin($i("editor_bd"),plugin,i3GEOF.atalhosedicao.tema,i3GEOF.atalhosedicao.tema); | |
217 | - } }}); | |
218 | - | |
219 | - new YAHOO.widget.Button("removerPlugin",{ onclick: { fn: function(){ | |
220 | - i3GEOF.atalhosedicao.salvarDadosEditorPlugin($i("editor_bd"),"",i3GEOF.atalhosedicao.tema,i3GEOF.atalhosedicao.tema); | |
221 | - } }}); | |
222 | - }; | |
223 | - core_pegaDados("",sUrl,montaEditorPlugin); | |
205 | + cabecalho = function() { | |
206 | + }; | |
207 | + minimiza = function() { | |
208 | + i3GEO.janela.minimiza("i3GEOFatalhosedicao"); | |
209 | + }; | |
210 | + // cria a janela flutuante | |
211 | + titulo = "</div><div class='i3GeoTituloJanelaBs'>" + i3GEO.temaAtivo + "</div>"; | |
212 | + janela = | |
213 | + i3GEO.janela.cria( | |
214 | + "250px", | |
215 | + "300px", | |
216 | + "", | |
217 | + "", | |
218 | + "", | |
219 | + titulo, | |
220 | + "i3GEOF.atalhosedicao", | |
221 | + false, | |
222 | + "hd", | |
223 | + cabecalho, | |
224 | + minimiza, | |
225 | + "", | |
226 | + true, | |
227 | + "", | |
228 | + "", | |
229 | + "", | |
230 | + "" | |
231 | + ); | |
232 | + divid = janela[2].id; | |
233 | + janela[0].moveTo(100,60); | |
234 | + $i("i3GEOF.atalhosedicao_corpo").style.backgroundColor = "white"; | |
235 | + i3GEOF.atalhosedicao.inicia(divid, "i3GEOF.atalhosedicao"); | |
236 | + }, | |
237 | + /** | |
238 | + * Aplica ao objeto CAMADAS o parametro definido | |
239 | + * Esse parametro e usado na hora de salvar o mapa | |
240 | + * Para isso, a funcao salvarmapfile deve ser preparada para obter o parametro | |
241 | + * e enviar para a funcao php | |
242 | + * veja em i3GEOF.salvamapfile.salva | |
243 | + * | |
244 | + * conv indica se deve ser feita a conversao de checked para sim/nao | |
245 | + */ | |
246 | + metadata: function(obj,conv){ | |
247 | + var valor,tema; | |
248 | + if(conv){ | |
249 | + if(obj.checked){ | |
250 | + valor = "sim"; | |
224 | 251 | } |
225 | - } | |
226 | - }); | |
227 | - $i("i3GEOFatalhosedicaoLayerkml-button").style.width = "200px"; | |
228 | - new YAHOO.widget.Button("i3GEOFatalhosedicaoMarkercluster", { | |
229 | - onclick : { | |
230 | - fn : function() { | |
231 | - i3GEO.temaAtivo = i3GEOF.atalhosedicao.tema; | |
232 | - YAHOO.namespace("admin"); | |
233 | - YAHOO.namespace("admin.container"); | |
234 | - core_montaEditor("","450px","500px","","Plugin",false,false,false); | |
235 | - var sUrl = i3GEO.configura.locaplic + "/admin1/catalogo/mapfile/exec.php?funcao=pegaPlugin&codigoMap="+i3GEO.temaAtivo+"&codigoLayer="+i3GEO.temaAtivo+"&g_sid="+i3GEO.configura.sid; | |
236 | - var montaEditorPlugin = function(retorno){ | |
237 | - var plugin = "markercluster"; | |
238 | - var ins = "<input type=button title='"+ $trad("salva",i3GEOadmin.core.dicionario) +"' value='"+ $trad("salva",i3GEOadmin.core.dicionario) +"' id=salvarPlugin />" | |
239 | - + "<input type=button title='"+ $trad("removePlugin",i3GEOF.atalhosedicao.dicionario) +"' value='"+ $trad("removePlugin",i3GEOF.atalhosedicao.dicionario) +"' id=removerPlugin />"; | |
240 | - //pega os campos do formulario | |
241 | - ins += i3GEO.pluginI3geo.formAdmin(plugin,retorno); | |
242 | - var ajuda = "<p class='paragrafo'>Mais informações:<br><a href='"+i3GEO.pluginI3geo.linkAjuda(plugin)+"' target=_blank >" + i3GEO.pluginI3geo.linkAjuda(plugin) + "</a></p>"; | |
243 | - $i("editor_bd").innerHTML = ins + ajuda; | |
244 | - | |
245 | - new YAHOO.widget.Button("salvarPlugin",{ onclick: { fn: function(){ | |
246 | - i3GEOF.atalhosedicao.salvarDadosEditorPlugin($i("editor_bd"),plugin,i3GEOF.atalhosedicao.tema,i3GEOF.atalhosedicao.tema); | |
247 | - } }}); | |
248 | - | |
249 | - new YAHOO.widget.Button("removerPlugin",{ onclick: { fn: function(){ | |
250 | - i3GEOF.atalhosedicao.salvarDadosEditorPlugin($i("editor_bd"),"",i3GEOF.atalhosedicao.tema,i3GEOF.atalhosedicao.tema); | |
251 | - } }}); | |
252 | - i3GEO.util.aplicaAquarela("editor_bd"); | |
253 | - }; | |
254 | - core_pegaDados("",sUrl,montaEditorPlugin); | |
255 | - } | |
256 | - } | |
257 | - }); | |
258 | - $i("i3GEOFatalhosedicaoMarkercluster-button").style.width = "200px"; | |
259 | - | |
260 | - new YAHOO.widget.Button("i3GEOFatalhosedicaoHeatmap", { | |
261 | - onclick : { | |
262 | - fn : function() { | |
263 | - i3GEO.temaAtivo = i3GEOF.atalhosedicao.tema; | |
264 | - YAHOO.namespace("admin"); | |
265 | - YAHOO.namespace("admin.container"); | |
266 | - core_montaEditor("","450px","500px","","Plugin",true,false,false); | |
267 | - var sUrl = i3GEO.configura.locaplic + "/admin1/catalogo/mapfile/exec.php?funcao=pegaPlugin&codigoMap="+i3GEO.temaAtivo+"&codigoLayer="+i3GEO.temaAtivo+"&g_sid="+i3GEO.configura.sid; | |
268 | - var montaEditorPlugin = function(retorno){ | |
269 | - var plugin = "heatmap"; | |
270 | - var ins = "<input type=button title='"+ $trad("salva",i3GEOadmin.core.dicionario) +"' value='"+ $trad("salva",i3GEOadmin.core.dicionario) +"' id=salvarPlugin />" | |
271 | - + "<input type=button title='"+ $trad("removePlugin",i3GEOF.atalhosedicao.dicionario) +"' value='"+ $trad("removePlugin",i3GEOF.atalhosedicao.dicionario) +"' id=removerPlugin />"; | |
272 | - //pega os campos do formulario | |
273 | - ins += i3GEO.pluginI3geo.formAdmin(plugin,retorno); | |
274 | - var ajuda = "<p class='paragrafo'>Mais informações:<br><a href='"+i3GEO.pluginI3geo.linkAjuda(plugin)+"' target=_blank >" + i3GEO.pluginI3geo.linkAjuda(plugin) + "</a></p>"; | |
275 | - $i("editor_bd").innerHTML = ins + ajuda; | |
276 | - | |
277 | - new YAHOO.widget.Button("salvarPlugin",{ onclick: { fn: function(){ | |
278 | - i3GEOF.atalhosedicao.salvarDadosEditorPlugin($i("editor_bd"),plugin,i3GEOF.atalhosedicao.tema,i3GEOF.atalhosedicao.tema); | |
279 | - } }}); | |
280 | - | |
281 | - new YAHOO.widget.Button("removerPlugin",{ onclick: { fn: function(){ | |
282 | - i3GEOF.atalhosedicao.salvarDadosEditorPlugin($i("editor_bd"),"",i3GEOF.atalhosedicao.tema,i3GEOF.atalhosedicao.tema); | |
283 | - } }}); | |
284 | - }; | |
285 | - core_pegaDados("",sUrl,montaEditorPlugin); | |
286 | - } | |
287 | - } | |
288 | - }); | |
289 | - $i("i3GEOFatalhosedicaoHeatmap-button").style.width = "200px"; | |
290 | - | |
291 | - new YAHOO.widget.Button("i3GEOFatalhosedicaoTemaComGrafico", { | |
292 | - onclick : { | |
293 | - fn : function() { | |
294 | - i3GEO.temaAtivo = i3GEOF.atalhosedicao.tema; | |
295 | - i3GEO.tema.dialogo.graficotema(i3GEO.temaAtivo,{ | |
296 | - mesmoTema : true | |
297 | - }); | |
252 | + else{ | |
253 | + valor = "nao"; | |
298 | 254 | } |
299 | 255 | } |
300 | - }); | |
301 | - $i("i3GEOFatalhosedicaoTemaComGrafico-button").style.width = "200px"; | |
302 | - // | |
303 | - //atualiza os campos que dependem de parametros de cada camada | |
304 | - // | |
305 | - tema = i3GEO.arvoreDeCamadas.pegaTema(i3GEOF.atalhosedicao.tema); | |
306 | - if(tema.cache.toLowerCase() === "sim"){ | |
307 | - $i("i3GEOFatalhosedicaoCache").checked = true; | |
308 | - } | |
309 | - if(tema.classe.toLowerCase() === "nao"){ | |
310 | - $i("i3GEOFatalhosedicaoClasse").checked = false; | |
311 | - } | |
312 | - if(tema.identifica.toLowerCase() === "nao"){ | |
313 | - $i("i3GEOFatalhosedicaoIdentifica").checked = false; | |
314 | - } | |
315 | - $i("i3GEOFatalhosedicaoOpacidade").value = tema.transparency; | |
316 | - }, | |
317 | - /* | |
318 | - * Function: html | |
319 | - * | |
320 | - * Gera o código html para apresentação das opções da ferramenta | |
321 | - * | |
322 | - * Retorno: | |
323 | - * | |
324 | - * String com o código html | |
325 | - */ | |
326 | - html : function(idjanela) { | |
327 | - var ins = Mustache.render(i3GEOF.atalhosedicao.MUSTACHE, i3GEOF.atalhosedicao.mustacheHash()); | |
328 | - return ins; | |
329 | - }, | |
330 | - /* | |
331 | - * Function: criaJanelaFlutuante | |
332 | - * | |
333 | - * Cria a janela flutuante para controle da ferramenta. | |
334 | - */ | |
335 | - iniciaJanelaFlutuante : function() { | |
336 | - var minimiza, cabecalho, janela, divid, titulo; | |
337 | - | |
338 | - if($i("i3GEOF.atalhosedicao")){ | |
339 | - return; | |
340 | - } | |
341 | - cabecalho = function() { | |
342 | - }; | |
343 | - minimiza = function() { | |
344 | - i3GEO.janela.minimiza("i3GEOFatalhosedicao"); | |
345 | - }; | |
346 | - // cria a janela flutuante | |
347 | - titulo = | |
348 | - "<div id='i3GEOFatalhosedicaoComboCabeca' class='comboTemasCabecalho'></div> "; | |
349 | - janela = | |
350 | - i3GEO.janela.cria( | |
351 | - "250px", | |
352 | - "300px", | |
353 | - "", | |
354 | - "", | |
355 | - "", | |
356 | - titulo, | |
357 | - "i3GEOF.atalhosedicao", | |
358 | - false, | |
359 | - "hd", | |
360 | - cabecalho, | |
361 | - minimiza, | |
362 | - "", | |
363 | - true, | |
364 | - i3GEO.configura.locaplic + "/imagens/oxygen/16x16/games-config-custom.png" | |
365 | - ); | |
366 | - divid = janela[2].id; | |
367 | - janela[0].moveTo(100,60); | |
368 | - $i("i3GEOF.atalhosedicao_corpo").style.backgroundColor = "white"; | |
369 | - i3GEOF.atalhosedicao.inicia(divid, "i3GEOF.atalhosedicao"); | |
370 | - }, | |
371 | - /** | |
372 | - * Aplica ao objeto CAMADAS o parametro definido | |
373 | - * Esse parametro e usado na hora de salvar o mapa | |
374 | - * Para isso, a funcao salvarmapfile deve ser preparada para obter o parametro | |
375 | - * e enviar para a funcao php | |
376 | - * veja em i3GEOF.salvamapfile.salva | |
377 | - * | |
378 | - * conv indica se deve ser feita a conversao de checked para sim/nao | |
379 | - */ | |
380 | - metadata: function(obj,conv){ | |
381 | - var valor,tema; | |
382 | - if(conv){ | |
383 | - if(obj.checked){ | |
384 | - valor = "sim"; | |
385 | - } | |
386 | 256 | else{ |
387 | - valor = "nao"; | |
257 | + valor = obj.value; | |
388 | 258 | } |
389 | - } | |
390 | - else{ | |
391 | - valor = obj.value; | |
392 | - } | |
393 | - tema = i3GEO.arvoreDeCamadas.pegaTema(i3GEOF.atalhosedicao.tema); | |
394 | - tema[obj.name] = valor; | |
395 | - }, | |
396 | - salvarDadosEditorPlugin: function(onde,plugin,codigoMap,codigoLayer){ | |
397 | - //TODO redesenhar a camada no caso dos plugins | |
398 | - if (typeof (console) !== 'undefined') | |
399 | - console.info("salvarDadosEditorPlugin"); | |
259 | + tema = i3GEO.arvoreDeCamadas.pegaTema(i3GEOF.atalhosedicao.tema); | |
260 | + tema[obj.name] = valor; | |
261 | + }, | |
262 | + salvarDadosEditorPlugin: function(onde,plugin,codigoMap,codigoLayer){ | |
263 | + //TODO redesenhar a camada no caso dos plugins | |
264 | + if (typeof (console) !== 'undefined') | |
265 | + console.info("salvarDadosEditorPlugin"); | |
400 | 266 | |
401 | - var campos = onde.getElementsByTagName("input"), | |
267 | + var campos = onde.getElementsByTagName("input"), | |
402 | 268 | n = campos.length, |
403 | 269 | par = [], |
404 | 270 | prog = i3GEO.configura.locaplic + "/admin1/catalogo/mapfile/exec.php?funcao=gravaPlugin&g_sid="+i3GEO.configura.sid, |
405 | 271 | i; |
406 | - if(plugin != ""){ | |
407 | - if(!i3GEO.pluginI3geo[plugin].parametrosFormAdmin){ | |
408 | - for(i=0; i<n; i++){ | |
409 | - par.push('"'+campos[i].name+'":"'+campos[i].value+'"'); | |
272 | + if(plugin != ""){ | |
273 | + if(!i3GEO.pluginI3geo[plugin].parametrosFormAdmin){ | |
274 | + for(i=0; i<n; i++){ | |
275 | + par.push('"'+campos[i].name+'":"'+campos[i].value+'"'); | |
276 | + } | |
277 | + if(plugin != ""){ | |
278 | + plugin = '{"plugin":"'+plugin+'","parametros":{' + par.join(",") + '}}'; | |
279 | + } | |
410 | 280 | } |
411 | - if(plugin != ""){ | |
412 | - plugin = '{"plugin":"'+plugin+'","parametros":{' + par.join(",") + '}}'; | |
281 | + else{ | |
282 | + plugin = i3GEO.pluginI3geo[plugin].parametrosFormAdmin(onde); | |
413 | 283 | } |
414 | 284 | } |
415 | - else{ | |
416 | - plugin = i3GEO.pluginI3geo[plugin].parametrosFormAdmin(onde); | |
417 | - } | |
418 | - } | |
419 | - var sUrl = prog | |
285 | + var sUrl = prog | |
420 | 286 | + "&codigoMap=" + codigoMap |
421 | 287 | + "&codigoLayer=" + codigoLayer |
422 | 288 | + "&plugin=" + plugin; |
423 | - var callback = { | |
424 | - success:function(o) { | |
425 | - try { | |
426 | - if(JSON.parse(o.responseText) == "erro") { | |
289 | + var callback = { | |
290 | + success:function(o) { | |
291 | + try { | |
292 | + if(JSON.parse(o.responseText) == "erro") { | |
293 | + } | |
294 | + else { | |
295 | + YAHOO.admin.container.panelEditor.destroy(); | |
296 | + YAHOO.admin.container.panelEditor = null; | |
297 | + } | |
427 | 298 | } |
428 | - else { | |
429 | - YAHOO.admin.container.panelEditor.destroy(); | |
430 | - YAHOO.admin.container.panelEditor = null; | |
431 | - } | |
432 | - } | |
433 | - catch(e){core_handleFailure(e,o.responseText);} | |
434 | - }, | |
435 | - argument: { foo:"foo", bar:"bar" } | |
436 | - }; | |
437 | - core_makeRequest(sUrl,callback,'POST'); | |
438 | - } | |
299 | + catch(e){core_handleFailure(e,o.responseText);} | |
300 | + }, | |
301 | + argument: { foo:"foo", bar:"bar" } | |
302 | + }; | |
303 | + core_makeRequest(sUrl,callback,'POST'); | |
304 | + } | |
439 | 305 | |
440 | 306 | }; | ... | ... |
ferramentas/atalhosedicao/template_mst.html
... | ... | @@ -32,76 +32,81 @@ |
32 | 32 | no-repeat; |
33 | 33 | } |
34 | 34 | </style> |
35 | -<div style='margin-left: 5px'> | |
36 | - <p class='paragrafo'>{{{edicao}}}</p> | |
37 | - <p class='paragrafo'> | |
38 | - <input id='i3GEOFatalhosedicaoSalva' type='button' value='{{{salva}}}' /> | |
39 | - </p> | |
40 | - <p class='paragrafo'> | |
41 | - <input id='i3GEOFatalhosedicaoLegenda' type='button' value='{{{legenda}}}' /> | |
42 | - </p> | |
43 | - <p class='paragrafo'> | |
44 | - <input id='i3GEOFatalhosedicaoTabela' type='button' value='{{{tabela}}}' /> | |
45 | - </p> | |
46 | - <p class='paragrafo'> | |
47 | - <input id='i3GEOFatalhosedicaoTexto' type='button' value='{{{texto}}}' /> | |
48 | - </p> | |
49 | - <p class='paragrafo'> | |
50 | - <input id='i3GEOFatalhosedicaoEtiqueta' type='button' value='{{{etiqueta}}}' /> | |
51 | - </p> | |
52 | - <p class='paragrafo'> | |
53 | - <input id='i3GEOFatalhosedicaoFiltro' type='button' value='{{{filtro}}}' /> | |
54 | - </p> | |
55 | - <p class='paragrafo'> | |
56 | - <input id='i3GEOFatalhosedicaoTemaComGrafico' type='button' value='{{{temacomgrafico}}}' /> | |
57 | - </p> | |
58 | - <p class='paragrafo'>{{{opacidade}}}</p> | |
59 | - <div class='i3geoForm i3geoFormIconeEdita' style='width: 90px; float: left;'> | |
60 | - <input id='i3GEOFatalhosedicaoOpacidade' type='text' value='' /> | |
35 | +<div style='margin-left: 5px;width:95%;'> | |
36 | + <a onclick="i3GEOF.atalhosedicao.salva()" class='btn btn-primary btn-lg btn-block btn-raised' href='javascript:void(0)' > | |
37 | + {{{salva}}} | |
38 | + </a> | |
39 | + <a onclick="i3GEO.temaAtivo = i3GEOF.atalhosedicao.tema;i3GEO.tema.dialogo.editaLegenda();" class='btn btn-primary btn-lg btn-block btn-raised' href='javascript:void(0)' > | |
40 | + {{{legenda}}} | |
41 | + </a> | |
42 | + <a onclick="i3GEO.temaAtivo = i3GEOF.atalhosedicao.tema;i3GEO.tema.dialogo.tabela();" class='btn btn-primary btn-lg btn-block btn-raised' href='javascript:void(0)' > | |
43 | + {{{tabela}}} | |
44 | + </a> | |
45 | + <a onclick="i3GEO.temaAtivo = i3GEOF.atalhosedicao.tema;i3GEO.tema.dialogo.toponimia();" class='btn btn-primary btn-lg btn-block btn-raised' href='javascript:void(0)' > | |
46 | + {{{texto}}} | |
47 | + </a> | |
48 | + <a onclick="i3GEO.temaAtivo = i3GEOF.atalhosedicao.tema;i3GEO.tema.dialogo.etiquetas();" class='btn btn-primary btn-lg btn-block btn-raised' href='javascript:void(0)' > | |
49 | + {{{etiqueta}}} | |
50 | + </a> | |
51 | + <a onclick="i3GEO.temaAtivo = i3GEOF.atalhosedicao.tema;i3GEO.tema.dialogo.filtro();" class='btn btn-primary btn-lg btn-block btn-raised' href='javascript:void(0)' > | |
52 | + {{{filtro}}} | |
53 | + </a> | |
54 | + <a onclick="i3GEOF.atalhosedicao.temaComGrafico();" class='btn btn-primary btn-lg btn-block btn-raised' href='javascript:void(0)' > | |
55 | + {{{temacomgrafico}}} | |
56 | + </a> | |
57 | + <label class='paragrafo'>{{{opacidade}}} </label> | |
58 | + <div class="form-group condensed" > | |
59 | + <form onsubmit='i3GEO.tema.mudatransp(i3GEOF.atalhosedicao.tema,this[0].value);return false;'> | |
60 | + <input id="i3GEOFatalhosedicaoOpacidade" class="form-control" type='text' value='{{{transparency}}}' /> | |
61 | + </form> | |
61 | 62 | </div> |
62 | - <input id='i3GEOFatalhosedicaoOpacidadeB' type='button' value='{{{aplicar}}}' /> | |
63 | - <br> | |
64 | - <br> | |
65 | 63 | <!-- Opcoes que alteram os metadata do LAYER basta incluir em name o nome do metadata e indicar com true ou false se o valor e do tipo sim|nao. Se for false, o valor e obtido de value --> |
66 | - <p class='paragrafo'> | |
67 | - <input id='i3GEOFatalhosedicaoCache' name='cache' onclick='i3GEOF.atalhosedicao.metadata(this,true)' style='cursor: pointer' type='checkbox' /> | |
68 | - <label>{{{ativaCache}}}</label> | |
69 | - </p> | |
70 | - <p class='paragrafo'> | |
71 | - <input checked id='i3GEOFatalhosedicaoClasse' name='classe' onclick='i3GEOF.atalhosedicao.metadata(this,true)' style='cursor: pointer' type='checkbox' /> | |
72 | - <label>{{{mostraClasses}}}</label> | |
73 | - </p> | |
74 | - <p class='paragrafo'> | |
75 | - <input checked id='i3GEOFatalhosedicaoIdentifica' name='identifica' onclick='i3GEOF.atalhosedicao.metadata(this,true)' style='cursor: pointer' type='checkbox' /> | |
76 | - <label>{{{mostraIdentifica}}}</label> | |
77 | - </p> | |
78 | - <br> | |
79 | - <p class='paragrafo'>{{{ferramentas}}}</p> | |
80 | - <p class='paragrafo'> | |
81 | - <input id='i3GEOFatalhosedicaoTme' type='button' value='TME' /> | |
82 | - </p> | |
83 | - <p class='paragrafo'> | |
84 | - <input id='i3GEOFatalhosedicaoStorymap' type='button' value='Storymap' /> | |
85 | - </p> | |
86 | - <p class='paragrafo'> | |
87 | - <input id='i3GEOFatalhosedicaoAnimagif' type='button' value='Animagif' /> | |
88 | - </p> | |
89 | - <p class='paragrafo'> | |
90 | - <input id='i3GEOFatalhosedicaoLinhadotempo' type='button' value='Time line' /> | |
91 | - </p> | |
92 | - <br> | |
93 | - <p class='paragrafo'>{{{plugins}}}</p> | |
94 | - <p class='paragrafo'> | |
95 | - <input id='i3GEOFatalhosedicaoParametrossql' type='button' value='Parâmetros SQL' /> | |
96 | - </p> | |
97 | - <p class='paragrafo'> | |
98 | - <input id='i3GEOFatalhosedicaoLayerkml' type='button' value='KML layer' /> | |
99 | - </p> | |
100 | - <p class='paragrafo'> | |
101 | - <input id='i3GEOFatalhosedicaoMarkercluster' type='button' value='Marker Cluster' /> | |
102 | - </p> | |
103 | - <p class='paragrafo'> | |
104 | - <input id='i3GEOFatalhosedicaoHeatmap' type='button' value='Mapa de calor (heatmap)' /> | |
105 | - </p> | |
64 | + <div class="checkbox text-left"> | |
65 | + <label> | |
66 | + <input id='i3GEOFatalhosedicaoCache' type="checkbox" name='cache' onclick="i3GEOF.atalhosedicao.metadata(this,true)"> | |
67 | + <span class="checkbox-material noprint"><span class="check"></span></span> {{{ativaCache}}} | |
68 | + </label> | |
69 | + </div> | |
70 | + <div class="checkbox text-left"> | |
71 | + <label> | |
72 | + <input id='i3GEOFatalhosedicaoClasse' type="checkbox" name='classe' onclick="i3GEOF.atalhosedicao.metadata(this,true)"> | |
73 | + <span class="checkbox-material noprint"><span class="check"></span></span> {{{mostraClasses}}} | |
74 | + </label> | |
75 | + </div> | |
76 | + <div class="checkbox text-left"> | |
77 | + <label> | |
78 | + <input checked id='i3GEOFatalhosedicaoIdentifica' type="checkbox" name='identifica' onclick="i3GEOF.atalhosedicao.metadata(this,true)"> | |
79 | + <span class="checkbox-material noprint"><span class="check"></span></span> {{{mostraIdentifica}}} | |
80 | + </label> | |
81 | + </div> | |
82 | + | |
83 | + <h5>{{{ferramentas}}}</h5> | |
84 | + | |
85 | + <a onclick="i3GEO.temaAtivo = i3GEOF.atalhosedicao.tema;i3GEO.tema.dialogo.tme(i3GEOF.atalhosedicao.tema)" class='btn btn-primary btn-lg btn-block btn-raised' href='javascript:void(0)' > | |
86 | + TME | |
87 | + </a> | |
88 | + <a onclick="i3GEO.temaAtivo = i3GEOF.atalhosedicao.tema;i3GEO.tema.dialogo.storymap(i3GEOF.atalhosedicao.tema)" class='btn btn-primary btn-lg btn-block btn-raised' href='javascript:void(0)' > | |
89 | + Storymap | |
90 | + </a> | |
91 | + <a onclick="i3GEO.temaAtivo = i3GEOF.atalhosedicao.tema;i3GEO.tema.dialogo.animagif(i3GEOF.atalhosedicao.tema)" class='btn btn-primary btn-lg btn-block btn-raised' href='javascript:void(0)' > | |
92 | + Animagif | |
93 | + </a> | |
94 | + <a onclick="i3GEO.temaAtivo = i3GEOF.atalhosedicao.tema;i3GEO.analise.dialogo.linhaDoTempo(i3GEOF.atalhosedicao.tema)" class='btn btn-primary btn-lg btn-block btn-raised' href='javascript:void(0)' > | |
95 | + Time line | |
96 | + </a> | |
97 | + | |
98 | + <h5>{{{plugins}}}</h5> | |
106 | 99 | |
100 | + <a onclick="i3GEO.temaAtivo = i3GEOF.atalhosedicao.tema;i3GEOF.atalhosedicao.parametrosSql()" class='btn btn-primary btn-lg btn-block btn-raised' href='javascript:void(0)' > | |
101 | + Parâmetros SQL | |
102 | + </a> | |
103 | + <a onclick="i3GEO.temaAtivo = i3GEOF.atalhosedicao.tema;i3GEOF.atalhosedicao.layerKml()" class='btn btn-primary btn-lg btn-block btn-raised' href='javascript:void(0)' > | |
104 | + KML layer | |
105 | + </a> | |
106 | + <a onclick="i3GEO.temaAtivo = i3GEOF.atalhosedicao.tema;i3GEOF.atalhosedicao.markercluster()" class='btn btn-primary btn-lg btn-block btn-raised' href='javascript:void(0)' > | |
107 | + Marker Cluster | |
108 | + </a> | |
109 | + <a onclick="i3GEO.temaAtivo = i3GEOF.atalhosedicao.tema;i3GEOF.atalhosedicao.heatmap()" class='btn btn-primary btn-lg btn-block btn-raised' href='javascript:void(0)' > | |
110 | + Heatmap | |
111 | + </a> | |
107 | 112 | </div> |
108 | 113 | \ No newline at end of file | ... | ... |