mapbox-mouse-position
v1.0.8
Published
> A mapbox plugin that can get the latitude and longitude of the map
Downloads
12
Readme
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