-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
[google_maps_flutter_web] The google maps widget doesn't behave as the mobile version (polyline) #86349
Comments
@MarkAlexanderDev |
I've just tried and I get the same result :( |
@MarkAlexanderDev |
Sure, thank you for your help
|
I came up with a complete code sample based on your code above, but getting compile error on code sample
|
Sorry, I forgot to provide it. It's a class I use to store data from my API:
|
@MarkAlexanderDev |
Sorry for the late answer @darshankawar, I created a GitHub repository to isolate the issue. You should be able to test it easily: https://github.com/MarkAlexanderDev/google_maps_flutter_web_isuue /!\ Don't forget to replace the API key of google maps in the AndroidManifest and in the Index.html. |
Thanks for the repo. I see the same behavior using latest stable version on web.
flutter doctor -v
Cc: @ditman |
I'm going to try and reproduce/minimize this example even further. I suspect it has to do with the polyline points not being in the correct order (and mobile sorting them before painting them), but I'm not sure entirely sure! (something similar happened with polygons and holes) This might also be an issue with passing the polylines as a prop of the map, and not something added later through the controller, we've had a couple of issues like that in the past with other geometries. |
This seems to be a bug in the implementation of Dammyololade/flutter_polyline_points#40 (comment) I just applied the workaround above and got this when decoding the string: I'm going to close this as an issue for flutter_polyline_points, I guess they should fix it in their package! |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
I'm currently working on a Flutter application mobile/web and I have an issue with the "google_maps_flutter" package. My goal is to display a map with a course drawn thanks to a polyline.
Here is a screenshot of the Android version which is working as expected :
Now, we have the web version which displays the Polyline as a straight line heading to the north :
Here is the code sample of my
GoogleMap
widget :Thank you in advance for your time 🙏
The text was updated successfully, but these errors were encountered: