Mapir Vue Component
Bring Map.ir to your vuejs app
Declarative style
You can use map elements like layers, markers, popups as Vue components and control them via synchronized props
Vuefied
Map elements declared as components respect Vue lifecycle, emit map events like Vue events and can be used in OOP-style
Promisified async actions
You can do async map operations and get results in Promise without messing with map events and figuring out what action cause it
This component is based on Soal's vue-mapbox available here!
# Quick Start
<template>
<mapir :center="center" :apiKey="apiKey"></mapir>
</template>
<script>
import { mapir } from "mapir-vue";
export default {
name: "App",
components: {
mapir
},
data() {
return {
apiKey: "some_token",
center: [51.420296, 35.732379]
};
}
};
</script>
<style>
#app {
width: 90vw;
height: 90vh;
}
</style>
you can get your API Key from registration panel