mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
@@ -149,6 +149,10 @@ class Geocode
|
|||||||
|
|
||||||
private function viewboxImportanceFactor($fX, $fY)
|
private function viewboxImportanceFactor($fX, $fY)
|
||||||
{
|
{
|
||||||
|
if (!$this->aViewBox) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
$fWidth = ($this->aViewBox[2] - $this->aViewBox[0])/2;
|
$fWidth = ($this->aViewBox[2] - $this->aViewBox[0])/2;
|
||||||
$fHeight = ($this->aViewBox[3] - $this->aViewBox[1])/2;
|
$fHeight = ($this->aViewBox[3] - $this->aViewBox[1])/2;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user