-
Notifications
You must be signed in to change notification settings - Fork 633
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add source docs, fix mapbox marker
- Loading branch information
Showing
21 changed files
with
464 additions
and
269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
title: CSV | ||
order: 3 | ||
--- | ||
|
||
L7 支持 CSV 以逗号分隔的 CSV 数据加载。 | ||
|
||
CSV 是文本数据结构,很难表达复杂的地理数据结构,因此 CSV 仅支持两种数据结构 | ||
|
||
- 点数据 需要指定经度,纬度坐标 | ||
- 线段,弧线数据 需要指定 起始点的 经度,纬度坐标 | ||
|
||
## parser | ||
|
||
- type string 必选 json | ||
- x string 点数据表示 经度 | ||
- y string 点数据表示 纬度 | ||
- x1 string 经度 | ||
- x2 string 纬度 | ||
|
||
### 点数据通过 CSV 加载 | ||
|
||
```javascript | ||
layer.source(data, { | ||
parser: { | ||
type: 'csv', | ||
x: 'lng', | ||
y: 'lat', | ||
}, | ||
}); | ||
``` | ||
|
||
[CSV 数据 demo 示例](../../../examples/point/bubble#scatter) | ||
|
||
### 线段弧线数据通过 CSV 加载 | ||
|
||
```javascript | ||
layer.source( | ||
data, | ||
{ | ||
parser:{ | ||
type:'csv', | ||
x:'lng1', | ||
y:'lat1' , | ||
x1:'lng1', | ||
y1:'lat2' , | ||
} | ||
} | ||
}) | ||
|
||
``` | ||
|
||
[CSV 线段数据 demo 示例](../../../examples/gallery/basic#arcCircle) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
title: CSV | ||
order: 3 | ||
--- | ||
|
||
L7 支持 CSV 以逗号分隔的 CSV 数据加载。 | ||
|
||
CSV 是文本数据结构,很难表达复杂的地理数据结构,因此 CSV 仅支持两种数据结构 | ||
|
||
- 点数据 需要指定经度,纬度坐标 | ||
- 线段,弧线数据 需要指定 起始点的 经度,纬度坐标 | ||
|
||
## parser | ||
|
||
- type string 必选 json | ||
- x string 点数据表示 经度 | ||
- y string 点数据表示 纬度 | ||
- x1 string 经度 | ||
- x2 string 纬度 | ||
|
||
### 点数据通过 CSV 加载 | ||
|
||
```javascript | ||
layer.source(data, { | ||
parser: { | ||
type: 'csv', | ||
x: 'lng', | ||
y: 'lat', | ||
}, | ||
}); | ||
``` | ||
|
||
[CSV 数据 demo 示例](../../../examples/point/bubble#scatter) | ||
|
||
### 线段弧线数据通过 CSV 加载 | ||
|
||
```javascript | ||
layer.source( | ||
data, | ||
{ | ||
parser:{ | ||
type:'csv', | ||
x:'lng1', | ||
y:'lat1' , | ||
x1:'lng1', | ||
y1:'lat2' , | ||
} | ||
} | ||
}) | ||
|
||
``` | ||
|
||
[CSV 线段数据 demo 示例](../../../examples/gallery/basic#arcCircle) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
title: Image | ||
order: 4 | ||
--- | ||
|
||
Image 数据主要用于在地图根据经纬度范围添加图图片,不如一幅纸制地图扫描版你要放在地图显示。 | ||
|
||
## parser | ||
|
||
- type: image | ||
- extent: 图像的经纬度范围 [minlng, minlat,maxLng, maxLat] | ||
|
||
根据图片的经纬度范围,将图片添加到地图上。 | ||
|
||
```javascript | ||
layer.source( | ||
'https://gw.alipayobjects.com/zos/rmsportal/FnHFeFklTzKDdUESRNDv.jpg', | ||
{ | ||
parser: { | ||
type: 'image', | ||
extent: [121.168, 30.2828, 121.384, 30.4219], | ||
}, | ||
}, | ||
); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
title: Image | ||
order: 4 | ||
--- | ||
|
||
Image 数据主要用于在地图根据经纬度范围添加图图片,不如一幅纸制地图扫描版你要放在地图显示。 | ||
|
||
## parser | ||
|
||
- type: image | ||
- extent: 图像的经纬度范围 [minlng, minlat,maxLng, maxLat] | ||
|
||
根据图片的经纬度范围,将图片添加到地图上。 | ||
|
||
```javascript | ||
layer.source( | ||
'https://gw.alipayobjects.com/zos/rmsportal/FnHFeFklTzKDdUESRNDv.jpg', | ||
{ | ||
parser: { | ||
type: 'image', | ||
extent: [121.168, 30.2828, 121.384, 30.4219], | ||
}, | ||
}, | ||
); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.