Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devyaz/sveltenative-mapbox
opengl maps the svelte way ;)
https://github.com/devyaz/sveltenative-mapbox
Last synced: 18 days ago
JSON representation
opengl maps the svelte way ;)
- Host: GitHub
- URL: https://github.com/devyaz/sveltenative-mapbox
- Owner: devyaz
- Created: 2021-07-01T22:02:29.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-07T19:21:33.000Z (over 3 years ago)
- Last Synced: 2024-08-01T00:39:22.089Z (3 months ago)
- Language: CSS
- Size: 459 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sveltenative-mapbox
opengl maps the svelte way ;)
# WARNING
As we switched to a community managed plugin we upgraded the version of the Mapbox SDKs. Though starting from iOS SDK 6.0 and android SDK 9.0 they need special handling for downloading the SDK: iOS
Android
On android the plugin default to 8.x. You can change it by creating a ``before-plugins.gradle`` in ``App_Resources/Android`` with (showing current versions):
```
ext {
okHttpVersion = "3.12.10"
def mapboxVersion = "8.6.6"
def mapboxTelemetryVersion = "6.1.0"
def mapboxPluginsVersion = "v9"
def mapboxAnnotationPluginVersion = "0.9.0"
def mapboxGesturesVersion = "0.7.0"
}
```
On iOS we dont force anything so it will get the latest one. If you want to change it create a ``Podfile `` in ``App_Resources/iOS`` with (see demo app):```pod 'Mapbox-iOS-SDK', '~> 5.1.1'```
Before you begin - Prerequisites
You either need your own tile server such as the one provided by openmaptiles.org or a Mapbox API access token (they have a free Starter plan!), so sign up with Mapbox. Once you've registered go to your Account > Apps > New token. The 'Default Secret Token' is what you'll need.
You will also need to set up your development environment. Please refer to the NativeScript documentation.
# Installation
then clone this repo
```
git clone https://github.com/devyaz/sveltenative-mapbox.git
```
then install everything ``ns install`` then run ``ns run android --bundle`` # Or ``ns run ios --bundle`` # {N} wll automagically add platform accordind to your ``run`` command