JSPM

  • Created
  • Published
  • Downloads 3245
  • Score
    100M100P100Q117517F
  • License GPL-3.0-or-later

Fork from @studiometa/vue-mapbox with support for current mapbox-gl version and written in typescript

Package Exports

  • vue-mapbox-ts

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue-mapbox-ts) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

🗺 Vue Mapbox GL

NPM Version Dependency Status devDependency Status

A small components library to use Mapbox GL in Vue.

Installation & usage

Have a look at the small guide for information on how to setup a simple map.

Components

The following components are available:

Component Description Doc.
MapboxMap Display a map with the given style.
MapboxMarker Display a simple or custom marker.
MapboxCluster Display a GeoJSON as clusters.
MapboxGeocoder Display a geocoder search input with the @mapbox/mapbox-gl-geocoder plugin.
MapboxImage Load an image to be used on the map.
MapboxImages Load multiple images to be used on the map.
MapboxLayer Display a layer on the map.
MapboxNavigationControl Display the map's navigation controls
MapboxPopup Display a popup on the map
MapboxSource Load a source of data to be used on the map

To do

  • Add tests for each component
  • Write a detailed documentation

Contributing

Installation

# Clone the project
git clone git@github.com:studiometa/vue-mapbox-gl.git
# Cd in the repository
cd vue-mapbox-gl
# Install dependencies
npm i

Useful commands

# Build for deployment
npm run build
# Test before deployment
npm run test
# Lint files
npm run lint
# Fix linting errors
npm run fix

Note

This project is a rewrite of a fork of openearth/vue2mapbox-gl and is published under the GNU GPL 3 license.