Add support for distance filter for the marker layer.

This commit is contained in:
David Molineus
2018-10-30 10:48:38 +01:00
parent 314e2d21ee
commit 2108de32d9
4 changed files with 74 additions and 13 deletions

View File

@@ -93,4 +93,24 @@ class DistanceFilter implements Filter
'center' => $this->center,
];
}
/**
* Get the center coordinate.
*
* @return LatLng
*/
public function getCenter(): LatLng
{
return $this->center;
}
/**
* Get the distance radius.
*
* @return int
*/
public function getRadius(): int
{
return $this->radius;
}
}