[Mapbender-commits] r10253 - trunk/mapbender/http/geoportal

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Sep 17 01:45:09 PDT 2019


Author: armin11
Date: 2019-09-17 01:45:09 -0700 (Tue, 17 Sep 2019)
New Revision: 10253

Modified:
   trunk/mapbender/http/geoportal/gaz_geom_mobile.php
Log:
Fix for zoom to address by bkgGazetteer

Modified: trunk/mapbender/http/geoportal/gaz_geom_mobile.php
===================================================================
--- trunk/mapbender/http/geoportal/gaz_geom_mobile.php	2019-09-16 12:00:56 UTC (rev 10252)
+++ trunk/mapbender/http/geoportal/gaz_geom_mobile.php	2019-09-17 08:45:09 UTC (rev 10253)
@@ -105,12 +105,12 @@
 	$returnObject->geonames[$countGeonames]->maxx = str_replace(',', '.',$feature->bbox[2]);
 	$returnObject->geonames[$countGeonames]->maxy = str_replace(',', '.',$feature->bbox[3]);
 	//slight adoption of zoombox for addresses - +/- 
-	/*if ($searchEPSG == "4326") {
-	    $returnObject->geonames[$countGeonames]->minx = $returnObject->geonames[$countGeonames]->minx - 0.0004;
-	    $returnObject->geonames[$countGeonames]->miny = $returnObject->geonames[$countGeonames]->miny - 0.0004;
-	    $returnObject->geonames[$countGeonames]->maxx = $returnObject->geonames[$countGeonames]->maxx + 0.0004;
-	    $returnObject->geonames[$countGeonames]->maxy = $returnObject->geonames[$countGeonames]->maxy + 0.0004;
-	}*/
+	if ($searchEPSG == "4326") {
+	    $returnObject->geonames[$countGeonames]->minx = (string)($returnObject->geonames[$countGeonames]->minx - 0.0004);
+	    $returnObject->geonames[$countGeonames]->miny = (string)($returnObject->geonames[$countGeonames]->miny - 0.0004);
+	    $returnObject->geonames[$countGeonames]->maxx = (string)($returnObject->geonames[$countGeonames]->maxx + 0.0004);
+	    $returnObject->geonames[$countGeonames]->maxy = (string)($returnObject->geonames[$countGeonames]->maxy + 0.0004);
+	}
 	$countGeonames++;
 }
 $returnObject->totalResultsCount = $countGeonames;



More information about the Mapbender_commits mailing list