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.
A simple library for Maplibre with vue 3 components, composition api and typescript support
# 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
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>
The documentation will be started when the projet will be ready for his first release. Thanks in advance for your patience.