]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/reverse.php
UI: the result outline (geojson/polygon) now lets the map handle its clicks
[nominatim.git] / website / reverse.php
index 79a950124d8e077f7ed98418d18073d73ddec9fd..fd1f5c27c2f7cb43683d4315dee6bc5f67da67d9 100755 (executable)
                $oPlaceLookup->setPolygonSimplificationThreshold($fThreshold);
 
                $fRadius = $fDiameter = getResultDiameter($aPlace);
-               $aOutlineResult = $oPlaceLookup->getOutlines($aPlace['place_id'],$aPlace['lon'],$aPlace['lat'],$fRadius);
+               $aOutlineResult = $oPlaceLookup->getOutlines($aPlace['place_id'], $aPlace['lon'], $aPlace['lat'], $fRadius);
 
-               $aPlace = array_merge($aPlace, $aOutlineResult);
+               if ($aOutlineResult)
+               {
+                       $aPlace = array_merge($aPlace, $aOutlineResult);
+               }
        }
        else
        {