1.0.8 • Published 5 years ago
mapbox-mouse-position v1.0.8
mapbox-mouse-position
A mapbox plugin that can get the latitude and longitude of the map
Install
npm i mouse-position
Setup
import MousePosition from 'mapbox-mouse-position'Usage
map.addControl(new MousePosition())options
| parameter | description |
|---|---|
accuracy (Number) | Latitude and longitude accuracy. default 5 |
duration (Number) | The time the pop-up window exists (ms).default 1500ms |