Commit 953f020f0a94d5638182b04b15b15d6196f4164e
1 parent
d7504cc0
Exists in
master
and in
7 other branches
Inclusão de opção para escolher item com o nome da classe no cálculo por valor único
Showing
5 changed files
with
27 additions
and
8 deletions
Show diff stats
classesphp/mapa_controle.php
@@ -1178,7 +1178,10 @@ switch (strtoupper($funcao)) | @@ -1178,7 +1178,10 @@ switch (strtoupper($funcao)) | ||
1178 | $retorno = $m->adicionaclasse(); | 1178 | $retorno = $m->adicionaclasse(); |
1179 | } | 1179 | } |
1180 | if ($opcao == "valorunico"){ | 1180 | if ($opcao == "valorunico"){ |
1181 | - $retorno = $m->valorunico($item,$ignorar); | 1181 | + if(empty($itemNome)){ |
1182 | + $itemNome = ""; | ||
1183 | + } | ||
1184 | + $retorno = $m->valorunico($item,$ignorar,$itemNome); | ||
1182 | } | 1185 | } |
1183 | if ($opcao == "intervalosiguais"){ | 1186 | if ($opcao == "intervalosiguais"){ |
1184 | $retorno = $m->intervalosiguais($item,$nclasses,$ignorar); | 1187 | $retorno = $m->intervalosiguais($item,$nclasses,$ignorar); |
ferramentas/convertemapakml/index.js
@@ -49,10 +49,10 @@ i3GEOF.converteMapaKml = { | @@ -49,10 +49,10 @@ i3GEOF.converteMapaKml = { | ||
49 | * Susbtitutos para o template | 49 | * Susbtitutos para o template |
50 | */ | 50 | */ |
51 | mustacheHash : function() { | 51 | mustacheHash : function() { |
52 | - var dicionario = i3GEO.idioma.objetoIdioma(i3GEOF.converteMapaKml.dicionario), | ||
53 | - lista,tema; | ||
54 | - lista = i3GEO.arvoreDeCamadas.CAMADAS; | ||
55 | - tema = lista[0].name; | 52 | + var dicionario = i3GEO.idioma.objetoIdioma(i3GEOF.converteMapaKml.dicionario); |
53 | + //lista; | ||
54 | + //lista = i3GEO.arvoreDeCamadas.CAMADAS; | ||
55 | + //tema = lista[0].name; | ||
56 | dicionario["locaplic"] = i3GEO.configura.locaplic; | 56 | dicionario["locaplic"] = i3GEO.configura.locaplic; |
57 | dicionario["parametrosMapfile"] = i3GEO.parametros.mapfile; | 57 | dicionario["parametrosMapfile"] = i3GEO.parametros.mapfile; |
58 | dicionario["tema"] = ""; | 58 | dicionario["tema"] = ""; |
ferramentas/legenda/dicionario.js
@@ -489,5 +489,10 @@ i3GEOF.legenda.dicionario = { | @@ -489,5 +489,10 @@ i3GEOF.legenda.dicionario = { | ||
489 | pt : "Aplicar esse parâmetro em todas as classes", | 489 | pt : "Aplicar esse parâmetro em todas as classes", |
490 | en : "", | 490 | en : "", |
491 | es : "" | 491 | es : "" |
492 | + } ], | ||
493 | + 'nomeClassesUnicoSimbolo' : [ { | ||
494 | + pt : "(Opcional) Item que será utilizado para obter os nomes das classes", | ||
495 | + en : "", | ||
496 | + es : "" | ||
492 | } ] | 497 | } ] |
493 | }; | 498 | }; |
ferramentas/legenda/index.js
@@ -325,6 +325,9 @@ i3GEOF.legenda = | @@ -325,6 +325,9 @@ i3GEOF.legenda = | ||
325 | if ($i("i3GEOlegendaitensValorUnico")) { | 325 | if ($i("i3GEOlegendaitensValorUnico")) { |
326 | $i("i3GEOlegendaitensValorUnico").innerHTML = retorno.dados; | 326 | $i("i3GEOlegendaitensValorUnico").innerHTML = retorno.dados; |
327 | } | 327 | } |
328 | + if ($i("i3GEOlegendaClassesValorUnico")) { | ||
329 | + $i("i3GEOlegendaClassesValorUnico").innerHTML = retorno.dados; | ||
330 | + } | ||
328 | if ($i("i3GEOlegendaitensValorClass")) { | 331 | if ($i("i3GEOlegendaitensValorClass")) { |
329 | $i("i3GEOlegendaitensValorClass").innerHTML = retorno.dados; | 332 | $i("i3GEOlegendaitensValorClass").innerHTML = retorno.dados; |
330 | } | 333 | } |
@@ -1092,9 +1095,14 @@ i3GEOF.legenda = | @@ -1092,9 +1095,14 @@ i3GEOF.legenda = | ||
1092 | if (i3GEOF.legenda.aguarde.visibility === "visible") { | 1095 | if (i3GEOF.legenda.aguarde.visibility === "visible") { |
1093 | return; | 1096 | return; |
1094 | } | 1097 | } |
1095 | - var item = $i("i3GEOlegendaitensValorUnico").getElementsByTagName("select")[0].value, p = | ||
1096 | - i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid + "&funcao=alteraclasse&tema=" | ||
1097 | - + i3GEOF.legenda.tema + "&item=" + item + "&opcao=valorunico&ignorar=" + $i("i3GEOlegendaignorar").value, cp = | 1098 | + var item = $i("i3GEOlegendaitensValorUnico").getElementsByTagName("select")[0].value, |
1099 | + itemNome = $i("i3GEOlegendaClassesValorUnico").getElementsByTagName("select")[0].value, | ||
1100 | + p = i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid=" + i3GEO.configura.sid + "&funcao=alteraclasse&tema=" | ||
1101 | + + i3GEOF.legenda.tema | ||
1102 | + + "&item=" + item | ||
1103 | + + "&itemNome=" + itemNome | ||
1104 | + + "&opcao=valorunico" | ||
1105 | + + "&ignorar=" + $i("i3GEOlegendaignorar").value, cp = | ||
1098 | new cpaint(), fim = function() { | 1106 | new cpaint(), fim = function() { |
1099 | i3GEOF.legenda.aposAlterarLegenda(); | 1107 | i3GEOF.legenda.aposAlterarLegenda(); |
1100 | i3GEOF.legenda.aguarde.visibility = "hidden"; | 1108 | i3GEOF.legenda.aguarde.visibility = "hidden"; |
ferramentas/legenda/template_mst.html
@@ -149,6 +149,9 @@ | @@ -149,6 +149,9 @@ | ||
149 | <p class='paragrafo'>{{{cadaOcorrenciaUnicoSimbolo}}}</p> | 149 | <p class='paragrafo'>{{{cadaOcorrenciaUnicoSimbolo}}}</p> |
150 | <div id='i3GEOlegendaitensValorUnico' class='styled-select'></div> | 150 | <div id='i3GEOlegendaitensValorUnico' class='styled-select'></div> |
151 | <br> | 151 | <br> |
152 | + <p class='paragrafo'>{{{nomeClassesUnicoSimbolo}}}</p> | ||
153 | + <div id='i3GEOlegendaClassesValorUnico' class='styled-select'></div> | ||
154 | + <br> | ||
152 | <p class='paragrafo'> | 155 | <p class='paragrafo'> |
153 | <input id='i3GEOlegendabotao6' size='25' type='button' value='{{{valorUnico}}}' /> | 156 | <input id='i3GEOlegendabotao6' size='25' type='button' value='{{{valorUnico}}}' /> |
154 | </p> | 157 | </p> |