forked from MapComplete/MapComplete
Zoom to current location if it is in view
This commit is contained in:
parent
92b311bffa
commit
e2419c19cd
2 changed files with 23 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue