mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2026-01-13 10:55:17 +01:00
Add support for distance filter for the marker layer.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user