Skip to content

A simple library for Maplibre with vue 3 components, composition api and typescript support

Notifications You must be signed in to change notification settings

chatondearu/vue-maplibre

Repository files navigation

Updated Badge GitHub issues

This repository is currently a work in progress. We are actively developing a new GitHub project that will be released in the near future. Please check back soon for more updates and information about the project.

vue-maplibre

A simple library for Maplibre with vue 3 components, composition api and typescript support

Setup

# install dependencies
npm install

# start the dev app with hot reload, great for testing components
npm run dev

# build the library, available under dist
npm run build

# build the dev app, available under dev/dist
npm run dev:build

# preview the dev app locally from dev/dist
npm run dev:preview

Usage

Install and configure Map Libre

// src/main.ts
import MapLibrePlugin from '@vue-maplibre'

// ...

app.use(MapLibrePlugin, {
  style: 'mapbox://styles/chatondearu/my-style',
  i18n: true, // to activate the translation on cities (Mapbox proof and need to be tested on others)
})

// ...

Usage as components

<script setup lang="ts">
import { MapLibre } from 'vue-maplibre'
</script>

<template>
  <MapLibre :center="[10, 40]" />
</template>

Documentation

The documentation will be started when the projet will be ready for his first release. Thanks in advance for your patience.

Contrib

Contributors Display

About

A simple library for Maplibre with vue 3 components, composition api and typescript support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published