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

MGLAnnotationImage can’t be used with more than one MGLMapView #4723

Closed
1ec5 opened this issue Apr 17, 2016 · 2 comments
Closed

MGLAnnotationImage can’t be used with more than one MGLMapView #4723

1ec5 opened this issue Apr 17, 2016 · 2 comments
Labels
archived Archived because of inactivity bug iOS Mapbox Maps SDK for iOS

Comments

@1ec5
Copy link
Contributor

1ec5 commented Apr 17, 2016

MGLAnnotationImage uses a delegate pattern to update MGLMapView, so an MGLAnnotationImage instance can only be used with a single MGLMapView instance. Yet there’s nothing in the API that would communicate this limitation to the developer. Instead of delegation, MGLMapView should observe changes to each MGLAnnotationImage’s image. Whether we use KVO or NSNotificationCenter, MGLMapView would probably have to track or compute on the fly whether any annotations are currently using an MGLAnnotationImage that is getting modified.

/cc @boundsj

@1ec5 1ec5 added bug iOS Mapbox Maps SDK for iOS labels Apr 17, 2016
@stale stale bot added the archived Archived because of inactivity label Nov 19, 2018
@stale
Copy link

stale bot commented Nov 19, 2018

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

@stale stale bot closed this as completed Nov 19, 2018
@fabian-guerra
Copy link
Contributor

This API may get deprecated as result of #12863. Will reopen otherwise.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived Archived because of inactivity bug iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

No branches or pull requests

2 participants