https://github.com/friedbunny/treble
Mapbox Maps SDK for iOS comparison app
https://github.com/friedbunny/treble
google-maps-ios-sdk ios mapbox mapbox-ios-sdk mapkit maps
Last synced: about 22 hours ago
JSON representation
Mapbox Maps SDK for iOS comparison app
- Host: GitHub
- URL: https://github.com/friedbunny/treble
- Owner: friedbunny
- License: mit
- Created: 2015-04-30T19:07:14.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2022-10-06T05:39:35.000Z (over 3 years ago)
- Last Synced: 2025-04-09T23:12:30.712Z (10 months ago)
- Topics: google-maps-ios-sdk, ios, mapbox, mapbox-ios-sdk, mapkit, maps
- Language: Objective-C
- Homepage:
- Size: 1.56 MB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Treble
[](https://www.bitrise.io/app/3b92313af6737ed9)
[Mapbox Maps SDK for iOS](https://github.com/mapbox/mapbox-gl-native) comparison app, featuring [Apple MapKit](https://developer.apple.com/library/ios/documentation/MapKit/Reference/MapKit_Framework_Reference/) and [Google Maps for iOS](https://developers.google.com/maps/documentation/ios-sdk/).

## Getting started
1. `bundle install && bundle exec pod install`
2. `cp treble/APIKeys.EXAMPLE.plist treble/APIKeys.plist`
3. `xed .` to open the workspace in Xcode.
4. Add your [Mapbox access token](https://www.mapbox.com/help/create-api-access-token/) and [Google API key](https://developers.google.com/maps/documentation/ios-sdk/get-api-key) to `APIKeys.plist`.
## Usage
- 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.
## URL scheme
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`
### Supported query parameters
* `lat`: set the map latitude
* `lng`: set the map longitude
* `zoom`: set the map zoom level (`0` being the whole world)
* `bearing`: set the map bearing in degrees clockwise from due north
* `pitch`: set the map pitch (`0` looking directly overhead, `60` being maximum tilt)