Update zoom param
This commit is contained in:
parent
87300623a3
commit
03340280d0
|
@ -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,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue