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
498 B
39 lines
498 B
3 months ago
|
# BMapLib.LuShu
|
||
|
|
||
|
## Installation
|
||
|
|
||
|
### NPM
|
||
|
|
||
|
```bash
|
||
|
$ npm i --save bmaplib.lushu
|
||
|
```
|
||
|
|
||
|
### CDN
|
||
|
|
||
|
```html
|
||
|
<script src="//unpkg.com/bmaplib.lushu"></script>
|
||
|
```
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
### ES Next
|
||
|
|
||
|
```js
|
||
|
import LuShu from 'bmaplib.lushu'
|
||
|
|
||
|
// You should use this lib after BaiduMap loaded. For Example:
|
||
|
|
||
|
loadBaiduMap.then(() => {
|
||
|
new LuShu()
|
||
|
})
|
||
|
```
|
||
|
|
||
|
### CDN
|
||
|
|
||
|
```html
|
||
|
<script src="//api.map.baidu.com/api?v=2.0"></script>
|
||
|
<script src="//unpkg.com/bmaplib.lushu"></script>
|
||
|
<script>
|
||
|
new BMapLib.Lushu()
|
||
|
</script>
|
||
|
```
|