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,7 +914,7 @@ $wkt - boolean indicando se $xy e um WKT | ||
914 | $pinlayer->setmetadata("TEMA",$texto); | 914 | $pinlayer->setmetadata("TEMA",$texto); |
915 | $pinlayer->setmetadata("tiles","nao"); | 915 | $pinlayer->setmetadata("tiles","nao"); |
916 | $pinlayer->set("type",MS_LAYER_POINT); | 916 | $pinlayer->set("type",MS_LAYER_POINT); |
917 | - $pinlayer->set("opacity","100"); | 917 | + //$pinlayer->set("opacity","100"); |
918 | break; | 918 | break; |
919 | } | 919 | } |
920 | } | 920 | } |
classesphp/mapa_controle.php
@@ -267,6 +267,7 @@ include_once ("classe_estatistica.php"); | @@ -267,6 +267,7 @@ include_once ("classe_estatistica.php"); | ||
267 | $protocolo = explode("/", $_SERVER['SERVER_PROTOCOL']); | 267 | $protocolo = explode("/", $_SERVER['SERVER_PROTOCOL']); |
268 | $protocolo = strtolower($protocolo[0]) . '://' . $_SERVER['HTTP_HOST']; // $_SERVER['SERVER_NAME'] .":". $_SERVER['SERVER_PORT']; | 268 | $protocolo = strtolower($protocolo[0]) . '://' . $_SERVER['HTTP_HOST']; // $_SERVER['SERVER_NAME'] .":". $_SERVER['SERVER_PORT']; |
269 | $urli3geo = str_replace("/classesphp/mapa_controle.php", "", $protocolo . $_SERVER["PHP_SELF"]); | 269 | $urli3geo = str_replace("/classesphp/mapa_controle.php", "", $protocolo . $_SERVER["PHP_SELF"]); |
270 | + | ||
270 | // | 271 | // |
271 | // inserido na versão 4.6 | 272 | // inserido na versão 4.6 |
272 | // | 273 | // |
@@ -276,13 +277,13 @@ if (! isset($locaplic)) { | @@ -276,13 +277,13 @@ if (! isset($locaplic)) { | ||
276 | // | 277 | // |
277 | // substitui a string de conexão | 278 | // substitui a string de conexão |
278 | // | 279 | // |
279 | - | ||
280 | if ($funcao != "recuperamapa" && $funcao != "TEMA2SLD") { | 280 | if ($funcao != "recuperamapa" && $funcao != "TEMA2SLD") { |
281 | if (! substituiCon($map_file, $postgis_mapa)) { | 281 | if (! substituiCon($map_file, $postgis_mapa)) { |
282 | cpjson("erro", $cp); | 282 | cpjson("erro", $cp); |
283 | return; | 283 | return; |
284 | } | 284 | } |
285 | } | 285 | } |
286 | + | ||
286 | // | 287 | // |
287 | // faz a busca da função que deve ser executada | 288 | // faz a busca da função que deve ser executada |
288 | // | 289 | // |
@@ -1070,6 +1071,7 @@ switch (strtoupper($funcao)) { | @@ -1070,6 +1071,7 @@ switch (strtoupper($funcao)) { | ||
1070 | * <Temas->insereFeature> | 1071 | * <Temas->insereFeature> |
1071 | */ | 1072 | */ |
1072 | case "INSEREFEATURE": | 1073 | case "INSEREFEATURE": |
1074 | + | ||
1073 | include_once ("classe_temas.php"); | 1075 | include_once ("classe_temas.php"); |
1074 | copiaSeguranca($map_file); | 1076 | copiaSeguranca($map_file); |
1075 | $m = new Temas($map_file, ""); | 1077 | $m = new Temas($map_file, ""); |