[Mapbender-commits] r7049 - trunk/mapbender/http/plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Oct 18 11:05:18 EDT 2010
Author: christoph
Date: 2010-10-18 08:05:18 -0700 (Mon, 18 Oct 2010)
New Revision: 7049
Modified:
trunk/mapbender/http/plugins/ol_wms.php
Log:
openlayers: set max extent to extent of first wms
Modified: trunk/mapbender/http/plugins/ol_wms.php
===================================================================
--- trunk/mapbender/http/plugins/ol_wms.php 2010-10-18 15:04:48 UTC (rev 7048)
+++ trunk/mapbender/http/plugins/ol_wms.php 2010-10-18 15:05:18 UTC (rev 7049)
@@ -55,14 +55,14 @@
for ($i = 0; $i < count($mywms->objLayer[0]->layer_epsg); $i++) {
$rootLayerEpsg = $mywms->objLayer[0]->layer_epsg[$i];
if ($rootLayerEpsg["epsg"] === "EPSG:4326") {
- echo "console.log(ol_map.maxExtent);";
+ echo "console.log(ol_map.getMaxExtent());";
echo "ol_map.setOptions({maxExtent: new OpenLayers.Bounds(" .
$rootLayerEpsg["minx"] . "," .
$rootLayerEpsg["miny"] . "," .
$rootLayerEpsg["maxx"] . "," .
$rootLayerEpsg["maxy"] .
")});";
- echo "console.log(ol_map.maxExtent);";
+ echo "console.log(ol_map.getMaxExtent());";
}
}
}
More information about the Mapbender_commits
mailing list