Mapbox-gl-native: PointAnnotation artifact when using flyTo

Created on 1 Feb 2018  路  4Comments  路  Source: mapbox/mapbox-gl-native

When you add a point annotation to the map and use flyTo to animate the camera to that position:

ezgif com-video-to-gif 38

This behaviour is not found in release-agua, solely in the release-boba codebase.
Code used to reproduce this issue here.

Core

Most helpful comment

Confirmed that @ansis's fix (with a fix-to-fix to make sure duplicate symbols are _always_ hidden) gets rid of the duplicate marker artifact in @tobrun's SimpleMapActivity example.

All 4 comments

@tobrun is it easy for you to check if https://github.com/mapbox/mapbox-gl-native/commit/c4176633b64cfa53939a5495dfb7360f2a00c167 fixes it? otherwise I can try to build an example to actually reproduce.

@ChrisLoer does that fix look right? would it regress some case I'm not thinking about?

@ansis Yeah that change looks right to me, I'm surprised we didn't notice it earlier.

We have to make the same fix here:

https://github.com/mapbox/mapbox-gl-js/blob/adfc154ea28e587482f0e5de4c2c7055f7c22c1b/src/symbol/placement.js#L274-L281

I'm trying to think through what's going to regress from this... since it's a regression itself from the flickering fixes!

Confirmed that @ansis's fix (with a fix-to-fix to make sure duplicate symbols are _always_ hidden) gets rid of the duplicate marker artifact in @tobrun's SimpleMapActivity example.

Was this page helpful?
0 / 5 - 0 ratings