[Mapbender-commits] r9614 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Sep 30 02:44:11 PDT 2016


Author: armin11
Date: 2016-09-30 02:44:11 -0700 (Fri, 30 Sep 2016)
New Revision: 9614

Modified:
   trunk/mapbender/http/javascripts/initWmcObj.php
Log:
Fix for geojson get api with no real extent (e.g. one point) - defaults offset to 100m

Modified: trunk/mapbender/http/javascripts/initWmcObj.php
===================================================================
--- trunk/mapbender/http/javascripts/initWmcObj.php	2016-09-30 08:28:10 UTC (rev 9613)
+++ trunk/mapbender/http/javascripts/initWmcObj.php	2016-09-30 09:44:11 UTC (rev 9614)
@@ -481,6 +481,9 @@
 	//$i++;
 	}
 	if ($zoomToExtent == 'true') {
+		if ($minx == $maxx || $miny = $maxy) {
+			$offset = 100;
+		}
 		$minx = min($longitudes);
 		$miny = min($latitudes);
 		$maxx = max($longitudes);



More information about the Mapbender_commits mailing list