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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Sep 12 05:26:34 PDT 2019


Author: armin11
Date: 2019-09-12 05:26:34 -0700 (Thu, 12 Sep 2019)
New Revision: 10242

Modified:
   trunk/mapbender/http/geoportal/gaz_geom_mobile.php
Log:
Alter zoomfactor for results from bkgGazetteer slightly

Modified: trunk/mapbender/http/geoportal/gaz_geom_mobile.php
===================================================================
--- trunk/mapbender/http/geoportal/gaz_geom_mobile.php	2019-09-12 11:36:25 UTC (rev 10241)
+++ trunk/mapbender/http/geoportal/gaz_geom_mobile.php	2019-09-12 12:26:34 UTC (rev 10242)
@@ -104,6 +104,13 @@
 	$returnObject->geonames[$countGeonames]->miny = str_replace(',', '.',$feature->bbox[1]);
 	$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.0002;
+	    $returnObject->geonames[$countGeonames]->miny = $returnObject->geonames[$countGeonames]->miny - 0.0002;
+	    $returnObject->geonames[$countGeonames]->maxx = $returnObject->geonames[$countGeonames]->maxx + 0.0002;
+	    $returnObject->geonames[$countGeonames]->maxy = $returnObject->geonames[$countGeonames]->maxy + 0.0002;
+	}
 	$countGeonames++;
 }
 $returnObject->totalResultsCount = $countGeonames;



More information about the Mapbender_commits mailing list