Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

[ios] Always use symbol name for annotation update#5509

Merged
boundsj merged 1 commit into
release-ios-v3.3.0from
boundsj-update-annotation-with-symbol
Jun 29, 2016
Merged

[ios] Always use symbol name for annotation update#5509
boundsj merged 1 commit into
release-ios-v3.3.0from
boundsj-update-annotation-with-symbol

Conversation

@boundsj
Copy link
Copy Markdown
Contributor

@boundsj boundsj commented Jun 29, 2016

This removes the guard for setting the sprite symbol name when annotation coordinates are updated. The guard was added when UIView backed annotations did not have invisible image placeholders. Since images are now present for both sprite and UIView backed annotations, the guard is no longer necessary and removing it allows for the correct symbol name to be passed to the mbgl map's updateAnnoation method and this gets rid of [INFO] {Worker}[Sprite]: Can't find sprite named 'default_marker' log message.

To put it another way, this gets rid of log messages related to unknown sprite names when annotations backed by UIViews have their coordinates changed.

This is an additional fix required for #5210 that was missed in #5461.

cc @friedbunny

@boundsj boundsj added bug iOS Mapbox Maps SDK for iOS annotations Annotations on iOS and macOS or markers on Android labels Jun 29, 2016
@boundsj boundsj added this to the ios-v3.3.0 milestone Jun 29, 2016
@boundsj boundsj self-assigned this Jun 29, 2016
Comment thread platform/ios/src/MGLMapView.mm Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

annotationContext is unused, after these changes.

@friedbunny
Copy link
Copy Markdown
Contributor

This works for me! No more default_marker console messages and the functionality is the same.

This removes the guard that used to be in place from the time when
UIView backed annotations did not have invisible image placeholders.
Since images are now present for both sprite and UIView backed
annotations, the guard is no longer necessary and removing it allows
for the correct symbol name to be passed to the map object and this
gets rid of `[INFO] {Worker}[Sprite]: Can't find sprite named
'default_marker'` log message.
@boundsj boundsj force-pushed the boundsj-update-annotation-with-symbol branch from aafab4c to 27deb3a Compare June 29, 2016 17:49
@boundsj boundsj merged commit 2933ef1 into release-ios-v3.3.0 Jun 29, 2016
@boundsj boundsj deleted the boundsj-update-annotation-with-symbol branch June 29, 2016 18:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

annotations Annotations on iOS and macOS or markers on Android bug iOS Mapbox Maps SDK for iOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants