This repository has been archived by the owner on Jul 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fd0ddf1
commit 7325bd5
Showing
181 changed files
with
1,183 additions
and
3,370 deletions.
There are no files selected for viewing
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,46 @@ | ||
# Xamarin Binding - Mapbox iOS SDK | ||
<img src="./art/repo_header.png" alt="Mapbox for Xamarin.iOS" width="728" /> | ||
|
||
> This binding library is in internal verification and testing. | ||
> Any forks are warmly welcome to make it quicker and better. | ||
# Mapbox for Xamarin.iOS | ||
A Xamarin.iOS binding library for [Mapbox](https://www.mapbox.com/ios-sdk/) library. | ||
|
||
``` | ||
Install-Package Naxam.Mapbox.iOS -Pre | ||
``` | ||
|
||
## Mapbox Access Token | ||
|
||
An access token is necessary to use Mapbox services and APIs, such as maps, directions, and geocoding. Your access tokens can be managed in your account settings, where you can retrieve current tokens and generate new ones. You should create a new token for each of your apps, which will help you track usage and minimize disruption in the event a token needs to be revoked. | ||
## About | ||
This project is maintained by Naxam Co.,Ltd.<br> | ||
We specialize in developing mobile applications using Xamarin and native technology stack.<br> | ||
|
||
Visit http://mapbox.com to create an account and generate an access token. | ||
**Looking for developers for your project?**<br> | ||
|
||
### Configure your iOS project | ||
<a href="mailto:[email protected]"> | ||
<img src="https://github.com/NAXAM/naxam.github.io/blob/master/assets/img/hire_button.png?raw=true" height="40"></a> <br> | ||
|
||
Once you have generated an access token, you need to set it up within your app. There are two ways to provide an access token in your app: | ||
## Installation | ||
|
||
1. In the Info.plist file set MGLMapboxAccessToken with the value of your token. | ||
2. In the AppDelegate.FinishedLaunching method, call AccountManager.AccessToken = "YOUR-TOKEN"; | ||
|
||
## Metrics Opt-Out | ||
|
||
The Mapbox Terms of Service require your app to provide users with a way to individually opt out of Mapbox Metrics. You can provide this opt out in one of two ways: | ||
|
||
1. Add a setting to your app’s section in the system Settings app (via a Settings.bundle in your application bundle). You can download a [sample Settings.bundle](https://www.mapbox.com/guides/data/ios/Settings.bundle.zip) file to help you implement this. | ||
2. Integrate the setting directly into your app. Hook the UISwitch control up to the MGLMapboxMetricsEnabled Boolean user default, which should be YES by default. Then set MGLMapboxMetricsEnabledSettingShownInApp to YES in your app’s Info.plist file. | ||
``` | ||
Install-Package Naxam.Mapbox.iOS | ||
``` | ||
|
||
## Location Services | ||
## Usage | ||
|
||
In order to show the user’s position on the map, you must first ask for their permission. In iOS 8 and above, this is accomplished by creating and setting the NSLocationAlwaysUsageDescription key in the Info.plist file. | ||
Plz follow the official guide [here](https://www.mapbox.com/ios-sdk/). | ||
|
||
For developers on the free Starter plan, background location services must also be enabled. You can find instructions on how to do this in our First Steps guide. | ||
## License | ||
|
||
## Add Nuget package | ||
``` | ||
Install-Package Naxam.Mapbox.iOS | ||
``` | ||
Mapbox binding library for iOS is released under the MIT license. | ||
See [LICENSE](./LICENSE) for details. | ||
|
||
## Show it up | ||
# Get our showcases on AppStore/PlayStore | ||
Try our showcases to know more about our capabilities. | ||
|
||
Creating a map is very simple using the MapView class: | ||
<a href="https://itunes.apple.com/us/developer/tuyen-vu/id1255432728/" > | ||
<img src="https://github.com/NAXAM/imagepicker-android-binding/raw/master/art/apple_store.png" width="117" height="34"></a> | ||
|
||
```c# | ||
// Create a MapView and set the coordinates/zoom | ||
mapView = new MGLMapView (View.Bounds); | ||
mapView.SetCenterCoordinate (new CLLocationCoordinate2D (40.7326808, -73.9843407), false); | ||
mapView.SetZoomLevel (11, false); | ||
<a href="https://play.google.com/store/apps/developer?id=NAXAM+CO.,+LTD" > | ||
<img src="https://github.com/NAXAM/imagepicker-android-binding/raw/master/art/google_store.png" width="117" height="34"></a> | ||
|
||
View.AddSubview (mapView); | ||
``` | ||
Contact us if interested. | ||
|
||
You can add annotations to your map like this: | ||
<a href="mailto:[email protected]"> | ||
<img src="https://github.com/NAXAM/naxam.github.io/blob/master/assets/img/hire_button.png" height="34"></a> <br> | ||
<br> | ||
|
||
``` | ||
// Add new annotation | ||
mapView.AddAnnotation (new MGLPointAnnotation { | ||
Coordinate = new CLLocationCoordinate2D (40.7326808, -73.9843407), | ||
Title = "Sample Marker", | ||
Subtitle = "This is the subtitle" | ||
}); | ||
``` | ||
Follow us for the latest updates<br>[![Twitter URL](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=https://github.com/NAXAM/mapbox-ios-binding) | ||
[![Twitter Follow](https://img.shields.io/twitter/follow/naxamco.svg?style=social)](https://twitter.com/naxamco) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+71.1 KB
sharpie/Binding/Mapbox.framework/Assets.car → frameworks/Mapbox.framework/Assets.car
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.