Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.