@ogdenstudios/vuemaps

0.1.4 • Public • Published

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.

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.4
    8
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.4
    8
  • 0.1.0
    0

Package Sidebar

Install

npm i @ogdenstudios/vuemaps

Weekly Downloads

8

Version

0.1.4

License

MIT

Unpacked Size

588 kB

Total Files

11

Last publish

Collaborators

  • ogdenstudios