Zoom to current location if it is in view

This commit is contained in:
Pieter Vander Vennet 2022-12-24 02:12:22 +01:00
parent 92b311bffa
commit e2419c19cd
2 changed files with 23 additions and 3 deletions

View file

@ -14,7 +14,7 @@ export default class RightControls extends Combine {
geolocationHandler: GeoLocationHandler
) {
const geolocationButton = new Toggle(
new MapControlButton(new GeolocationControl(geolocationHandler), {
new MapControlButton(new GeolocationControl(geolocationHandler, state), {
dontStyle: true,
}).SetClass("p-1"),
undefined,