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([
|
return '/osm-static-maps/?' . http_build_query([
|
||||||
'geojson' => json_encode(['type' => 'Point', 'coordinates' => [$this->lon, $this->lat]]),
|
'geojson' => json_encode(['type' => 'Point', 'coordinates' => [$this->lon, $this->lat]]),
|
||||||
'zoom' => 20,
|
'zoom' => $zoom,
|
||||||
'maxZoom' => 20,
|
'maxZoom' => $zoom,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue