You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
515 B
39 lines
515 B
# BMapLib.Heatmap
|
|
|
|
## Installation
|
|
|
|
### NPM
|
|
|
|
```bash
|
|
$ npm i --save bmaplib.heatmap
|
|
```
|
|
|
|
### CDN
|
|
|
|
```html
|
|
<script src="//unpkg.com/bmaplib.heatmap"></script>
|
|
```
|
|
|
|
## Usage
|
|
|
|
### ES Next
|
|
|
|
```js
|
|
import Heatmap from 'bmaplib.heatmap'
|
|
|
|
// You should use this lib after BaiduMap loaded. For Example:
|
|
|
|
loadBaiduMap.then(() => {
|
|
new Heatmap()
|
|
})
|
|
```
|
|
|
|
### CDN
|
|
|
|
```html
|
|
<script src="//api.map.baidu.com/api?v=2.0"></script>
|
|
<script src="//unpkg.com/bmaplib.heatmap"></script>
|
|
<script>
|
|
new BMapLib.Heatmap()
|
|
</script>
|
|
```
|
|
|