MapirVueComponent
Vue wrapper for mapbox-gl-js. Expose a bunch of component meant to be simple to use for Vue.
Get API Key
🔑 You should first get api key from Map.ir
Installation
npm i mapir-vue
Quick start
Template
Script
<script>import mapir from "mapir-vue"; name: "App" components: mapir { return coordinates: 51420296 35732379 MapirApiKey: "pk.Mapir" // your Api Key. ; } { thismap = null; } methods: { // in component thismap = eventmap; // or just to store if you want have access from other components this$storemap = eventmap; } { console; } ;</script>
Style
<style>#app width: 100vw; height: 100vh;</style>