0.0.7 • Published 3 years ago
tt-uip-mapbox v0.0.7
tt-uip-mapbox
Project setup
>> main.ts
import { createApp } from 'vue'
import App from './App.vue'
import { store } from './store'
import TTUIPMAPBOX from "tt-uip-mapbox"
createApp(App).use(store).use(TTUIPMAPBOX, {
store: store
}).mount('#app')
>> .env.local
VITE_MAPBOX_API_KEY="<YOUR-MAPBOX-API-KEY>"
Using mabox Store
>> wherever you need it, you can use the pina store
import { mapboxStore as useMapStore } from "@/plugins/tt-uip-mapbox";