Commit f8b38c6f19636861213243c4b304f33366946fcd
1 parent
33587442
Exists in
master
Adaptação da ferramenta legenda ao novo tipo de janela flutuante
Showing
5 changed files
with
177 additions
and
287 deletions
Show diff stats
ferramentas/legenda/exec.php
... | ... | @@ -1,216 +0,0 @@ |
1 | -<?php | |
2 | -include_once (dirname(__FILE__) . "/../safe2.php"); | |
3 | -verificaBlFerramentas(basename(dirname(__FILE__)), $_SESSION["i3geoBlFerramentas"], false); | |
4 | -$retorno = ""; | |
5 | -switch (strtoupper($_GET["funcao"])) { | |
6 | - case "SALVAPARAMETROSAUTO": | |
7 | - $map = ms_newMapObj($_SESSION["map_file"]); | |
8 | - $layer = $map->getlayerbyname($_POST["tema"]); | |
9 | - $layer->setmetadata("classesitem", $_POST["classesitem"]); | |
10 | - $layer->setmetadata("classesnome", $_POST["classesnome"]); | |
11 | - $layer->setmetadata("classescor", $_POST["classescor"]); | |
12 | - $layer->setmetadata("classessimbolo", $_POST["classessimbolo"]); | |
13 | - $layer->setmetadata("classestamanho", $_POST["classestamanho"]); | |
14 | - $layer->setmetadata("palletefile", $_POST["palletefile"]); | |
15 | - $layer->setmetadata("palletestep", $_POST["palletestep"]); | |
16 | - $layer->setmetadata("cache", "nao"); | |
17 | - $layer->setmetadata("TILES", "nao"); | |
18 | - autoClasses($layer, $map, $_SESSION["locaplic"]); | |
19 | - $layer->setmetadata("classesnome", ""); | |
20 | - $layer->setmetadata("palletefile", ""); | |
21 | - $map->save($_SESSION["map_file"]); | |
22 | - ob_clean(); | |
23 | - header("Content-type: application/json"); | |
24 | - echo json_encode(true); | |
25 | - exit(); | |
26 | - break; | |
27 | - case "PARAMETROSAUTO": | |
28 | - $map = ms_newMapObj($_SESSION["map_file"]); | |
29 | - $layer = $map->getlayerbyname($_POST["tema"]); | |
30 | - $retorno = array(); | |
31 | - $retorno["classesitem"] = $layer->getmetadata("classesitem"); | |
32 | - $retorno["classesnome"] = $layer->getmetadata("classesnome"); | |
33 | - $retorno["classescor"] = $layer->getmetadata("classescor"); | |
34 | - $retorno["classessimbolo"] = $layer->getmetadata("classessimbolo"); | |
35 | - $retorno["classestamanho"] = $layer->getmetadata("classestamanho"); | |
36 | - $retorno["palletefile"] = $layer->getmetadata("palletefile"); | |
37 | - $retorno["palletestep"] = $layer->getmetadata("palletestep"); | |
38 | - $sopen = $layer->open(); | |
39 | - if ($sopen != MS_FAILURE) { | |
40 | - $items = $layer->getItems(); | |
41 | - } else { | |
42 | - $items = array(); | |
43 | - } | |
44 | - $retorno["colunas"] = implode(",", $items); | |
45 | - ob_clean(); | |
46 | - header("Content-type: application/json"); | |
47 | - echo json_encode($retorno); | |
48 | - exit(); | |
49 | - break; | |
50 | - case "APLICARCLUSTER": | |
51 | - include_once (dirname(__FILE__) . "/../../classesphp/classe_temas.php"); | |
52 | - $m = new Temas($_SESSION["map_file"], $_POST["tema"]); | |
53 | - $retorno = $m->criaCluster($_POST["group"], $_POST["filter"], $_POST["maxdistance"], $_POST["region"], $_POST["buffer"]); | |
54 | - $m->salva(); | |
55 | - ob_clean(); | |
56 | - if (! $retorno) { | |
57 | - header("HTTP/1.1 500 erro legenda nao disponivel"); | |
58 | - } else { | |
59 | - header("Content-type: application/json"); | |
60 | - echo json_encode($retorno); | |
61 | - } | |
62 | - exit(); | |
63 | - break; | |
64 | - case "REMOVERCLUSTER": | |
65 | - include_once (dirname(__FILE__) . "/../../classesphp/classe_temas.php"); | |
66 | - $m = new Temas($_SESSION["map_file"], $_POST["tema"]); | |
67 | - $l = $m->mapa->getlayerbyname($_POST["tema"]); | |
68 | - $retorno = $m->removeCluster(); | |
69 | - $m->salva(); | |
70 | - ob_clean(); | |
71 | - if (! $retorno) { | |
72 | - header("HTTP/1.1 500 erro legenda nao disponivel"); | |
73 | - } else { | |
74 | - header("Content-type: application/json"); | |
75 | - echo json_encode($retorno); | |
76 | - } | |
77 | - exit(); | |
78 | - break; | |
79 | - case "CONTAGEMCLASSE": | |
80 | - // apresenta erro com palavras acentuadas | |
81 | - include_once (dirname(__FILE__) . "/../../classesphp/classe_legenda.php"); | |
82 | - $m = new Legenda($_SESSION["map_file"], $_SESSION["locaplic"], $_POST["tema"]); | |
83 | - $retorno = $m->tabelaLegenda("sim"); | |
84 | - $m->salva(); | |
85 | - ob_clean(); | |
86 | - if (! $retorno) { | |
87 | - header("HTTP/1.1 500 erro legenda nao disponivel"); | |
88 | - } else { | |
89 | - header("Content-type: application/json"); | |
90 | - echo json_encode($retorno); | |
91 | - } | |
92 | - exit(); | |
93 | - break; | |
94 | - case "REMOVELABELCLASSE": | |
95 | - include_once (dirname(__FILE__) . "/../../classesphp/classe_temas.php"); | |
96 | - $m = new Temas($_SESSION["map_file"], $_POST["tema"]); | |
97 | - $retorno = $m->removeLabel($_POST["classe"]); | |
98 | - $m->salva(); | |
99 | - ob_clean(); | |
100 | - if (! $retorno) { | |
101 | - header("HTTP/1.1 500 erro legenda nao disponivel"); | |
102 | - } else { | |
103 | - header("Content-type: application/json"); | |
104 | - echo json_encode($retorno); | |
105 | - } | |
106 | - exit(); | |
107 | - break; | |
108 | - case "ADICIONALABELCLASSE": | |
109 | - include_once (dirname(__FILE__) . "/../../classesphp/classe_temas.php"); | |
110 | - $m = new Temas($_SESSION["map_file"], $_POST["tema"]); | |
111 | - $l = $m->mapa->getlayerbyname($_POST["tema"]); | |
112 | - if (empty($_POST["item"])) { | |
113 | - $retorno = false; | |
114 | - } else { | |
115 | - $classe = $l->getclass($_POST["classe"]); | |
116 | - $retorno = $m->adicionaLabel($classe, $_POST["wrap"], $_POST["fonte"], $_POST["tamanho"], $_POST["angulo"], $_POST["fundo"], $_POST["sombra"], $_POST["cor"], $_POST["outlinecolor"], $_POST["shadowcolor"], $_POST["shadowsizex"], $_POST["shadowsizey"], $_POST["force"], $_POST["mindistance"], $_POST["minfeaturesize"], $_POST["offsetx"], $_POST["offsety"], $_POST["partials"], $_POST["position"], "[" . $_POST["item"] . "]"); | |
117 | - $m->salva(); | |
118 | - } | |
119 | - ob_clean(); | |
120 | - if (! $retorno) { | |
121 | - header("HTTP/1.1 500 erro legenda nao disponivel"); | |
122 | - } else { | |
123 | - header("Content-type: application/json"); | |
124 | - echo json_encode($retorno); | |
125 | - } | |
126 | - exit(); | |
127 | - break; | |
128 | - case "ALTERAREPRESENTACAO": | |
129 | - include_once (dirname(__FILE__) . "/../../classesphp/classe_temas.php"); | |
130 | - $m = new Temas($_SESSION["map_file"], $_POST["tema"]); | |
131 | - $retorno = $m->alteraRepresentacao(); | |
132 | - $m->salva(); | |
133 | - ob_clean(); | |
134 | - if (! $retorno) { | |
135 | - header("HTTP/1.1 500 erro legenda nao disponivel"); | |
136 | - } else { | |
137 | - header("Content-type: application/json"); | |
138 | - echo json_encode($retorno); | |
139 | - } | |
140 | - exit(); | |
141 | - break; | |
142 | - case "EDITALEGENDA": | |
143 | - include_once (dirname(__FILE__) . "/../../classesphp/classe_legenda.php"); | |
144 | - $m = new Legenda($_SESSION["map_file"], $_SESSION["locaplic"], $_POST["tema"]); | |
145 | - $retorno = $m->tabelaLegenda(); | |
146 | - ob_clean(); | |
147 | - if (! $retorno) { | |
148 | - header("HTTP/1.1 500 erro legenda nao disponivel"); | |
149 | - } else { | |
150 | - header("Content-type: application/json"); | |
151 | - echo json_encode($retorno); | |
152 | - } | |
153 | - exit(); | |
154 | - break; | |
155 | - case "APLICALEGENDAIMG": | |
156 | - include_once (dirname(__FILE__) . "/../../classesphp/classe_legenda.php"); | |
157 | - $m = new Legenda($_SESSION["map_file"], $_SESSION["locaplic"], $_POST["tema"]); | |
158 | - $retorno = $m->aplicaLegendaImg($_GET["imagem"]); | |
159 | - $m->salva(); | |
160 | - ob_clean(); | |
161 | - if (! $retorno) { | |
162 | - header("HTTP/1.1 500 erro legenda nao disponivel"); | |
163 | - } else { | |
164 | - header("Content-type: application/json"); | |
165 | - echo json_encode($retorno); | |
166 | - } | |
167 | - exit(); | |
168 | - break; | |
169 | - case "APLICAOFFSITE": | |
170 | - include_once (dirname(__FILE__) . "/../../classesphp/classe_temas.php"); | |
171 | - $m = new Temas($_SESSION["map_file"], $_POST["tema"]); | |
172 | - $retorno = $m->mudaOffsite($_GET["offsite"]); | |
173 | - $m->salva(); | |
174 | - ob_clean(); | |
175 | - if (! $retorno) { | |
176 | - header("HTTP/1.1 500 erro legenda nao disponivel"); | |
177 | - } else { | |
178 | - header("Content-type: application/json"); | |
179 | - echo json_encode($retorno); | |
180 | - } | |
181 | - exit(); | |
182 | - break; | |
183 | - | |
184 | - case "APLICAPROCESSOS": | |
185 | - include_once (dirname(__FILE__) . "/../../classesphp/classe_temas.php"); | |
186 | - $m = new Temas($_SESSION["map_file"], $_POST["tema"]); | |
187 | - $retorno = $m->aplicaProcessos($_POST["lista"]); | |
188 | - $m->salva(); | |
189 | - ob_clean(); | |
190 | - if (! $retorno) { | |
191 | - header("HTTP/1.1 500 erro legenda nao disponivel"); | |
192 | - } else { | |
193 | - header("Content-type: application/json"); | |
194 | - echo json_encode($retorno); | |
195 | - } | |
196 | - exit(); | |
197 | - break; | |
198 | - | |
199 | - /* | |
200 | - * Valor: TEMA2SLD | |
201 | - * | |
202 | - * Mostra na tela o SLD de um tema | |
203 | - * | |
204 | - * <Temas->sld> | |
205 | - */ | |
206 | - case "TEMA2SLD": | |
207 | - include_once (dirname(__FILE__) . "/../../classesphp/classe_temas.php"); | |
208 | - $m = new Temas($map_file, $tema); | |
209 | - $sld = $m->sld(); | |
210 | - echo header('Content-Disposition: attachment; filename="' . $tema . '.sld"'); | |
211 | - echo header("Content-type: application/xml"); | |
212 | - echo $m->sld(); | |
213 | - exit(); | |
214 | - break; | |
215 | -} | |
216 | -?> | |
217 | 0 | \ No newline at end of file |
... | ... | @@ -0,0 +1,61 @@ |
1 | +<?php | |
2 | +include_once (dirname(__FILE__) . "/../safe2.php"); | |
3 | +verificaBlFerramentas(basename(dirname(__FILE__)), $_SESSION["i3geoBlFerramentas"], false); | |
4 | +$retorno = ""; | |
5 | +include_once (dirname(__FILE__) . "/../../classesphp/classe_legenda.php"); | |
6 | +$m = new Legenda($_SESSION["map_file"], $_SESSION["locaplic"], $_POST["tema"]); | |
7 | +switch (strtoupper($_GET["funcao"])) { | |
8 | + case "APLICALEGENDAIMG": | |
9 | + $retorno = $m->aplicaLegendaImg($_GET["imagem"]); | |
10 | + $m->salva(); | |
11 | + break; | |
12 | + case "EDITALEGENDA": | |
13 | + $retorno = $m->tabelaLegenda(); | |
14 | + break; | |
15 | + case "CONTAGEMCLASSE": | |
16 | + $retorno = $m->tabelaLegenda("sim"); | |
17 | + $m->salva(); | |
18 | + break; | |
19 | + case "APLICATODASCLASSES": | |
20 | + $retorno = $m->aplicaTodasClasses($_POST["parametro"], $_POST["valor"]); | |
21 | + $m->salva(); | |
22 | + break; | |
23 | + case "APLICAPARAMETRO": | |
24 | + $retorno = $m->aplicaParametro($_POST["classe"], $_POST["estilo"], $_POST["outlinecolor"], $_POST["backgroundcolor"], $_POST["color"], $_POST["symbolname"], $_POST["size"], $_POST["opacidade"], $_POST["width"], $_POST["pattern"], $_POST["angle"], $_POST["minsize"], $_POST["maxsize"], $_POST["offsetx"], $_POST["offsety"]); | |
25 | + $m->salva(); | |
26 | + break; | |
27 | + case "PARAMETROS": | |
28 | + $retorno = $m->pegaParametros($_POST["classe"]); | |
29 | + break; | |
30 | + case "SOBEESTILO": | |
31 | + $retorno = $m->sobeEstilo($_POST["classe"], $_POST["estilo"]); | |
32 | + $m->salva(); | |
33 | + break; | |
34 | + case "DESCEESTILO": | |
35 | + $retorno = $m->desceEstilo($_POST["classe"], $_POST["estilo"]); | |
36 | + $m->salva(); | |
37 | + break; | |
38 | + case "ADICIONAESTILO": | |
39 | + $retorno = $m->adicionaEstilo($_POST["classe"], $_POST["estilo"]); | |
40 | + $m->salva(); | |
41 | + break; | |
42 | + case "EXCLUIESTILO": | |
43 | + $retorno = $m->excluiEstilo($_POST["classe"], $_POST["estilo"]); | |
44 | + $m->salva(); | |
45 | + break; | |
46 | + case "LISTASIMBOLOS": | |
47 | + $retorno = $m->listaSimbolos($_POST["tipo"], $_SESSION["dir_tmp"], $_SESSION["imgdir"], $_POST["onclick"]); | |
48 | + if ($retorno == "") { | |
49 | + $retorno = $m->listaSimbolos($_POST["tipo"], $_SESSION["dir_tmp"], $_SESSION["imgdir"], $_POST["onclick"], 8, 1, true); | |
50 | + } | |
51 | + break; | |
52 | +} | |
53 | +ob_clean(); | |
54 | +if (! $retorno) { | |
55 | + header("HTTP/1.1 500 erro legenda nao disponivel"); | |
56 | +} else { | |
57 | + header("Content-type: application/json"); | |
58 | + echo json_encode($retorno); | |
59 | +} | |
60 | +exit(); | |
61 | +?> | |
0 | 62 | \ No newline at end of file | ... | ... |
ferramentas/legenda/execsymbol.php
... | ... | @@ -1,50 +0,0 @@ |
1 | -<?php | |
2 | -include_once (dirname(__FILE__) . "/../safe2.php"); | |
3 | -verificaBlFerramentas(basename(dirname(__FILE__)), $_SESSION["i3geoBlFerramentas"], false); | |
4 | -$retorno = ""; | |
5 | -include_once (dirname(__FILE__) . "/../../classesphp/classe_legenda.php"); | |
6 | -$m = new Legenda($_SESSION["map_file"], $_SESSION["locaplic"], $_POST["tema"]); | |
7 | -switch (strtoupper($_GET["funcao"])) { | |
8 | - case "APLICATODASCLASSES": | |
9 | - $retorno = $m->aplicaTodasClasses($_POST["parametro"], $_POST["valor"]); | |
10 | - $m->salva(); | |
11 | - break; | |
12 | - case "APLICAPARAMETRO": | |
13 | - $retorno = $m->aplicaParametro($_POST["classe"], $_POST["estilo"], $_POST["outlinecolor"], $_POST["backgroundcolor"], $_POST["color"], $_POST["symbolname"], $_POST["size"], $_POST["opacidade"], $_POST["width"], $_POST["pattern"], $_POST["angle"], $_POST["minsize"], $_POST["maxsize"], $_POST["offsetx"], $_POST["offsety"]); | |
14 | - $m->salva(); | |
15 | - break; | |
16 | - case "PARAMETROS": | |
17 | - $retorno = $m->pegaParametros($_POST["classe"]); | |
18 | - break; | |
19 | - case "SOBEESTILO": | |
20 | - $retorno = $m->sobeEstilo($_POST["classe"], $_POST["estilo"]); | |
21 | - $m->salva(); | |
22 | - break; | |
23 | - case "DESCEESTILO": | |
24 | - $retorno = $m->desceEstilo($_POST["classe"], $_POST["estilo"]); | |
25 | - $m->salva(); | |
26 | - break; | |
27 | - case "ADICIONAESTILO": | |
28 | - $retorno = $m->adicionaEstilo($_POST["classe"], $_POST["estilo"]); | |
29 | - $m->salva(); | |
30 | - break; | |
31 | - case "EXCLUIESTILO": | |
32 | - $retorno = $m->excluiEstilo($_POST["classe"], $_POST["estilo"]); | |
33 | - $m->salva(); | |
34 | - break; | |
35 | - case "LISTASIMBOLOS": | |
36 | - $retorno = $m->listaSimbolos($_POST["tipo"], $_SESSION["dir_tmp"], $_SESSION["imgdir"], $_POST["onclick"]); | |
37 | - if ($retorno == "") { | |
38 | - $retorno = $m->listaSimbolos($_POST["tipo"], $_SESSION["dir_tmp"], $_SESSION["imgdir"], $_POST["onclick"], 8, 1, true); | |
39 | - } | |
40 | - break; | |
41 | -} | |
42 | -ob_clean(); | |
43 | -if (! $retorno) { | |
44 | - header("HTTP/1.1 500 erro legenda nao disponivel"); | |
45 | -} else { | |
46 | - header("Content-type: application/json"); | |
47 | - echo json_encode($retorno); | |
48 | -} | |
49 | -exit(); | |
50 | -?> | |
51 | 0 | \ No newline at end of file |
... | ... | @@ -0,0 +1,95 @@ |
1 | +<?php | |
2 | +include_once (dirname(__FILE__) . "/../safe2.php"); | |
3 | +verificaBlFerramentas(basename(dirname(__FILE__)), $_SESSION["i3geoBlFerramentas"], false); | |
4 | +$retorno = ""; | |
5 | +include_once (dirname(__FILE__) . "/../../classesphp/classe_temas.php"); | |
6 | +$m = new Temas($_SESSION["map_file"], $_POST["tema"]); | |
7 | +switch (strtoupper($_GET["funcao"])) { | |
8 | + case "SALVAPARAMETROSAUTO": | |
9 | + $map = ms_newMapObj($_SESSION["map_file"]); | |
10 | + $layer = $map->getlayerbyname($_POST["tema"]); | |
11 | + $layer->setmetadata("classesitem", $_POST["classesitem"]); | |
12 | + $layer->setmetadata("classesnome", $_POST["classesnome"]); | |
13 | + $layer->setmetadata("classescor", $_POST["classescor"]); | |
14 | + $layer->setmetadata("classessimbolo", $_POST["classessimbolo"]); | |
15 | + $layer->setmetadata("classestamanho", $_POST["classestamanho"]); | |
16 | + $layer->setmetadata("palletefile", $_POST["palletefile"]); | |
17 | + $layer->setmetadata("palletestep", $_POST["palletestep"]); | |
18 | + $layer->setmetadata("cache", "nao"); | |
19 | + $layer->setmetadata("TILES", "nao"); | |
20 | + autoClasses($layer, $map, $_SESSION["locaplic"]); | |
21 | + $layer->setmetadata("classesnome", ""); | |
22 | + $layer->setmetadata("palletefile", ""); | |
23 | + $map->save($_SESSION["map_file"]); | |
24 | + $retorno = true; | |
25 | + break; | |
26 | + case "PARAMETROSAUTO": | |
27 | + $map = ms_newMapObj($_SESSION["map_file"]); | |
28 | + $layer = $map->getlayerbyname($_POST["tema"]); | |
29 | + $retorno = array(); | |
30 | + $retorno["classesitem"] = $layer->getmetadata("classesitem"); | |
31 | + $retorno["classesnome"] = $layer->getmetadata("classesnome"); | |
32 | + $retorno["classescor"] = $layer->getmetadata("classescor"); | |
33 | + $retorno["classessimbolo"] = $layer->getmetadata("classessimbolo"); | |
34 | + $retorno["classestamanho"] = $layer->getmetadata("classestamanho"); | |
35 | + $retorno["palletefile"] = $layer->getmetadata("palletefile"); | |
36 | + $retorno["palletestep"] = $layer->getmetadata("palletestep"); | |
37 | + $sopen = $layer->open(); | |
38 | + if ($sopen != MS_FAILURE) { | |
39 | + $items = $layer->getItems(); | |
40 | + } else { | |
41 | + $items = array(); | |
42 | + } | |
43 | + $retorno["colunas"] = implode(",", $items); | |
44 | + break; | |
45 | + case "APLICARCLUSTER": | |
46 | + $retorno = $m->criaCluster($_POST["group"], $_POST["filter"], $_POST["maxdistance"], $_POST["region"], $_POST["buffer"]); | |
47 | + $m->salva(); | |
48 | + break; | |
49 | + case "REMOVERCLUSTER": | |
50 | + $retorno = $m->removeCluster(); | |
51 | + $m->salva(); | |
52 | + break; | |
53 | + case "REMOVELABELCLASSE": | |
54 | + $retorno = $m->removeLabel($_POST["classe"]); | |
55 | + $m->salva(); | |
56 | + break; | |
57 | + case "ADICIONALABELCLASSE": | |
58 | + $l = $m->mapa->getlayerbyname($_POST["tema"]); | |
59 | + if (empty($_POST["item"])) { | |
60 | + $retorno = false; | |
61 | + } else { | |
62 | + $classe = $l->getclass($_POST["classe"]); | |
63 | + $retorno = $m->adicionaLabel($classe, $_POST["wrap"], $_POST["fonte"], $_POST["tamanho"], $_POST["angulo"], $_POST["fundo"], $_POST["sombra"], $_POST["cor"], $_POST["outlinecolor"], $_POST["shadowcolor"], $_POST["shadowsizex"], $_POST["shadowsizey"], $_POST["force"], $_POST["mindistance"], $_POST["minfeaturesize"], $_POST["offsetx"], $_POST["offsety"], $_POST["partials"], $_POST["position"], "[" . $_POST["item"] . "]"); | |
64 | + $m->salva(); | |
65 | + } | |
66 | + break; | |
67 | + case "ALTERAREPRESENTACAO": | |
68 | + $retorno = $m->alteraRepresentacao(); | |
69 | + $m->salva(); | |
70 | + break; | |
71 | + case "APLICAOFFSITE": | |
72 | + $retorno = $m->mudaOffsite($_GET["offsite"]); | |
73 | + $m->salva(); | |
74 | + break; | |
75 | + case "APLICAPROCESSOS": | |
76 | + $retorno = $m->aplicaProcessos($_POST["lista"]); | |
77 | + $m->salva(); | |
78 | + break; | |
79 | + case "TEMA2SLD": | |
80 | + $sld = $m->sld(); | |
81 | + echo header('Content-Disposition: attachment; filename="' . $tema . '.sld"'); | |
82 | + echo header("Content-type: application/xml"); | |
83 | + echo $m->sld(); | |
84 | + exit(); | |
85 | + break; | |
86 | +} | |
87 | +ob_clean(); | |
88 | +if (! $retorno) { | |
89 | + header("HTTP/1.1 500 erro legenda nao disponivel"); | |
90 | +} else { | |
91 | + header("Content-type: application/json"); | |
92 | + echo json_encode($retorno); | |
93 | +} | |
94 | +exit(); | |
95 | +?> | |
0 | 96 | \ No newline at end of file | ... | ... |
ferramentas/legenda/index.js
... | ... | @@ -158,7 +158,7 @@ i3GEOF.legenda = |
158 | 158 | i3GEO.janela.abreAguarde(); |
159 | 159 | i3GEO.janela._formModal.block(); |
160 | 160 | $.post( |
161 | - i3GEO.configura.locaplic+"/ferramentas/" + i3f._parameters.namespace + "/exec.php", | |
161 | + i3GEO.configura.locaplic+"/ferramentas/" + i3f._parameters.namespace + "/execlegenda.php", | |
162 | 162 | par |
163 | 163 | ) |
164 | 164 | .done( |
... | ... | @@ -306,7 +306,7 @@ i3GEOF.legenda = |
306 | 306 | g_sid: i3GEO.configura.sid, |
307 | 307 | tema: p.tema |
308 | 308 | }; |
309 | - i3f.post({btn: btn, par: par, refresh: false, prog: "exec"}); | |
309 | + i3f.post({btn: btn, par: par, refresh: false, prog: "exectemas"}); | |
310 | 310 | }, |
311 | 311 | adicionaOpacidade : function(btn) { |
312 | 312 | var p = this._parameters, |
... | ... | @@ -328,7 +328,7 @@ i3GEOF.legenda = |
328 | 328 | tema: p.tema, |
329 | 329 | imagem: $i("i3GEOlegendaImg").value |
330 | 330 | }; |
331 | - i3f.post({btn: btn, par: par, refresh: true, prog: "exec"}); | |
331 | + i3f.post({btn: btn, par: par, refresh: true, prog: "execlegenda"}); | |
332 | 332 | }, |
333 | 333 | aplicarOffsite : function(btn) { |
334 | 334 | var p = this._parameters, |
... | ... | @@ -339,7 +339,7 @@ i3GEOF.legenda = |
339 | 339 | tema: p.tema, |
340 | 340 | offsite: $i("i3GEOoffsite").value |
341 | 341 | }; |
342 | - i3f.post({btn: btn, par: par, refresh: true, prog: "exec"}); | |
342 | + i3f.post({btn: btn, par: par, refresh: true, prog: "exectemas"}); | |
343 | 343 | }, |
344 | 344 | paleta : function(btn) { |
345 | 345 | var p = this._parameters, |
... | ... | @@ -529,7 +529,7 @@ i3GEOF.legenda = |
529 | 529 | } |
530 | 530 | } |
531 | 531 | par.lista = lista.join("|"); |
532 | - i3f.post({btn: btn, par: par, refresh: true, prog: "exec"}); | |
532 | + i3f.post({btn: btn, par: par, refresh: true, prog: "exectemas"}); | |
533 | 533 | }, |
534 | 534 | corj : function(obj) { |
535 | 535 | i3GEO.util.abreCor("", obj); |
... | ... | @@ -762,7 +762,7 @@ i3GEOF.legenda = |
762 | 762 | if(par.item == ""){ |
763 | 763 | i3GEO.janela.snackBar({content: $trad("selecionaUmItem",i3GEOF.legenda.dicionario),style: "red"}); |
764 | 764 | } else { |
765 | - i3f.post({btn: false, par: par, refresh: true, prog: "exec"}); | |
765 | + i3f.post({btn: false, par: par, refresh: true, prog: "exectemas"}); | |
766 | 766 | } |
767 | 767 | }, |
768 | 768 | aplicaTodasClasses : function(parametro, id) { |
... | ... | @@ -776,7 +776,7 @@ i3GEOF.legenda = |
776 | 776 | valor: $i(id).value |
777 | 777 | |
778 | 778 | }; |
779 | - i3f.post({btn: false, par: par, refresh: true, prog: "execsymbol"}); | |
779 | + i3f.post({btn: false, par: par, refresh: true, prog: "execlegenda"}); | |
780 | 780 | }, |
781 | 781 | aplicaEstilo : function() { |
782 | 782 | var p = this._parameters, |
... | ... | @@ -804,7 +804,7 @@ i3GEOF.legenda = |
804 | 804 | estilo: p.estilo |
805 | 805 | |
806 | 806 | }; |
807 | - i3f.post({btn: false, par: par, refresh: true, prog: "execsymbol"}); | |
807 | + i3f.post({btn: false, par: par, refresh: true, prog: "execlegenda"}); | |
808 | 808 | }, |
809 | 809 | editaSimbolo : function(id) { |
810 | 810 | i3GEO.guias.mostraGuiaFerramenta("i3GEOlegendaguia3", "i3GEOlegendaguia"); |
... | ... | @@ -820,7 +820,7 @@ i3GEOF.legenda = |
820 | 820 | g_sid: i3GEO.configura.sid, |
821 | 821 | classe: id |
822 | 822 | }; |
823 | - i3f.post({fn: i3GEOF.legenda.montaEditor, btn: false, par: par, refresh: false, prog: "execsymbol"}); | |
823 | + i3f.post({fn: i3GEOF.legenda.montaEditor, btn: false, par: par, refresh: false, prog: "execlegenda"}); | |
824 | 824 | }, |
825 | 825 | montaEditor : function(data) { |
826 | 826 | i3GEO.util.comboItens( |
... | ... | @@ -863,7 +863,7 @@ i3GEOF.legenda = |
863 | 863 | estilo: p.estilo |
864 | 864 | |
865 | 865 | }; |
866 | - i3f.post({fn: i3f.reMontaEditor, btn: true, par: par, refresh: false, prog: "execsymbol"}); | |
866 | + i3f.post({fn: i3f.reMontaEditor, btn: true, par: par, refresh: false, prog: "execlegenda"}); | |
867 | 867 | }, |
868 | 868 | sobeEstilo: function() { |
869 | 869 | var p = this._parameters, |
... | ... | @@ -876,7 +876,7 @@ i3GEOF.legenda = |
876 | 876 | estilo: p.estilo |
877 | 877 | |
878 | 878 | }; |
879 | - i3f.post({fn: i3f.reMontaEditor, btn: true, par: par, refresh: false, prog: "execsymbol"}); | |
879 | + i3f.post({fn: i3f.reMontaEditor, btn: true, par: par, refresh: false, prog: "execlegenda"}); | |
880 | 880 | }, |
881 | 881 | adicionaEstilo: function() { |
882 | 882 | var p = this._parameters, |
... | ... | @@ -889,7 +889,7 @@ i3GEOF.legenda = |
889 | 889 | estilo: p.estilo |
890 | 890 | }; |
891 | 891 | p.estilo = p.estilo + 1; |
892 | - i3f.post({fn: i3f.reMontaEditor, btn: true, par: par, refresh: false, prog: "execsymbol"}); | |
892 | + i3f.post({fn: i3f.reMontaEditor, btn: true, par: par, refresh: false, prog: "execlegenda"}); | |
893 | 893 | }, |
894 | 894 | excluiEstilo: function() { |
895 | 895 | var p = this._parameters, |
... | ... | @@ -902,7 +902,7 @@ i3GEOF.legenda = |
902 | 902 | estilo: p.estilo |
903 | 903 | }; |
904 | 904 | p.estilo = 0; |
905 | - i3f.post({fn: i3f.reMontaEditor, btn: true, par: par, refresh: false, prog: "execsymbol"}); | |
905 | + i3f.post({fn: i3f.reMontaEditor, btn: true, par: par, refresh: false, prog: "execlegenda"}); | |
906 | 906 | }, |
907 | 907 | propriedadesLabels: function() { |
908 | 908 | i3GEO.util.scriptTag( |
... | ... | @@ -925,7 +925,7 @@ i3GEOF.legenda = |
925 | 925 | par.g_sid = i3GEO.configura.sid; |
926 | 926 | par.classe = p.classe; |
927 | 927 | par.item = $i("i3GEOlegendaSelItemLabel").value; |
928 | - i3f.post({btn: btn, par: par, refresh: true, prog: "exec"}); | |
928 | + i3f.post({btn: btn, par: par, refresh: true, prog: "exectemas"}); | |
929 | 929 | }, |
930 | 930 | excluiLabels: function(btn) { |
931 | 931 | var p = this._parameters, |
... | ... | @@ -936,7 +936,7 @@ i3GEOF.legenda = |
936 | 936 | g_sid: i3GEO.configura.sid, |
937 | 937 | classe: p.classe |
938 | 938 | }; |
939 | - i3f.post({btn: true, par: par, refresh: true, prog: "exec"}); | |
939 | + i3f.post({btn: true, par: par, refresh: true, prog: "exectemas"}); | |
940 | 940 | }, |
941 | 941 | mostraEstilo : function() { |
942 | 942 | var linha, tipoLayer, d, p, cp, mustache = {}; |
... | ... | @@ -989,7 +989,7 @@ i3GEOF.legenda = |
989 | 989 | g_sid: i3GEO.configura.sid, |
990 | 990 | onclick: 'i3GEOF.legenda.aplicaSimbolo(this)', |
991 | 991 | tipo: tipoLayer |
992 | - }, refresh: false, prog: "execsymbol", fn: i3GEOF.legenda.listaSimbolos}); | |
992 | + }, refresh: false, prog: "execlegenda", fn: i3GEOF.legenda.listaSimbolos}); | |
993 | 993 | }, |
994 | 994 | listaSimbolos : function(data) { |
995 | 995 | $i("i3GEOlegendasimbolos").innerHTML = data; |
... | ... | @@ -1043,7 +1043,7 @@ i3GEOF.legenda = |
1043 | 1043 | tema: i3GEOF.legenda._parameters.tema, |
1044 | 1044 | }, |
1045 | 1045 | refresh: false, |
1046 | - prog: "exec", | |
1046 | + prog: "execlegenda", | |
1047 | 1047 | fn: monta |
1048 | 1048 | }); |
1049 | 1049 | }, |
... | ... | @@ -1073,7 +1073,7 @@ i3GEOF.legenda = |
1073 | 1073 | fn: function() { |
1074 | 1074 | i3GEOF.legenda.aposAlterarLegenda(); |
1075 | 1075 | i3GEOF.legenda.montaCombosItens(); |
1076 | - },btn: true, par: par, refresh: false, prog: "exec" | |
1076 | + },btn: true, par: par, refresh: false, prog: "exectemas" | |
1077 | 1077 | }); |
1078 | 1078 | }, |
1079 | 1079 | removerCluster : function(btn){ |
... | ... | @@ -1088,7 +1088,7 @@ i3GEOF.legenda = |
1088 | 1088 | fn: function() { |
1089 | 1089 | i3GEOF.legenda.aposAlterarLegenda(); |
1090 | 1090 | i3GEOF.legenda.montaCombosItens(); |
1091 | - },btn: true, par: par, refresh: false, prog: "exec" | |
1091 | + },btn: true, par: par, refresh: false, prog: "exectemas" | |
1092 | 1092 | }); |
1093 | 1093 | }, |
1094 | 1094 | montaCombosItens : function(){ |
... | ... | @@ -1146,7 +1146,7 @@ i3GEOF.legenda = |
1146 | 1146 | $i("i3GEOlegendaAutoclassestamanho").value = data.classestamanho; |
1147 | 1147 | $i("i3GEOlegendaAutopalletefile").value = data.palletefile; |
1148 | 1148 | $i("i3GEOlegendaAutopalletestep").value = data.palletestep; |
1149 | - },btn: false, par: par, refresh: false, prog: "exec" | |
1149 | + },btn: false, par: par, refresh: false, prog: "exectemas" | |
1150 | 1150 | }); |
1151 | 1151 | }, |
1152 | 1152 | salvaParametrosAuto: function(btn){ |
... | ... | @@ -1164,7 +1164,7 @@ i3GEOF.legenda = |
1164 | 1164 | palletefile: $i("i3GEOlegendaAutopalletefile").value, |
1165 | 1165 | palletestep: $i("i3GEOlegendaAutopalletestep").value |
1166 | 1166 | }; |
1167 | - i3f.post({btn: true, par: par, refresh: true, prog: "exec"}); | |
1167 | + i3f.post({btn: true, par: par, refresh: true, prog: "exectemas"}); | |
1168 | 1168 | } |
1169 | 1169 | }; |
1170 | 1170 | //aplica ao codigo i3GEOF definicoes feitas na interface do mapa | ... | ... |