From 240f4500e264e82cdd81b0484ac219079931fe72 Mon Sep 17 00:00:00 2001
From: Edmar Moretti
Para ver todos os parâmetros: i3geo/mashups/openlayers.php
Exemplo: todas as opções e um tema adicionado openlayers.php?temas=biomashp&largura=600
+Exemplo: zoom para uma região openlayers.php?temas=biomashp&largura=600&mapext=-68.39967 -12.16172 -62.67402 -5.366808
Exemplo: Botões principais e barra de zoom maior openlayers.php?temas=biomashp&largura=600&botoes=pan,zoombox,zoomtot,distancia,area,identifica&numzoomlevels=10
Exemplo: Inclusão de pontos openlayers.php?temas=biomashp&largura=600&pontos=-54 -12 -56 -15
Exemplo: Camada adicional como fundo openlayers.php?temas=biomashp&largura=600&fundo=biomashp
diff --git a/mashups/openlayers.js.php b/mashups/openlayers.js.php
index e78b002..189d01c 100644
--- a/mashups/openlayers.js.php
+++ b/mashups/openlayers.js.php
@@ -95,7 +95,8 @@ i3GEO.editorOL = {
new OpenLayers.Control.KeyboardDefaults()
],
numzoom: 12,
- maxext: new OpenLayers.Bounds(-76.5125927,-39.3925675209,-29.5851853,9.49014852081),
+ maxext: "",
+ mapext: new OpenLayers.Bounds(-76.5125927,-39.3925675209,-29.5851853,9.49014852081),
mapa: "",
inicia: function(){
var alayers = [],
@@ -151,10 +152,14 @@ i3GEO.editorOL = {
{alert("O objeto i3GEO.editorOL.mapa precisa ser criado com new OpenLayers.Map()");return;}
if(i3GEO.editorOL.maxext !== ""){
i3GEO.editorOL.mapa.setOptions({
- numZoomLevels: i3GEO.editorOL.numzoom,
maxExtent: i3GEO.editorOL.maxext
});
}
+ if(i3GEO.editorOL.numzoom !== ""){
+ i3GEO.editorOL.mapa.setOptions({
+ numZoomLevels: i3GEO.editorOL.numzoom
+ });
+ }
for(i=0;i