Mapbox-gl-native: Point annotations disappear at low zoomlevels

Created on 24 May 2016  路  11Comments  路  Source: mapbox/mapbox-gl-native

When you zoom out, point annotations disappears. Zooming back in restores them.

ezgif com-video-to-gif 20

This was noticed on Android and was validated for iOS by @1ec5 with 3.3.0-alpha.3

Android Core bug iOS

Most helpful comment

@mpuchala, thank you for reaching out. In normal circumstances you should be able to use the SNAPSHOT containing this fix. I just double checked the nightly builds and there seems to be a problem with building. I'm fixing this in https://github.com/mapbox/mapbox-gl-native/issues/5187.

All 11 comments

These are GL point annotations, by the way.

Discussed internally with @tobrun @cammace today and this issue is a blocker for Android 4.1.0 FINAL release.

/cc @mapbox/mobile @jfirebaugh @kkaefer @tmpsantos @brunoabinader

On it.

Found the commit that caused the regression: 4c62a5508cfa96755b37850051871320d79748fb

This is not only affecting annotations but also label density on low zoom levels:
screenshot from 2016-05-27 17-27-45
screenshot from 2016-05-27 17-28-45

/cc @ansis

Awesome. Thanks @tmpsantos @ansis!

@tmpsantos Any idea what about 4c62a5508cfa96755b37850051871320d79748fb is causing the issue? (Let's assume that @ansis is focused on schoolwork.)

@jfirebaugh I'm investigating but seems to me some integer overflow or float to integer conversion making it full transparent.

I was initially comparing to the code on JS trying to find anything wrong with the ported code but it seems fine.

@tmpsantos I just tested your fix in #5175 and can confirm that it solves this issue. Both markers (C and A) were visible at all zoom levels as well as when cycled on / off using the FAB (see screenshots below). I'm going to merge #5175 into master and then cherry pick the commit over to the release-android-v4.1.0 branch so that this fix gets into the nightly SNAPSHOTS as well as the final release. Thank you for fixing this!

device-2016-05-27-160756

device-2016-05-27-160811

Cherry picked into Android's release-android-v4.1.0 branch.

screen shot 2016-05-27 at 4 21 41 pm

@bleege @tobrun
When can we expect new snapshot or beta-2 release with this fix?

@mpuchala, thank you for reaching out. In normal circumstances you should be able to use the SNAPSHOT containing this fix. I just double checked the nightly builds and there seems to be a problem with building. I'm fixing this in https://github.com/mapbox/mapbox-gl-native/issues/5187.

Was this page helpful?
0 / 5 - 0 ratings