-
-
Notifications
You must be signed in to change notification settings - Fork 172
flutter_map issue #138
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
Comments
I just tested with the example, I'm somehow getting a different issue. Sometimes after zooming in/out, the map just disappears for me, leaving just a grey rectangle. I didn't run into the zoom reset issue, since the map disappears so early. Maybe what manifests for you as the zoom resetting manifests itself for me as the map greying out? Either way, weird issue I can zoom in using double taps / double clicks just fine though. Additionally, The Pi 7inch screens touch detection isn't that high resolution, so two very close touchpoints could get merged into one. Don't know how that could cause the issue though. BTW: The ui in your app looks very good. I'm actually using flutter-pi to build a car "on-board" computer and I wish my UI would look that nice, lol |
Ok, so this issue is probably created by About my UI: Thanks! If I can help you with anything just contact me. |
I wouldn't exclude that flutter-pi is creating the problem. Though I think it's likely the problem is on the flutter side. Somehow I now get errors with flutter_gallery too. (I have absolutely no idea why I didn't get them before) The error & stacktrace is the following:
So the I think it'd be cool to build an overlay for the zooming widget, to see the touch positions. |
Here's a touch position overlay I built: https://gist.github.com/ardera/6b9787b7ae26bfb3e42459728dea4de3 I used it with flutter_gallery, and as predicted, the error message is logged at the exact time the two touch positions get merged into one when they are too close. I also tested with flutter_map but I didn't notice any pattern there. However I noticed the weird jumping / zooming doesn't ocurr when your first lift one finger, and then the other. Though even then, it sometimes ocurrs too if you lift the first finger too soon after the actual zooming gesture. |
I tested now with your position overlay. In
I also tested this but for me it didn't change anything. Sometimes the map still zoomed completely out. I also wanna mention that I am not using the official RaspberryPi touch display (my display). But as I am getting quite similar results I don't think this makes a lot of difference here. |
So I finally switched off from the |
I want to use flutter_map in my project, however I run into some problems. I already created a issue at the flutter_map repo so read this first.
Maybe the problem of the zoom resetting is related to the touch input of flutter-pi. Maybe someone can try the flutter_map example and share his experience?
The text was updated successfully, but these errors were encountered: