Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ageeye-cn/maptalks.mouseCoordinate
A mouse coordinate plugin for maptalks.js
https://github.com/ageeye-cn/maptalks.mouseCoordinate
Last synced: 3 months ago
JSON representation
A mouse coordinate plugin for maptalks.js
- Host: GitHub
- URL: https://github.com/ageeye-cn/maptalks.mouseCoordinate
- Owner: ageeye-cn
- License: mit
- Created: 2017-12-09T02:22:45.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-14T07:09:21.000Z (almost 7 years ago)
- Last Synced: 2024-07-14T05:35:59.780Z (4 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# maptalks-mouseCoordinate
A mouse coordinate plugin for [maptalks](http://maptalks.org/).
[demo](https://ageeye-cn.github.io/maptalks.mouseCoordinate//demo/index.html)
# Getting started
```javascript
var mouseCoordinate = new maptalks.MouseCoordinate().addTo(map)
```# Options
Option | Type | Default
------ | ---- | -------
`position` | String or Object | ```{bottom: 0, right: 0 }```
`precision` | Number | 5
`style` | Object | ```{padding: '0 5px', backgroundColor: 'rgba(255,255,255,0.7)', fontSize: '13px'}```# License
MIT License.