mirror of https://gitee.com/antv-l7/antv-l7
docs: 调整样式
This commit is contained in:
parent
756e15ae84
commit
e8ab07778d
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: Base Layer
|
||||
order: 2
|
||||
---
|
||||
|
||||
`markdown:docs/api/base.zh.md`
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: 图层基类
|
||||
order: 0
|
||||
order: 2
|
||||
---
|
||||
|
||||
`markdown:docs/common/style.md`
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: CityBuild
|
||||
order: 6
|
||||
---
|
||||
|
||||
`markdown:docs/api/cityBuilding/cityBuilding.zh.md`
|
|
@ -34,7 +34,7 @@ layer.animate(true);
|
|||
|
||||
其他 style 配置项同
|
||||
|
||||
[layer#style](./layer#style)
|
||||
[baselayer#style](../base#style)
|
||||
|
||||
## 自定义动画频率
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
title: normal
|
||||
order: 1
|
||||
---
|
||||
|
||||
`markdown:docs/api/heatmap_layer/normal.zh.md`
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: ImageLayer
|
||||
order: 5
|
||||
---
|
||||
|
||||
`markdown:docs/api/imagelayer.zh.md`
|
|
@ -1,6 +0,0 @@
|
|||
---
|
||||
title: CityBuild
|
||||
order: 6
|
||||
---
|
||||
|
||||
`markdown:docs/api/layer/cityBuilding.zh.md`
|
|
@ -1,7 +0,0 @@
|
|||
---
|
||||
title: normal
|
||||
order: 1
|
||||
---
|
||||
|
||||
`markdown:docs/api/layer/heatmap_layer/normal.zh.md`
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
---
|
||||
title: ImageLayer
|
||||
order: 5
|
||||
---
|
||||
|
||||
`markdown:docs/api/layer/imagelayer.zh.md`
|
|
@ -1,6 +0,0 @@
|
|||
---
|
||||
title: Base Layer
|
||||
order: 0
|
||||
---
|
||||
|
||||
`markdown:docs/api/layer/layer.zh.md`
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
title: ArcLayer
|
||||
order: 1
|
||||
---
|
||||
`markdown:docs/api/layer/line_layer/arc.zh.md`
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
title: LineLayer
|
||||
order: 0
|
||||
---
|
||||
`markdown:docs/api/layer/line_layer/linelayer.zh.md`
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
title: Path
|
||||
order: 1
|
||||
---
|
||||
`markdown:docs/api/layer/line_layer/path.zh.md`
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
title: Bubble Map
|
||||
order: 1
|
||||
---
|
||||
`markdown:docs/api/layer/point_layer/bubble.zh.md`
|
|
@ -1,6 +0,0 @@
|
|||
---
|
||||
title: Chart Map
|
||||
order: 6
|
||||
---
|
||||
|
||||
`markdown:docs/api/layer/point_layer/chart.zh.md`
|
|
@ -1,6 +0,0 @@
|
|||
---
|
||||
title: 3D Column
|
||||
order: 5
|
||||
---
|
||||
|
||||
`markdown:docs/api/layer/point_layer/column.zh.md`
|
|
@ -1,6 +0,0 @@
|
|||
---
|
||||
title: Dot Density
|
||||
order: 3
|
||||
---
|
||||
|
||||
`markdown:docs/api/layer/point_layer/dot.zh.md`
|
|
@ -1,6 +0,0 @@
|
|||
---
|
||||
title: Custom Marker
|
||||
order: 7
|
||||
---
|
||||
|
||||
`markdown:docs/api/layer/point_layer/marker.zh.md`
|
|
@ -1,6 +0,0 @@
|
|||
---
|
||||
title: PointLayer
|
||||
order: 0
|
||||
---
|
||||
|
||||
`markdown:docs/api/layer/point_layer/pointlayer.zh.md`
|
|
@ -1,6 +0,0 @@
|
|||
---
|
||||
title: Scatter Map
|
||||
order: 2
|
||||
---
|
||||
|
||||
`markdown:docs/api/layer/point_layer/scatter.zh.md`
|
|
@ -1,6 +0,0 @@
|
|||
---
|
||||
title: Symbol Map
|
||||
order: 4
|
||||
---
|
||||
|
||||
`markdown:docs/api/layer/point_layer/symbol.zh.md`
|
|
@ -1,6 +0,0 @@
|
|||
---
|
||||
title: Label
|
||||
order: 4
|
||||
---
|
||||
|
||||
`markdown:docs/api/layer/point_layer/text.zh.md`
|
|
@ -1,6 +0,0 @@
|
|||
---
|
||||
title: fill 3D
|
||||
order: 1
|
||||
---
|
||||
`markdown:docs/api/layer/polygon_layer/extrude.zh.md`
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
title: fill
|
||||
order: 1
|
||||
---
|
||||
`markdown:docs/api/layer/polygon_layer/fill.zh.md`
|
|
@ -1,6 +0,0 @@
|
|||
---
|
||||
title: PolygonLayer
|
||||
order: 0
|
||||
---
|
||||
|
||||
`markdown:docs/api/layer/polygon_layer/polygonlayer.zh.md`
|
|
@ -1,6 +0,0 @@
|
|||
---
|
||||
title: Raster
|
||||
order: 5
|
||||
---
|
||||
|
||||
`markdown:docs/api/layer/raster_layer.zh.md`
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: ArcLayer
|
||||
order: 1
|
||||
---
|
||||
`markdown:docs/api/line_layer/arc.zh.md`
|
|
@ -157,5 +157,6 @@ const layer = new LineLayer({})
|
|||
|
||||
### demo 示例
|
||||
|
||||
[弧线 demo](../../../../examples/gallery/basic#arcCircle)
|
||||
[弧线 demo]( ../../../examples/gallery/basic#arcCircle)
|
||||
|
||||
`markdown:docs/common/layer/base.md`
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: LineLayer
|
||||
order: 0
|
||||
---
|
||||
`markdown:docs/api/line_layer/linelayer.zh.md`
|
|
@ -137,6 +137,6 @@ scene.addLayer(layer);
|
|||
}
|
||||
|
||||
```
|
||||
[使用完整 demo](../../../../examples/line/isoline#height)
|
||||
[使用完整 demo](../../../examples/line/isoline#height)
|
||||
|
||||
`markdown:docs/common/layer/base.md`
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Path
|
||||
order: 1
|
||||
---
|
||||
`markdown:docs/api/line_layer/path.zh.md`
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: Map
|
||||
order: 2
|
||||
order: 1
|
||||
---
|
||||
|
||||
`markdown:docs/common/style.md`
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: 地图 Map
|
||||
order: 2
|
||||
order: 1
|
||||
---
|
||||
|
||||
`markdown:docs/common/style.md`
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Bubble Map
|
||||
order: 1
|
||||
---
|
||||
`markdown:docs/api/point_layer/bubble.zh.md`
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: Chart Map
|
||||
order: 6
|
||||
---
|
||||
|
||||
`markdown:docs/api/point_layer/chart.zh.md`
|
|
@ -8,4 +8,4 @@ order: 6
|
|||
|
||||
通过自定义 Marker 实现自定义图表
|
||||
|
||||
[demo 示例](../../../../examples/point/chart)
|
||||
[demo 示例](../../../examples/point/chart#bar)
|
|
@ -2,7 +2,7 @@
|
|||
title: Cluster Map
|
||||
order: 5
|
||||
---
|
||||
`markdown:docs/api/layer/point_layer/cluster.zh.md`
|
||||
`markdown:docs/api/point_layer/cluster.zh.md`
|
||||
|
||||
## 使用
|
||||
|
|
@ -12,7 +12,7 @@ order: 5
|
|||
|
||||
### Source
|
||||
|
||||
[source 文档](../../source/source)
|
||||
[source 文档](../source/source)
|
||||
|
||||
### 配置项
|
||||
|
||||
|
@ -84,12 +84,12 @@ const pointLayer = new PointLayer({})
|
|||
});
|
||||
```
|
||||
|
||||
[聚合图使用案例](../../../examples/point/cluster)
|
||||
[聚合图使用案例](../../../examples/point/cluster#cluster)
|
||||
|
||||
### FAQ
|
||||
|
||||
PointLayer 的聚合图采用 WebGL 绘制,不支持自定义具体聚合样式,如果有自定义的需求可以使用 MarkerLayer 的聚合功能,你可以通过 Dom 完全自定义样式。
|
||||
|
||||
[MarkerLayer 聚合](../../component/markerLayer)
|
||||
[MarkerLayer 聚合](../component/markerLayer)
|
||||
|
||||
`markdown:docs/common/layer/base.md`
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: 3D Column
|
||||
order: 5
|
||||
---
|
||||
|
||||
`markdown:docs/api/point_layer/column.zh.md`
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: Dot Density
|
||||
order: 3
|
||||
---
|
||||
|
||||
`markdown:docs/api/point_layer/dot.zh.md`
|
|
@ -46,6 +46,6 @@ scene.addLayer(pointLayer);
|
|||
|
||||
## 相关 demo
|
||||
|
||||
[城市亮度图](../../../../examples/point/dot)
|
||||
[城市亮度图](../../../examples/point/dot#normal2)
|
||||
|
||||
`markdown:docs/common/layer/base.md`
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: Custom Marker
|
||||
order: 7
|
||||
---
|
||||
|
||||
`markdown:docs/api/point_layer/marker.zh.md`
|
|
@ -9,6 +9,6 @@ order: 7
|
|||
|
||||
## 使用
|
||||
|
||||
[Marker 文档](../../component)
|
||||
[Marker 文档](../component/marker)
|
||||
|
||||
[MarkerLayer 文档](../../component/markerLayer)
|
||||
[MarkerLayer 文档](../component/markerLayer)
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: PointLayer
|
||||
order: 0
|
||||
---
|
||||
|
||||
`markdown:docs/api/point_layer/pointlayer.zh.md`
|
|
@ -28,9 +28,9 @@ shape 支持
|
|||
|
||||
点数据类型,根据经纬点绘制图形,目前支持三种数据结构
|
||||
|
||||
- [GeoJSON]('../../../../source/geojson/#point')
|
||||
- [CSV]('../../../../source/csv/#parser')
|
||||
- [JSON]('../../../../source/json/#点数据')
|
||||
- [GeoJSON](../source/geojson/#point)
|
||||
- [CSV](../source/csv/#parser)
|
||||
- [JSON](../source/json/#点数据)
|
||||
|
||||
**图片标注**
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: Scatter Map
|
||||
order: 2
|
||||
---
|
||||
|
||||
`markdown:docs/api/point_layer/scatter.zh.md`
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: Symbol Map
|
||||
order: 4
|
||||
---
|
||||
|
||||
`markdown:docs/api/point_layer/symbol.zh.md`
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: Label
|
||||
order: 4
|
||||
---
|
||||
|
||||
`markdown:docs/api/point_layer/text.zh.md`
|
|
@ -36,6 +36,6 @@ layer.shape('name', 'text');
|
|||
|
||||
## 相关 demo
|
||||
|
||||
[文本标注](../../../../examples/point/text)
|
||||
[文本标注](../../../examples/point/text#point_text)
|
||||
|
||||
`markdown:docs/common/layer/base.md`
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: fill 3D
|
||||
order: 1
|
||||
---
|
||||
`markdown:docs/api/polygon_layer/extrude.zh.md`
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: fill
|
||||
order: 1
|
||||
---
|
||||
`markdown:docs/api/polygon_layer/fill.zh.md`
|
|
@ -35,7 +35,7 @@ style({
|
|||
}
|
||||
})
|
||||
```
|
||||
[径向渐变 in](../../../../examples/polygon/fill#china_linear_in)
|
||||
[径向渐变 out](../../../../examples/polygon/fill#china_linear_out)
|
||||
[径向渐变 in](../../../examples/polygon/fill#china_linear_in)
|
||||
[径向渐变 out](../../../examples/polygon/fill#china_linear_out)
|
||||
|
||||
`markdown:docs/common/layer/base.md`
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: PolygonLayer
|
||||
order: 0
|
||||
---
|
||||
|
||||
`markdown:docs/api/polygon_layer/polygonlayer.zh.md`
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: Raster
|
||||
order: 5
|
||||
---
|
||||
|
||||
`markdown:docs/api/raster_layer.zh.md`
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: Scene
|
||||
order: 2
|
||||
order: 1
|
||||
---
|
||||
|
||||
`markdown:docs/common/style.md`
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: 场景 Scene
|
||||
order: 2
|
||||
order: 1
|
||||
---
|
||||
|
||||
`markdown:docs/common/style.md`
|
||||
|
|
176
gatsby-config.js
176
gatsby-config.js
|
@ -70,30 +70,10 @@ module.exports = {
|
|||
},
|
||||
],
|
||||
docs: [
|
||||
{
|
||||
slug: 'api/l7',
|
||||
title: {
|
||||
zh: '简介 L7',
|
||||
en: 'Introduction'
|
||||
},
|
||||
order: 0
|
||||
},
|
||||
{
|
||||
slug: 'api/l7stable',
|
||||
title: {
|
||||
zh: '1.x 稳定版',
|
||||
en: '1.x Stable'
|
||||
},
|
||||
order: 1
|
||||
},
|
||||
{
|
||||
slug: 'tutorial',
|
||||
title: {
|
||||
zh: '快速入门',
|
||||
en: 'QuickStart'
|
||||
},
|
||||
order: 0
|
||||
},
|
||||
// ****** tutorial
|
||||
// quickStart 0
|
||||
// demo 1
|
||||
// data 2
|
||||
{
|
||||
slug: 'tutorial/map',
|
||||
title: {
|
||||
|
@ -103,34 +83,76 @@ module.exports = {
|
|||
order: 3
|
||||
},
|
||||
{
|
||||
slug: 'api/scene',
|
||||
slug: 'tutorial/interactive',
|
||||
title: {
|
||||
zh: '场景 Scene',
|
||||
en: 'Scene'
|
||||
zh: '交互',
|
||||
en: 'interactive'
|
||||
},
|
||||
order: 1
|
||||
order: 4
|
||||
},
|
||||
|
||||
// ****** api
|
||||
{
|
||||
slug: 'api/district',
|
||||
slug: 'api/base',
|
||||
title: {
|
||||
zh: '行政区划',
|
||||
en: 'District'
|
||||
zh: '图层 base',
|
||||
en: 'Layer'
|
||||
},
|
||||
order: 2
|
||||
},
|
||||
{
|
||||
slug: 'api/draw',
|
||||
slug: 'api/point_layer',
|
||||
title: {
|
||||
zh: '绘制组件',
|
||||
en: 'Draw Component'
|
||||
zh: '点图层',
|
||||
en: 'PointLayer'
|
||||
},
|
||||
order: 2
|
||||
},
|
||||
{
|
||||
slug: 'api/react',
|
||||
slug: 'api/line_layer',
|
||||
title: {
|
||||
zh: 'React 组件',
|
||||
en: 'React Component'
|
||||
zh: '线图层',
|
||||
en: 'LineLayer'
|
||||
},
|
||||
order: 2
|
||||
},
|
||||
{
|
||||
slug: 'api/polygon_layer',
|
||||
title: {
|
||||
zh: '面图层',
|
||||
en: 'PolygonLayer'
|
||||
},
|
||||
order: 2
|
||||
},
|
||||
{
|
||||
slug: 'api/heatmap_layer',
|
||||
title: {
|
||||
zh: '热力图层',
|
||||
en: 'HeatMapLayer'
|
||||
},
|
||||
order: 2
|
||||
},
|
||||
{
|
||||
slug: 'api/imagelayer',
|
||||
title: {
|
||||
zh: '图片图层',
|
||||
en: 'ImageLayer'
|
||||
},
|
||||
order: 2
|
||||
},
|
||||
{
|
||||
slug: 'api/raster',
|
||||
title: {
|
||||
zh: '栅格图层',
|
||||
en: 'RasterLayer'
|
||||
},
|
||||
order: 2
|
||||
},
|
||||
{
|
||||
slug: 'api/cityBuilding',
|
||||
title: {
|
||||
zh: '城市图层',
|
||||
en: 'CityBuildLayer'
|
||||
},
|
||||
order: 2
|
||||
},
|
||||
|
@ -142,62 +164,6 @@ module.exports = {
|
|||
},
|
||||
order: 5
|
||||
},
|
||||
{
|
||||
slug: 'api/layer/point_layer',
|
||||
title: {
|
||||
zh: '点图层',
|
||||
en: 'PointLayer'
|
||||
},
|
||||
order: 1
|
||||
},
|
||||
{
|
||||
slug: 'api/layer/line_layer',
|
||||
title: {
|
||||
zh: '线图层',
|
||||
en: 'LineLayer'
|
||||
},
|
||||
order: 2
|
||||
},
|
||||
{
|
||||
slug: 'api/layer/polygon_layer',
|
||||
title: {
|
||||
zh: '面图层',
|
||||
en: 'PolygonLayer'
|
||||
},
|
||||
order: 3
|
||||
},
|
||||
{
|
||||
slug: 'api/layer/heatmap_layer',
|
||||
title: {
|
||||
zh: '热力图',
|
||||
en: 'HeatmapLayer'
|
||||
},
|
||||
order: 4
|
||||
},
|
||||
{
|
||||
slug: 'api/layer/image_layer',
|
||||
title: {
|
||||
zh: '图片图层',
|
||||
en: 'IMageLayer'
|
||||
},
|
||||
order: 5
|
||||
},
|
||||
{
|
||||
slug: 'api/layer/raster_layer',
|
||||
title: {
|
||||
zh: '栅格图',
|
||||
en: 'RasterLayer'
|
||||
},
|
||||
order: 6
|
||||
},
|
||||
{
|
||||
slug: 'api/layer/cityBuilding',
|
||||
title: {
|
||||
zh: '城市建筑',
|
||||
en: 'CityBuilding'
|
||||
},
|
||||
order: 8
|
||||
},
|
||||
{
|
||||
slug: 'api/source',
|
||||
title: {
|
||||
|
@ -206,6 +172,30 @@ module.exports = {
|
|||
},
|
||||
order: 5
|
||||
},
|
||||
{
|
||||
slug: 'api/district',
|
||||
title: {
|
||||
zh: '行政区划',
|
||||
en: 'District'
|
||||
},
|
||||
order: 6
|
||||
},
|
||||
{
|
||||
slug: 'api/draw',
|
||||
title: {
|
||||
zh: '绘制组件',
|
||||
en: 'Draw Component'
|
||||
},
|
||||
order: 6
|
||||
},
|
||||
{
|
||||
slug: 'api/react',
|
||||
title: {
|
||||
zh: 'React 组件',
|
||||
en: 'React Component'
|
||||
},
|
||||
order: 6
|
||||
},
|
||||
{
|
||||
slug: 'api/component',
|
||||
title: {
|
||||
|
|
Loading…
Reference in New Issue