Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] My location button not working on webkit based browsers #501

Open
Turtle0601 opened this issue Sep 10, 2024 · 1 comment
Open

[BUG] My location button not working on webkit based browsers #501

Turtle0601 opened this issue Sep 10, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Turtle0601
Copy link

Platforms

web

Version of flutter maplibre_gl

latest

Bug Description

We using the libary for web deployment, trying to enable userlocation (myLocation) we find an issue with webkit based browsers safari-macos, safari-ios, firefox-ios, chrome-ios.

Steps to Reproduce

  • run the example project for web flutter run -d chrome
  • copy paste the url in safari
  • then go to user-interface
  • click once on change to MyLocationTrackingMode.tracking
  • click on the myLocationButton

Expected Results

(actual behavior on chrome/firefox non-webkit browsers)

  • the permisson dialog apears asking for location permission
  • the MyLocationButton rotates blue
  • when granted the map view animats to userLocation

Actual Results

  • the icon on the button turns to red and rotates
  • no permission dialog, no location request
  • no error logs in console

Code Sample

We can reproduce this issue with every mapLibreMap-widget and the following settings:

myLocationEnabled: true,
myLocationRenderMode: MyLocationRenderMode.compass,
myLocationTrackingMode: MyLocationTrackingMode.tracking,
@Turtle0601 Turtle0601 added the bug Something isn't working label Sep 10, 2024
@matthiaszarzecki
Copy link

matthiaszarzecki commented Sep 11, 2024

Yes, I'd like this updated too! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants