You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
We're trying to add and remove "image" layers (they are actually MGLSymbolStyleLayer's), using the workaround detailed here. We have added a UIButton that will add and remove the image layer as appropriate when tapped. We are removing the images by removing the source, layer, and imageName from the map's style:
The issue we are seeing is after removal, if we zoom in or out, when we re-add the layer, this time the image appears distorted, as though artifacts of the old image are still present on the map. Screenshots attached.
We're trying to add and remove "image" layers (they are actually MGLSymbolStyleLayer's), using the workaround detailed here. We have added a UIButton that will add and remove the image layer as appropriate when tapped. We are removing the images by removing the source, layer, and imageName from the map's style:
The issue we are seeing is after removal, if we zoom in or out, when we re-add the layer, this time the image appears distorted, as though artifacts of the old image are still present on the map. Screenshots attached.
Original Image:

Image after removing, zooming, and re-adding:

Platform: iOS (10)
Mapbox SDK version: 3.5.4
Steps to trigger behavior
Expected behavior
The image should appear the same the second time it's added as it did the first time.
Actual behavior
The image appears distorted and artifacts from the original one remain.