Replies: 2 comments 1 reply
-
The toScreenLocation method is giving me decent coordinates on iOS but not Android. |
Beta Was this translation helpful? Give feedback.
0 replies
-
... for anyone else encountering this, it's answered here:
... but after I got this working, I realized my custom painter with the circle will be over all map markers, so I might just go with markers instead of circles for this. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I was hoping someone could give me some pointers...
I'm trying to draw a circle on the map that represents a latitude/longitude/accuracy from an external device.
At first, I tried the circle layer. That has circles specified in pixels, so I converted that to meters, and that worked fine. However, clearing and re-adding the circle, when the map was moved or I received a new location, soon led to memory issues. I then tried to create the circle once and just update its options, but that didn't update the circle— it stayed in the old position with the old pixel radius.
I then tried to create my own custom painter to make this circle, and that mostly works. The map controller toScreenLocation method isn't giving me quite the right pixel coordinates; when my location is centered, for my test case, it's returning an offset for that location that is down and to the right of the map center.
This sounds like this is something which has probably been solved already; can someone tell me what I'm doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions