Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MGLSymbolStyleAnnotation Flashing on Add/Remove #65

Open
Tapestes opened this issue Feb 27, 2020 · 0 comments
Open

MGLSymbolStyleAnnotation Flashing on Add/Remove #65

Tapestes opened this issue Feb 27, 2020 · 0 comments

Comments

@Tapestes
Copy link

Tapestes commented Feb 27, 2020

Reviewing issue #58, it doesn't look like there's a way to move a MGLSymbolStyleAnnotation. Based on the advice there, I'm removing the existing MGLSymbolStyleAnnotation and adding a new one, like so...

controller.removeStyleAnnotation(existingSymbol)
let symbol = MGLSymbolStyleAnnotation(coordinate: coord, iconImageName: name)
controller.addStyleAnnotation(symbol)

However, that's resulting in the symbol flashing on the screen (sample below). I tried getting rid of the text, getting rid of textVariableAnchor on the controller, and a few other things to see if it was text related, but the issue persists. Any thoughts on how I should be moving the MGLSymbolStyleAnnotation such that I won't get the flashing? Looks like some folks were using updateGeometryCoordinates(withDelta: delta), but I can't seem to get that to work. Appreciate the help.

flashing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant