Skip to content

Commit

Permalink
chire: doc
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Nov 29, 2023
1 parent 76ea2c0 commit 1eb5033
Show file tree
Hide file tree
Showing 3 changed files with 7,410 additions and 6,492 deletions.
2 changes: 1 addition & 1 deletion demo-snippets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
"dependencies": {
"@nativescript-community/ui-mapbox": "file:../packages/ui-mapbox"
}
}
}
26 changes: 26 additions & 0 deletions packages/ui-mapbox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
## Table of Contents

* [Prerequisites](#prerequisites)
* [Android](#android)
* [Installation](#installation)
* [Configuration](#configuration)
* [Issues](#issues)
Expand Down Expand Up @@ -110,6 +111,31 @@
You either need your own tile server such as the one provided by [openmaptiles.org](https://openmaptiles.org) or a Mapbox API access token (they have a 🆓 Starter plan!), so [sign up with Mapbox](https://www.mapbox.com/signup/).
Once you've registered go to your Account > Apps > New token. The 'Default Secret Token' is what you'll need.

### Android

Mapbox now requires (version > 8.6.6) an api key to download the sdk

If you want to use newer version than the default 8.6.6 you need to add this to your `app.gradle`
```gradle
allprojects {
repositories {
maven {
url 'https://api.mapbox.com/downloads/v2/releases/maven'
authentication {
basic(BasicAuthentication)
}
credentials {
// Do not change the username below.
// This should always be `mapbox` (not your username).
username = 'mapbox'
// Use the secret token you stored in gradle.properties as the password
password = project.properties['MAPBOX_DOWNLOADS_TOKEN'] ?: ""
}
}
}
}
```


[](#installation)

Expand Down
Loading

0 comments on commit 1eb5033

Please sign in to comment.