mapbox-mouse-position
A mapbox plugin that can get the latitude and longitude of the map
Install
npm i mouse-position
Setup
Usage
map
options
parameter | description |
---|---|
accuracy (Number ) |
Latitude and longitude accuracy. default 5 |
duration (Number ) |
The time the pop-up window exists (ms).default 1500ms |