Commit f0a87e636677fce0feff733f556a0b870d02d898
1 parent
e49d33eb
Exists in
master
and in
6 other branches
Correção na função de criação de layers do tipo anotação para evitar o uso de op…
…acity 100, que estava gerando erro nas versões mais novas do Mapserer
Showing
2 changed files
with
4 additions
and
2 deletions
Show diff stats
classesphp/classe_temas.php
... | ... | @@ -914,7 +914,7 @@ $wkt - boolean indicando se $xy e um WKT |
914 | 914 | $pinlayer->setmetadata("TEMA",$texto); |
915 | 915 | $pinlayer->setmetadata("tiles","nao"); |
916 | 916 | $pinlayer->set("type",MS_LAYER_POINT); |
917 | - $pinlayer->set("opacity","100"); | |
917 | + //$pinlayer->set("opacity","100"); | |
918 | 918 | break; |
919 | 919 | } |
920 | 920 | } | ... | ... |
classesphp/mapa_controle.php
... | ... | @@ -267,6 +267,7 @@ include_once ("classe_estatistica.php"); |
267 | 267 | $protocolo = explode("/", $_SERVER['SERVER_PROTOCOL']); |
268 | 268 | $protocolo = strtolower($protocolo[0]) . '://' . $_SERVER['HTTP_HOST']; // $_SERVER['SERVER_NAME'] .":". $_SERVER['SERVER_PORT']; |
269 | 269 | $urli3geo = str_replace("/classesphp/mapa_controle.php", "", $protocolo . $_SERVER["PHP_SELF"]); |
270 | + | |
270 | 271 | // |
271 | 272 | // inserido na versão 4.6 |
272 | 273 | // |
... | ... | @@ -276,13 +277,13 @@ if (! isset($locaplic)) { |
276 | 277 | // |
277 | 278 | // substitui a string de conexão |
278 | 279 | // |
279 | - | |
280 | 280 | if ($funcao != "recuperamapa" && $funcao != "TEMA2SLD") { |
281 | 281 | if (! substituiCon($map_file, $postgis_mapa)) { |
282 | 282 | cpjson("erro", $cp); |
283 | 283 | return; |
284 | 284 | } |
285 | 285 | } |
286 | + | |
286 | 287 | // |
287 | 288 | // faz a busca da função que deve ser executada |
288 | 289 | // |
... | ... | @@ -1070,6 +1071,7 @@ switch (strtoupper($funcao)) { |
1070 | 1071 | * <Temas->insereFeature> |
1071 | 1072 | */ |
1072 | 1073 | case "INSEREFEATURE": |
1074 | + | |
1073 | 1075 | include_once ("classe_temas.php"); |
1074 | 1076 | copiaSeguranca($map_file); |
1075 | 1077 | $m = new Temas($map_file, ""); | ... | ... |