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.
40 lines
515 B
40 lines
515 B
3 months ago
|
# 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>
|
||
|
```
|