Commit 75dfe6242a7bb4abdb203213633cb0efd4081a33
1 parent
5d6e51f8
Exists in
master
and in
7 other branches
v6 - correção nas ferramentas legenda e nptpol na interface OSM
Showing
3 changed files
with
22 additions
and
11 deletions
Show diff stats
admin/admin.db
No preview for this file type
ferramentas/legenda/index.js
@@ -654,7 +654,8 @@ i3GEOF.legenda = { | @@ -654,7 +654,8 @@ i3GEOF.legenda = { | ||
654 | i3GEOF.legenda.mostralegenda(); | 654 | i3GEOF.legenda.mostralegenda(); |
655 | i3GEOF.legenda.aposAlterarLegenda(); | 655 | i3GEOF.legenda.aposAlterarLegenda(); |
656 | }; | 656 | }; |
657 | - p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&opcao=aplicacoresrgb&ext="+i3GEO.parametros.mapexten+"&tema="+i3GEOF.legenda.tema; | 657 | + var ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten); |
658 | + p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&opcao=aplicacoresrgb&ext="+ext+"&tema="+i3GEOF.legenda.tema; | ||
658 | cp = new cpaint(); | 659 | cp = new cpaint(); |
659 | cp.set_transfer_mode('POST'); | 660 | cp.set_transfer_mode('POST'); |
660 | cp.set_response_type("JSON"); | 661 | cp.set_response_type("JSON"); |
@@ -758,7 +759,8 @@ i3GEOF.legenda = { | @@ -758,7 +759,8 @@ i3GEOF.legenda = { | ||
758 | i3GEOF.legenda.aposAlterarLegenda(); | 759 | i3GEOF.legenda.aposAlterarLegenda(); |
759 | i3GEOF.legenda.aguarde.visibility = "hidden"; | 760 | i3GEOF.legenda.aguarde.visibility = "hidden"; |
760 | }; | 761 | }; |
761 | - p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&opcao=alteraclasses&ext="+i3GEO.parametros.mapexten; | 762 | + var ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten); |
763 | + p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&opcao=alteraclasses&ext="+ext; | ||
762 | cp = new cpaint(); | 764 | cp = new cpaint(); |
763 | cp.set_transfer_mode('POST'); | 765 | cp.set_transfer_mode('POST'); |
764 | cp.set_response_type("JSON"); | 766 | cp.set_response_type("JSON"); |
@@ -820,7 +822,8 @@ i3GEOF.legenda = { | @@ -820,7 +822,8 @@ i3GEOF.legenda = { | ||
820 | adicionaClasse: function(){ | 822 | adicionaClasse: function(){ |
821 | if(i3GEOF.legenda.aguarde.visibility === "visible") | 823 | if(i3GEOF.legenda.aguarde.visibility === "visible") |
822 | {return;} | 824 | {return;} |
823 | - var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&opcao=adicionaclasse"+"&tema="+i3GEOF.legenda.tema+"&ext="+i3GEO.parametros.mapexten, | 825 | + var ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten); |
826 | + var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&opcao=adicionaclasse"+"&tema="+i3GEOF.legenda.tema+"&ext="+ext, | ||
824 | cp = new cpaint(); | 827 | cp = new cpaint(); |
825 | cp.set_response_type("JSON"); | 828 | cp.set_response_type("JSON"); |
826 | cp.call(p,"alteraclasse",i3GEOF.legenda.mostralegenda); | 829 | cp.call(p,"alteraclasse",i3GEOF.legenda.mostralegenda); |
@@ -842,7 +845,8 @@ i3GEOF.legenda = { | @@ -842,7 +845,8 @@ i3GEOF.legenda = { | ||
842 | }; | 845 | }; |
843 | if(i3GEOF.legenda.aguarde.visibility === "visible") | 846 | if(i3GEOF.legenda.aguarde.visibility === "visible") |
844 | {return;} | 847 | {return;} |
845 | - var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&opcao=adicionaopacidade"+"&tema="+i3GEOF.legenda.tema+"&ext="+i3GEO.parametros.mapexten, | 848 | + var ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten); |
849 | + var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&opcao=adicionaopacidade"+"&tema="+i3GEOF.legenda.tema+"&ext="+ext, | ||
846 | cp = new cpaint(); | 850 | cp = new cpaint(); |
847 | cp.set_response_type("JSON"); | 851 | cp.set_response_type("JSON"); |
848 | cp.call(p,"alteraclasse",retorna); | 852 | cp.call(p,"alteraclasse",retorna); |
@@ -1018,7 +1022,8 @@ i3GEOF.legenda = { | @@ -1018,7 +1022,8 @@ i3GEOF.legenda = { | ||
1018 | if(i3GEOF.legenda.aguarde.visibility === "visible") | 1022 | if(i3GEOF.legenda.aguarde.visibility === "visible") |
1019 | {return;} | 1023 | {return;} |
1020 | i3GEOF.legenda.aguarde.visibility = "visible"; | 1024 | i3GEOF.legenda.aguarde.visibility = "visible"; |
1021 | - var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&tema="+i3GEOF.legenda.tema+"&opcao=simbolounico&ext="+i3GEO.parametros.mapexten, | 1025 | + var ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten); |
1026 | + var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&tema="+i3GEOF.legenda.tema+"&opcao=simbolounico&ext="+ext, | ||
1022 | cp = new cpaint(), | 1027 | cp = new cpaint(), |
1023 | fim = function(){ | 1028 | fim = function(){ |
1024 | i3GEOF.legenda.aposAlterarLegenda(); | 1029 | i3GEOF.legenda.aposAlterarLegenda(); |
@@ -1050,11 +1055,12 @@ i3GEOF.legenda = { | @@ -1050,11 +1055,12 @@ i3GEOF.legenda = { | ||
1050 | i3GEOF.legenda.aguarde.visibility = "hidden"; | 1055 | i3GEOF.legenda.aguarde.visibility = "hidden"; |
1051 | }; | 1056 | }; |
1052 | if($i("i3GEOFlegendaaplicaextent").checked === true){ | 1057 | if($i("i3GEOFlegendaaplicaextent").checked === true){ |
1053 | - p += "&ext="+i3GEO.parametros.mapexten; | 1058 | + p += "&ext="+i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten); |
1054 | } | 1059 | } |
1055 | else{ | 1060 | else{ |
1056 | - p += "&ext="+i3GEO.parametros.extentTotal; | 1061 | + p += "&ext="+i3GEO.util.extOSM2Geo(i3GEO.parametros.extentTotal); |
1057 | } | 1062 | } |
1063 | + | ||
1058 | if (item == "") | 1064 | if (item == "") |
1059 | {i3GEO.janela.tempoMsg($trad(81,i3GEOF.legenda.dicionario));return;} | 1065 | {i3GEO.janela.tempoMsg($trad(81,i3GEOF.legenda.dicionario));return;} |
1060 | i3GEOF.legenda.aguarde.visibility = "visible"; | 1066 | i3GEOF.legenda.aguarde.visibility = "visible"; |
@@ -1079,7 +1085,8 @@ i3GEOF.legenda = { | @@ -1079,7 +1085,8 @@ i3GEOF.legenda = { | ||
1079 | {return;} | 1085 | {return;} |
1080 | var item = $i("i3GEOlegendaSelItem").value, | 1086 | var item = $i("i3GEOlegendaSelItem").value, |
1081 | nclasses = $i("i3GEOlegendanclasses").value, | 1087 | nclasses = $i("i3GEOlegendanclasses").value, |
1082 | - p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&nclasses="+nclasses+"&tema="+i3GEOF.legenda.tema+"&item="+item+"&opcao=intervalosiguais&ignorar="+$i("i3GEOlegendaignorar").value+"&ext="+i3GEO.parametros.mapexten, | 1088 | + ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten), |
1089 | + p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&nclasses="+nclasses+"&tema="+i3GEOF.legenda.tema+"&item="+item+"&opcao=intervalosiguais&ignorar="+$i("i3GEOlegendaignorar").value+"&ext="+ext, | ||
1083 | cp = new cpaint(), | 1090 | cp = new cpaint(), |
1084 | fim = function(){ | 1091 | fim = function(){ |
1085 | i3GEOF.legenda.aposAlterarLegenda(); | 1092 | i3GEOF.legenda.aposAlterarLegenda(); |
@@ -1107,7 +1114,8 @@ i3GEOF.legenda = { | @@ -1107,7 +1114,8 @@ i3GEOF.legenda = { | ||
1107 | if(i3GEOF.legenda.aguarde.visibility === "visible") | 1114 | if(i3GEOF.legenda.aguarde.visibility === "visible") |
1108 | {return;} | 1115 | {return;} |
1109 | var item = $i("i3GEOlegendaSelItem").value, | 1116 | var item = $i("i3GEOlegendaSelItem").value, |
1110 | - p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&tema="+i3GEOF.legenda.tema+"&item="+item+"&opcao=quartis&ignorar="+$i("i3GEOlegendaignorar").value+"&ext="+i3GEO.parametros.mapexten+"&tipoLegenda="+$i("estiloClassesQuartis").value, | 1117 | + ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten), |
1118 | + p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&tema="+i3GEOF.legenda.tema+"&item="+item+"&opcao=quartis&ignorar="+$i("i3GEOlegendaignorar").value+"&ext="+ext+"&tipoLegenda="+$i("estiloClassesQuartis").value, | ||
1111 | cp = new cpaint(); | 1119 | cp = new cpaint(); |
1112 | fim = function(){ | 1120 | fim = function(){ |
1113 | i3GEOF.legenda.aposAlterarLegenda(); | 1121 | i3GEOF.legenda.aposAlterarLegenda(); |
@@ -1136,7 +1144,8 @@ i3GEOF.legenda = { | @@ -1136,7 +1144,8 @@ i3GEOF.legenda = { | ||
1136 | {return;} | 1144 | {return;} |
1137 | var item = $i("i3GEOlegendaSelItem").value, | 1145 | var item = $i("i3GEOlegendaSelItem").value, |
1138 | nclasses = $i("i3GEOlegendanclasses").value, | 1146 | nclasses = $i("i3GEOlegendanclasses").value, |
1139 | - p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&nclasses="+nclasses+"&tema="+i3GEOF.legenda.tema+"&item="+item+"&opcao=quantil&ignorar="+$i("i3GEOlegendaignorar").value+"&ext="+i3GEO.parametros.mapexten, | 1147 | + ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten), |
1148 | + p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&nclasses="+nclasses+"&tema="+i3GEOF.legenda.tema+"&item="+item+"&opcao=quantil&ignorar="+$i("i3GEOlegendaignorar").value+"&ext="+ext, | ||
1140 | cp = new cpaint(), | 1149 | cp = new cpaint(), |
1141 | fim = function(){ | 1150 | fim = function(){ |
1142 | i3GEOF.legenda.aposAlterarLegenda(); | 1151 | i3GEOF.legenda.aposAlterarLegenda(); |
@@ -1165,7 +1174,8 @@ i3GEOF.legenda = { | @@ -1165,7 +1174,8 @@ i3GEOF.legenda = { | ||
1165 | {return;} | 1174 | {return;} |
1166 | var item = $i("i3GEOlegendaSelItem").value, | 1175 | var item = $i("i3GEOlegendaSelItem").value, |
1167 | nclasses = $i("i3GEOlegendanclasses").value, | 1176 | nclasses = $i("i3GEOlegendanclasses").value, |
1168 | - p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&nclasses="+nclasses+"&tema="+i3GEOF.legenda.tema+"&item="+item+"&opcao=quebrasnaturais&ignorar="+$i("i3GEOlegendaignorar").value+"&ext="+i3GEO.parametros.mapexten, | 1177 | + ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten), |
1178 | + p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&nclasses="+nclasses+"&tema="+i3GEOF.legenda.tema+"&item="+item+"&opcao=quebrasnaturais&ignorar="+$i("i3GEOlegendaignorar").value+"&ext="+ext, | ||
1169 | cp = new cpaint(), | 1179 | cp = new cpaint(), |
1170 | fim = function(){ | 1180 | fim = function(){ |
1171 | i3GEOF.legenda.aposAlterarLegenda(); | 1181 | i3GEOF.legenda.aposAlterarLegenda(); |
ferramentas/nptpol/index.js
@@ -204,6 +204,7 @@ i3GEOF.nptpol = { | @@ -204,6 +204,7 @@ i3GEOF.nptpol = { | ||
204 | {ext = i3GEO.Interface.googlemaps.bbox();} | 204 | {ext = i3GEO.Interface.googlemaps.bbox();} |
205 | else | 205 | else |
206 | {ext = i3GEO.parametros.mapexten;} | 206 | {ext = i3GEO.parametros.mapexten;} |
207 | + ext = i3GEO.util.extOSM2Geo(ext); | ||
207 | p = i3GEO.configura.locaplic+"/ferramentas/nptpol/exec.php?g_sid="+i3GEO.configura.sid+"&funcao=nptPol&temaPt="+$i("i3GEOnptpolPontos").value+"&temaPo="+$i("i3GEOnptpolPoligonos").value+"&ext="+ext; | 208 | p = i3GEO.configura.locaplic+"/ferramentas/nptpol/exec.php?g_sid="+i3GEO.configura.sid+"&funcao=nptPol&temaPt="+$i("i3GEOnptpolPontos").value+"&temaPo="+$i("i3GEOnptpolPoligonos").value+"&ext="+ext; |
208 | p += "&somaritem="+somaritem; | 209 | p += "&somaritem="+somaritem; |
209 | cp = new cpaint(); | 210 | cp = new cpaint(); |