antv-l7/docs/tutorial/quickstart.zh.md

42 lines
572 B
Markdown
Raw Normal View History

2019-11-21 13:06:13 +08:00
---
title: 快速上手
order: 0
redirect_from:
- /zh/docs/tutorial
---
# L7
2019-11-21 23:27:01 +08:00
Current version: 2.0.0-beta.10
2019-11-21 13:06:13 +08:00
## 使用方法
2019-11-21 13:06:13 +08:00
### 通过 L7 CDN 使用
Include the L7 JS JavaScript <head> of your HTML file.
2019-11-21 13:06:13 +08:00
```html
<head>
<script src='https://gw.alipayobjects.com/os/antv/pkg/_antv.l7-2.0.0-beta.5/dist/l7.js'>
</script>
2019-11-21 13:06:13 +08:00
</head>
```
- [use Gaode Map](../map/amap.en.md)
2019-11-21 13:06:13 +08:00
- [use Mapbox Map ](../map/mapbox.en.md)
2019-11-21 13:06:13 +08:00
## 通过 Module bundle 使用
2019-11-21 13:06:13 +08:00
Install the npm package.
2019-11-21 13:06:13 +08:00
```bash
2019-11-21 13:06:13 +08:00
npm install --save @antv/l7@beta
2019-11-21 13:06:13 +08:00
// 或者
yarn add --save @antv/l7@beta
2019-11-21 13:06:13 +08:00
```