From 03340280d0ada105cc5ecf3f85f0707a4afd4132 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Tue, 15 Jul 2025 10:49:13 +0200 Subject: [PATCH] Update zoom param --- src/Point.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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, ]); } }