You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<template><divclass="section"><h1>La carte des thés</h1><MglMapid="map"
:accessToken="accessToken"
:mapStyle="mapStyle"></MglMap></div></template><script>importMapboxfrom"mapbox-gl";import{MglMap}from"vue-mapbox";exportdefault{components: {
MglMap,// MglMarker,},data(){return{accessToken: '',// your access token. Needed if you using Mapbox mapsmapStyle: '',// your map style};},created(){// We need to set mapbox-gl library here in order to use it in templatethis.mapbox=Mapbox;}};</script>
My component :
My index.html :
Hello
I adding a map component by following the documentation. My map is displayed but i have these two errors :
The text was updated successfully, but these errors were encountered: