Skip to content

studiometa/vue-mapbox-gl

Repository files navigation

πŸ—Ί @studiometa/vue-mapbox-gl

NPM Version Downloads Size Dependency Status Codecov

A small components library to use Mapbox GL in Vue 3 app.

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 ❌

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.

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy