Skip to content

Commit

Permalink
updated NativeScript to 6.5.0 and related components.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yermo committed Apr 28, 2020
1 parent c4f9de3 commit 4eb80fb
Show file tree
Hide file tree
Showing 9 changed files with 4,578 additions and 1,828 deletions.
43 changes: 24 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,6 @@
<img src="/screenshots/mapbox_logo.png" width="400"/>
</a>

# To run the Angular demo

```
cd src
npm run build.dist
cd ../demo-angular
tns run <platform>
```

# To run the plain Nativescript demo

```
cd src
npm run build.dist
cd ../demo
tns run <platform>
```

# NativeScript Mapbox plugin

[![NPM version][npm-image]][npm-url]
Expand All @@ -42,7 +24,7 @@ Awesome native OpenGL-powered maps - by Mapbox
> https://github.com/NativeScript/NativeScript/issues/7954
> https://github.com/NativeScript/NativeScript/issues/7867
## Prerequisites
## Before you begin - Prerequisites
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.

Expand All @@ -52,6 +34,29 @@ The style can be set to one of the Mapbox style names or it can be the URL of yo

> NOTE: As of this writing, the NativeScript demo only works with a mapbox token. The demo-angular will work with either a self hosted tile server or a mapbox token.
# To run the Angular demo

```
cd src
npm run build.release
cd ../demo-angular
tns run <platform>
```

# To run the plain Nativescript demo

```
cd src
npm run build.release
cd ../demo
tns run <platform>
```

# Debug Build

To come up to speed on the plugin, I added extensive trace messages.
These can be turned on by replacing 'npm run build.release' with 'npm run build.debug' in the commands above.

## Breaking Changes

This version includes breaking API changes.
Expand Down
Loading

0 comments on commit 4eb80fb

Please sign in to comment.