1.0.8 • Published 4 years ago

mapbox-mouse-position v1.0.8

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

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

parameterdescription
accuracy (Number)Latitude and longitude accuracy. default 5
duration (Number)The time the pop-up window exists (ms).default 1500ms
1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago