Vue wrapper for mapbox-gl-js. Expose a bunch of component meant to be simple to use for Vue.
🔑 You should first get api key from Map.ir
npm i mapir-vue
<template>
<div id="app">
<mapir :center="center" :apiKey="apiKey"></mapir>
</div>
</template>
<script>
import { mapir } from "mapir-vue";
export default {
name: "App",
components: { mapir },
data() {
return {
apiKey: YOUR_API_KEY,
center: [51.420296, 35.732379]
};
}
};
</script>
<style>
#app {
width: 90vw;
height: 90vh;
}
</style>