0.1.29 • Published 4 years ago

maxar-vue-maps v0.1.29

Weekly downloads
229
License
MIT
Repository
github
Last release
4 years ago

vuemaps

A Vue.js library for interactive map APIs.

Mapbox

The Mapbox components require some instance of mapboxgl. If you're using the components in a Vue.js application, you can use Mapbox as a plugin (see an example of this in src/main.js).

If that's not available to you, you can include Mapbox GL JS from the CDN. The components will look first for a Vue prototype $mapboxgl. If that is unavailable, they will look for a window.mapboxgl.

For Mapbox GL JS to work, you need a Mapbox access token. You can provide that in the demo app by creating a .env.local file in the root of the directory and setting VUE_APP_MAPBOX_TOKEN to your token.

Global map variables

For some projects, we may want to allow users to access the map object from Mapbox, so MapboxMap and ScrollyMap both set window.GLOBAL_MAP_VAR on map load. TODO: make this opt in as a toggle in the component.

Project setup

npm install

Compiles and hot-reloads for development

There's a demo application at src/App.vue which gives use case examples. To view it:

npm run serve

Compiles and minifies for production

The build process targets a library and does not inline Vue.js.

npm run build

Run your tests

npm run test

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

0.1.29

4 years ago

0.1.28

4 years ago

0.1.27

4 years ago

0.1.26

4 years ago

0.1.25

4 years ago

0.1.24

4 years ago

0.1.23

4 years ago

0.1.22

4 years ago

0.1.20

4 years ago

0.1.21

4 years ago

0.1.19

4 years ago

0.1.18

4 years ago

0.1.17

4 years ago

0.1.15

4 years ago

0.1.16

4 years ago

0.1.13

4 years ago

0.1.14

4 years ago

0.1.12

4 years ago

0.1.11

4 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago