Install Mapbox
npm install --save mapbox-gl
Reference: Import or Install Mapbox-GL-JS
Wrapper
Mapbox
Interactive and customizable map visualization.
Installation
Install Mapbox
npm install --save mapbox-gl
Reference: Import or Install Mapbox-GL-JS
Add Mapbox access token
Insert access token in your .env file.
.env
1 | |
Get the base component
npx lomer-ui get map.mapbox-gl
Source code: map.mapbox-gl.svelte
Usage
Preview
Options
Preview
Controls
Preview
Events
Preview
Marker
Preview