Update zoom param

This commit is contained in:
philipp lang 2025-07-15 10:49:13 +02:00
parent 87300623a3
commit 03340280d0
1 changed files with 3 additions and 3 deletions

View File

@ -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,
]);
}
}