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

Android mapsforge marker displaced #1138

Closed
MDKPredator opened this issue Nov 29, 2019 · 3 comments
Labels
bug
Milestone

Comments

@MDKPredator
Copy link

@MDKPredator MDKPredator commented Nov 29, 2019

I was having problems with my application because I saw that the markers were displaced as I zoomed in and out, so I decided to install the mapsforge examples.

When I tested them on my Android 9, I discovered that the problem was still there. In the screenshots you can see how the coordinates shown are different as I zoom.

In the screenshots you can see how the position of the marker changes and the coordinates returned by the example are different from the original protected LatLong latLong1 = new LatLong(52.5, 13.4);

This doesn't happen to me in Android version 6 and earlier.

Photo 1
Photo 2
Photo 3
Photo 4

@devemux86 devemux86 added the bug label Nov 30, 2019
@devemux86 devemux86 added this to the 0.13.0 milestone Nov 30, 2019
@devemux86

This comment has been minimized.

Copy link
Collaborator

@devemux86 devemux86 commented Nov 30, 2019

Seems a problem at drawables to bitmaps conversion on newer Android (BitmapDrawable.getBitmap).
We could use a simpler bitmap read and avoid all that code workarounds.

Mapsforge

@devemux86

This comment has been minimized.

Copy link
Collaborator

@devemux86 devemux86 commented Nov 30, 2019

In the screenshots you can see how the position of the marker changes and the coordinates returned by the example are different from the original protected LatLong latLong1 = new LatLong(52.5, 13.4);

By the way the displayed coordinates in OverlayMapViewer is the geographic position of the tap,
not the position of the marker.

@devemux86 devemux86 closed this in c213132 Nov 30, 2019
devemux86 added a commit that referenced this issue Nov 30, 2019
@MDKPredator

This comment has been minimized.

Copy link
Author

@MDKPredator MDKPredator commented Nov 30, 2019

Seems a problem at drawables to bitmaps conversion on newer Android (BitmapDrawable.getBitmap). We could use a simpler bitmap read and avoid all that code workarounds.

Perfect, thank you very much.

By the way the displayed coordinates in OverlayMapViewer is the geographic position of the tap,
not the position of the marker.

And thank you again for the clarification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.