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.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
It’s relatively difficult to add an MGLMapView to a storyboard-based project. As expected, you can drag a UIView into a scene and set its custom class to “MGLMapView”. However, that just gets you a blank map. So you need to call [mapView setAccessToken:@"…"] at launch, and [mapView setStyleJSON:nil] sometime after that, but not too soon or you’ll hit #1014.
Basic support for XIBs and storyboards means:
Make accessToken KVO-compliant, so it can be set via a user-defined runtime attribute in Interface Builder.
We plan to distribute Mapbox GL via CocoaPods (#1030), which handles repackaging the library as a dynamic framework when use_frameworks! is specified (required for Swift usage). That unblocks #929, so we could in principle ship with an inspectable and designable MGLMapView today. However, we need accessToken to be KVO-compliant and trigger a refresh (without hitting #1147) in order to provide the right developer experience.
Activity
1ec5 commentedon Mar 30, 2015
We plan to distribute Mapbox GL via CocoaPods (#1030), which handles repackaging the library as a dynamic framework when
use_frameworks!is specified (required for Swift usage). That unblocks #929, so we could in principle ship with an inspectable and designableMGLMapViewtoday. However, we needaccessTokento be KVO-compliant and trigger a refresh (without hitting #1147) in order to provide the right developer experience.1ec5 commentedon Mar 30, 2015
This is definitely blocked on #1147.
Refactored MGLMapView initialization
Fixed race condition after setting access token