diff --git a/src/Point.php b/src/Point.php index af3f5a9..6353da4 100644 --- a/src/Point.php +++ b/src/Point.php @@ -19,12 +19,12 @@ class Point extends Data ]); } - public function markerUrl(): string + public function markerUrl(string $zoom = 20): string { return '/osm-static-maps/?' . http_build_query([ 'geojson' => json_encode(['type' => 'Point', 'coordinates' => [$this->lon, $this->lat]]), - 'zoom' => 20, - 'maxZoom' => 20, + 'zoom' => $zoom, + 'maxZoom' => $zoom, ]); } }