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.
Developers who use XIBs or storyboards will find it more awkward to use MGLMapView than MKMapView because custom views such as MGLMapView are rendered as plain white squares by default:
Left: MGLMapView. Right: MKMapView.
MGLMapView should be marked IB_DESIGNABLE and draw something recognizable inside Interface Builder. It would be impractical to load actual map content synchronously within the short timeout, but even something mimicking the MKMapView’s translucent “blue box” would be easier to work with.
accessToken doesn’t appear to be KVO-compliant at the moment. Additionally, if accessToken is unset, setting it should make the map use the default bundled style, just as -initWithFrame:styleJSON:accessToken: calls -setStyleJSON: with nil when there’s a token is specified.
Activity
incanus commentedon Feb 28, 2015
👍
I started playing around in this direction a few weeks back but only got as far as https://gist.github.com/incanus/867e487146bb9695065a. I got blocked there by GL project restructuring and the loss of a dynamic framework that would work in Swift (#828).
https://twitter.com/incanus77/statuses/563748947043164160
ljbade commentedon Mar 2, 2015
Interesting Android has something similar for the UI editor: #650
1ec5 commentedon Mar 2, 2015
Also, we should have the box draw a little reminder when the inspectable access token isn’t filled in.
ljbade commentedon Mar 3, 2015
@1ec5 great idea!
DavidChouinard commentedon Mar 23, 2015
As a user: this would be very useful!
DavidChouinard commentedon Mar 23, 2015
@1ec5 What's the expected inspectable key path? (
accessTokendoes not seem to work)1ec5 commentedon Mar 23, 2015
accessTokendoesn’t appear to be KVO-compliant at the moment. Additionally, ifaccessTokenis unset, setting it should make the map use the default bundled style, just as-initWithFrame:styleJSON:accessToken:calls-setStyleJSON:withnilwhen there’s a token is specified.1ec5 commentedon Apr 1, 2015
friedbunny commentedon Apr 1, 2015
Very nice. 🤘