WhirlyGlobe
WhirlyGlobe copied to clipboard
Can we have Marker Annotations on Android (like on IOS Maply)?
I have used the Maply Marker Annotations on my IOS version of my app, but I can not see the equivalent functionality in the Maply Android port.
Do you have plans to port it over to Android version of library?
Source: IOS tutorial showing marker annotations: http://mousebird.github.io/WhirlyGlobe/tutorial/ios/screen_marker_selection.html
We started, but they don't work so well. Overlaying and tracking Views on top of an OpenGL ES based view in Android is incredibly dodgy.
My suggestion it to make a single popup when you need it. Otherwise use ScreenMarkers.
Otherwise use ScreenMarkers.
There's a problem with this solution, after tap 4 or 5 times on ScreenMarkers these just don't work anymore.
My idea is that the problem is related in the way how threads are managed and the result is never posted on UI thread. Because all taps are intercepted and the addScreenMarker or removeObject methods are called.
Another way to check that is a problem related with thread management is that, let's say, I'm trying to add a ScreenMarker and a label (ScreenMarker) as you suggested, but only one is rendered. Then suppose that the label has an offset, sometimes the ScreenMarker is added in the place where the label should be and vice-versa. Which mean that when it happens that the thread posts the result on UI layer this got messed during the process.
Any idea or plan to solve this issue?
If you're adding and removing screenMarkers in an interactive way, be sure to use the thread mode setting at the end of the call. It needs to be set to Current and then the changes will take place immediately.