Commit f9da49cf9ea27c990fa66cf8359e06054e19396d
1 parent
f7f8261d
Exists in
master
and in
7 other branches
--no commit message
Showing
2 changed files
with
6 additions
and
0 deletions
Show diff stats
mashups/openlayers.php
mashups/osm.php
| ... | ... | @@ -15,6 +15,7 @@ if(!empty($desligacache)){ |
| 15 | 15 | if(empty($opacidade)){ |
| 16 | 16 | $opacidade = 1; |
| 17 | 17 | } |
| 18 | + | |
| 18 | 19 | // |
| 19 | 20 | //verifica se em cada camada deve ser inserido um parametro aleatorio para evitar cache de imagem do lado do cliente |
| 20 | 21 | // |
| ... | ... | @@ -60,6 +61,8 @@ if(!isset($temas)){ |
| 60 | 61 | ajuda(); |
| 61 | 62 | } |
| 62 | 63 | if(!isset($mapext)){ |
| 64 | + $versao = versao(); | |
| 65 | + $versao = $versao["principal"]; | |
| 63 | 66 | if(isset($base) && $base != ""){ |
| 64 | 67 | if(file_exists($base)){ |
| 65 | 68 | $f = $base; |
| ... | ... | @@ -96,6 +99,7 @@ if(!isset($mapext)){ |
| 96 | 99 | $mapext = $c->minx.",".$c->miny.",".$c->maxx.",".$c->maxy; |
| 97 | 100 | } |
| 98 | 101 | } |
| 102 | + | |
| 99 | 103 | // problema na versão 211 do OpenLayers. Tamanho em % não é |
| 100 | 104 | // aceito |
| 101 | 105 | // if(!isset($largura)) | ... | ... |