Socket
Socket
Sign inDemoInstall

maxar-vue-maps

Package Overview
Dependencies
46
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    maxar-vue-maps

Vue.js library for interactive map APIs


Version published
Weekly downloads
108
decreased by-24.48%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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.

FAQs

Last updated on 05 Nov 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc