-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[Android] Custom Icon Drift When Map Is Moving and Unable to Change CustomIcon Size #6139
Comments
Glad to hear you are using our SDK in your Android application. Could you provide a gif/video of the bug occurring? Does this only happen when the map is being panned and once the camera is finished moving the markers return to their correct positions? The icons being to small might be a result of you placing them inside the wrong drawable density folder if they are pngs. Try generating the correct sizes for all 5 densities and see if the issues resolved. Otherwise sharing the icon image file will help me troubleshoot the issue. |
Are you on the 4.2.0 beta? I believe the delay in the movement of the Annotations is because of the update of the MapView from TextureView to SurfaceView |
I am
|
I somehow fixed the icon size, but the drift remains, should i use another version? Here is the fix
|
Version 4.1.1 uses a TextureView and doesn't have the jiggle. However, it is also lower performance (again, see #5000 (comment)). |
When im trying version 4.1.1 it is suddenly giving me this error com.mapbox.mapboxsdk.exceptions.InvalidAccessTokenException: |
@josefkorbel
If you are just showing simple markers and don't require special interaction I would opt on using gl based markers. We continue to work on improving its functionality as well work on the view synchronisation of view based markers. |
Thanks for the tip. I changed
to
And it is not jiggling anymore, but it is slower as mentioned. We are doing big application during summer strv.com/academy for enablingthefuture.org as volunteers, both Android and iOS, and on iOS the map is working great. Thanks ) |
Hello Mapbox Team, I have been thinking about this issue, and I have been wondering why markers were drawn so late. Take the example of zoom method call.
If think that
which call According to the View.invalidate() javadoc
MarkerView will not be draw in the current Frame. Is this hypothesis valid ? |
With the latest Android SDK release |
Hello, We have this issue. What do you think of @mayardb's hypothesis? Is this an easy or difficult fix? Do you think this will be fixed soon? |
Apparently every view has this problem(ex: InfoWindow). I guess @mayardb 's hypothesis make sense. Has your team looked into it? Thanks a lot. Really appreciate the work. |
Thank you all for the input, I have written up an separate issue on this in #8224. |
Hello, great library, i just moved from gmaps because i was missing some things there, however, i ran into an issue, my custom icons are drifting when im moving the map around, also they are very small and i have not found a way to solve this yet.
Thanks for answer in advance!
Cheers
The text was updated successfully, but these errors were encountered: