Mapbox Maps SDK for iOS comparison app, featuring Apple MapKit and Google Maps for iOS.
bundle install && bundle exec pod installcp treble/APIKeys.EXAMPLE.plist treble/APIKeys.plistxed .to open the workspace in Xcode.- Add your Mapbox access token and Google API key to
APIKeys.plist.
- Keep tapping the selected tab to switch styles.
- Swipe on the bottom tab bar to switch providers.
- Tap the top status bar to recenter the map on your location.
To load a Mapbox map in Treble at a particular location, you can use this URL scheme in by entering it in Mobile Safari, sending it to your mobile device via AirDrop/Slack/etc., or implementing it in your iOS app:
treble://?lat=40.73&lng=-73.94&zoom=10
lat: set the map latitudelng: set the map longitudezoom: set the map zoom level (0being the whole world)bearing: set the map bearing in degrees clockwise from due northpitch: set the map pitch (0looking directly overhead,60being maximum tilt)
