From 5bcc343f6bfce190f904dbeca7fe82ae1f41fa43 Mon Sep 17 00:00:00 2001 From: shihui Date: Mon, 17 Jan 2022 20:39:01 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E5=AE=8C=E5=96=84=E5=AE=98=E7=BD=91?= =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/component/marker.en.md | 1 + docs/api/component/marker.zh.md | 2 +- docs/api/component/popup.en.md | 4 ++-- docs/api/component/popup.zh.md | 4 ++-- docs/api/line_layer/arc3d.zh.md | 4 ++-- docs/api/line_layer/features/animate.zh.md | 2 +- docs/api/line_layer/features/linear.zh.md | 2 +- docs/api/line_layer/features/texture.zh.md | 4 ++-- docs/api/line_layer/features/thetaOffset.zh.md | 2 +- docs/api/line_layer/linelayer.zh.md | 2 +- docs/api/line_layer/path.zh.md | 2 +- docs/api/point_layer/simple.zh.md | 2 -- docs/api/polygon_layer/extrude.zh.md | 2 +- docs/api/source/json.zh.md | 2 +- docs/api/source/source.zh.md | 2 +- docs/api/wind.zh.md | 1 + docs/common/layer/layer_encode.md | 4 ++-- docs/common/layer/layer_texture.md | 4 ++-- examples/line/arc/demo/meta.json | 2 +- examples/line/arc/demo/trip_arc_dark.js | 4 ++-- 20 files changed, 26 insertions(+), 26 deletions(-) diff --git a/docs/api/component/marker.en.md b/docs/api/component/marker.en.md index 097f886ebf..65f95512b1 100644 --- a/docs/api/component/marker.en.md +++ b/docs/api/component/marker.en.md @@ -87,3 +87,4 @@ new L7.Marker({ .setLnglat(item.coordinates) .setPopup(popup); ``` +[demo1](../../../examples/tutorial/marker#amap) \ No newline at end of file diff --git a/docs/api/component/marker.zh.md b/docs/api/component/marker.zh.md index 06f53ac9e4..13ef4020e7 100644 --- a/docs/api/component/marker.zh.md +++ b/docs/api/component/marker.zh.md @@ -140,4 +140,4 @@ marker.on('click', (e) => {}); ## demo 地址 -[demo1](../../../examples/tutorial/marker) +[demo1](../../../examples/tutorial/marker#amap) diff --git a/docs/api/component/popup.en.md b/docs/api/component/popup.en.md index e14cf98717..4d24a1977f 100644 --- a/docs/api/component/popup.en.md +++ b/docs/api/component/popup.en.md @@ -153,5 +153,5 @@ popup.on('close', () => {}); ## demo 地址 -[demo1](../../../examples/point/column) -[demo2](../../../examples/line/path) +[demo1](../../../examples/point/column#column_linear) +[demo2](../../../examples/line/path#bus_light) diff --git a/docs/api/component/popup.zh.md b/docs/api/component/popup.zh.md index 8cb878b642..77666ba09d 100644 --- a/docs/api/component/popup.zh.md +++ b/docs/api/component/popup.zh.md @@ -146,5 +146,5 @@ popup.on('close', () => {}); ## demo 地址 -[demo1](../../../examples/point/column) -[demo2](../../../examples/line/path) +[demo1](../../../examples/point/column#column_linear) +[demo2](../../../examples/line/path#bus_light) diff --git a/docs/api/line_layer/arc3d.zh.md b/docs/api/line_layer/arc3d.zh.md index d7d3251a18..b1d2d707b6 100644 --- a/docs/api/line_layer/arc3d.zh.md +++ b/docs/api/line_layer/arc3d.zh.md @@ -29,9 +29,9 @@ const layer = new LineLayer({}) }); ``` -案例 +案例 -[在线案例](../../../examples/gallery/basic#arcCircle) +[在线案例](../../../examples/line/arc#trip_arc) ### shape diff --git a/docs/api/line_layer/features/animate.zh.md b/docs/api/line_layer/features/animate.zh.md index 179458349f..4ca4c0bda0 100644 --- a/docs/api/line_layer/features/animate.zh.md +++ b/docs/api/line_layer/features/animate.zh.md @@ -29,7 +29,7 @@ L7 目前动画参数为相对单位,我们默认一条线段的长度为 1 如果 interval = 0.2,则一条轨迹将会分成 5 段,如果 interval = 0.5 则为两段。 -案例 +案例 [在线案例](../../../examples/gallery/animate#plane_animate2) diff --git a/docs/api/line_layer/features/linear.zh.md b/docs/api/line_layer/features/linear.zh.md index 333109be87..683ec3b73f 100644 --- a/docs/api/line_layer/features/linear.zh.md +++ b/docs/api/line_layer/features/linear.zh.md @@ -22,6 +22,6 @@ const layer = new LineLayer({}) }); ``` -案例 +案例 [在线案例](../../../examples/line/arc#trip_arc_dark_linear) diff --git a/docs/api/line_layer/features/texture.zh.md b/docs/api/line_layer/features/texture.zh.md index 8433a08c39..c9a648dd07 100644 --- a/docs/api/line_layer/features/texture.zh.md +++ b/docs/api/line_layer/features/texture.zh.md @@ -31,7 +31,7 @@ fetch('https://gw.alipayobjects.com/os/basement_prod/40ef2173-df66-4154-a8c0-785 - lineTexture 指定是否开启纹理贴图能力 - iconStep 指定贴图在线图层上面排布的间隔 -案例 +案例 [在线案例](../../../examples/gallery/animate#animate_path_texture) @@ -67,5 +67,5 @@ fetch('https://gw.alipayobjects.com/os/basement_prod/40ef2173-df66-4154-a8c0-785 ``` -[在线案例](../../../examples/gallery/animate#route_line) +[在线案例](../../../examples/line/animate#plane_animate2) diff --git a/docs/api/line_layer/features/thetaOffset.zh.md b/docs/api/line_layer/features/thetaOffset.zh.md index c42ce3b326..8cdceaee79 100644 --- a/docs/api/line_layer/features/thetaOffset.zh.md +++ b/docs/api/line_layer/features/thetaOffset.zh.md @@ -20,6 +20,6 @@ const layer = new LineLayer({}) thetaOffset: 0.35, }); ``` -案例 +案例 [在线案例](../../../examples/gallery/animate#route_line) diff --git a/docs/api/line_layer/linelayer.zh.md b/docs/api/line_layer/linelayer.zh.md index 637f3f0323..b5fec00887 100644 --- a/docs/api/line_layer/linelayer.zh.md +++ b/docs/api/line_layer/linelayer.zh.md @@ -87,6 +87,6 @@ lineLayer.size([1, 2]); // 宽度为1,高度2 `markdown:docs/api/line_layer/features/texture.zh.md` -[在线案例](../../../examples/line/isoline#height) +`markdown:docs/api/line_layer/features/vertexHeight.zh.md` `markdown:docs/common/layer/base.md` diff --git a/docs/api/line_layer/path.zh.md b/docs/api/line_layer/path.zh.md index 652d54e790..c17bfa0195 100644 --- a/docs/api/line_layer/path.zh.md +++ b/docs/api/line_layer/path.zh.md @@ -12,7 +12,7 @@ order: 1 import { LineLayer } from '@antv/l7'; ``` -案例 +案例 [在线案例](../../../examples/gallery/animate#animate_path) diff --git a/docs/api/point_layer/simple.zh.md b/docs/api/point_layer/simple.zh.md index 1b2f3c885c..12ea22bfde 100644 --- a/docs/api/point_layer/simple.zh.md +++ b/docs/api/point_layer/simple.zh.md @@ -37,8 +37,6 @@ import { PointLayer } from '@antv/l7'; scene.getPointSizeRange(); // Float32Array - [min, max] ``` -## 相关 demo - [在线案例](../../../examples/point/dot#normal2) `markdown:docs/common/layer/base.md` diff --git a/docs/api/polygon_layer/extrude.zh.md b/docs/api/polygon_layer/extrude.zh.md index a9f8484885..0c7a5041fa 100644 --- a/docs/api/polygon_layer/extrude.zh.md +++ b/docs/api/polygon_layer/extrude.zh.md @@ -47,6 +47,6 @@ style({ }); ``` -[光照拾取](../../../../examples/react/covid#covid_extrude) +[光照拾取](/zh/examples/react/covid#covid_extrude) `markdown:docs/common/layer/base.md` diff --git a/docs/api/source/json.zh.md b/docs/api/source/json.zh.md index 44d19f7891..28b753bba0 100644 --- a/docs/api/source/json.zh.md +++ b/docs/api/source/json.zh.md @@ -41,7 +41,7 @@ layer.source(data, { }); ``` -[JOSN 数据 demo 示例](../../../examples/gallery/basic) +[JOSN 数据 demo 示例](../../../examples/gallery/animate#animate_path_texture) ### 通用解析方式 diff --git a/docs/api/source/source.zh.md b/docs/api/source/source.zh.md index baf8d161ea..8522c9398f 100644 --- a/docs/api/source/source.zh.md +++ b/docs/api/source/source.zh.md @@ -40,7 +40,7 @@ source 地理数据处理模块,主要包含数据解析(parser),和数据 - minZoom: 最小聚合缩放等级 **number** default 0 - maxZoom: 最大聚合缩放等级 **number** default 16 -[聚合图使用案例](../../../examples/point/cluster) +[聚合图使用案例](../../../examples/point/cluster#cluster) ### parser diff --git a/docs/api/wind.zh.md b/docs/api/wind.zh.md index c591361c42..7d0a67af7f 100644 --- a/docs/api/wind.zh.md +++ b/docs/api/wind.zh.md @@ -18,6 +18,7 @@ import { WindLayer } from '@antv/l7'; (data, options) => WindLayer, 设置风场相关信息的函数 - data: string 存储风场信息的图片地址 +🌟 [数据获取](https://github.com/mapbox/webgl-wind#downloading-weather-data) - options: ```js diff --git a/docs/common/layer/layer_encode.md b/docs/common/layer/layer_encode.md index a09b4c2798..66746bd245 100644 --- a/docs/common/layer/layer_encode.md +++ b/docs/common/layer/layer_encode.md @@ -7,9 +7,9 @@ - data { geojson | json | csv } - config   可选   数据源配置项 - parser 数据解析,默认是解析层 geojson - - transforms [transform,transform ]  数据处理转换 可设置多个 + - transforms [transform,transform ]  数据处理转换可设置多个 -parser 和  transforms [见 source 文档](../../source/source) +parser 和  transforms [见 source 文档](/zh/docs/api/source/source) ```javascript layer.source(data, { diff --git a/docs/common/layer/layer_texture.md b/docs/common/layer/layer_texture.md index 4463a0760c..d9954450f5 100644 --- a/docs/common/layer/layer_texture.md +++ b/docs/common/layer/layer_texture.md @@ -34,6 +34,6 @@ const layer = new LineLayer({ }); ``` -案例 +案例 -[在线案例](../../examples/gallery/animate#animate_path_texture) \ No newline at end of file +[在线案例](../../examples/line/animate#plane_animate2) \ No newline at end of file diff --git a/examples/line/arc/demo/meta.json b/examples/line/arc/demo/meta.json index a14b67b02a..a9df0bf09f 100644 --- a/examples/line/arc/demo/meta.json +++ b/examples/line/arc/demo/meta.json @@ -12,7 +12,7 @@ { "filename": "trip_arc_dark.js", "title": "3D 弧线", - "screenshot": "https://gw.alipayobjects.com/mdn/antv_site/afts/img/A*JjUcTZ8-PC8AAAAAAAAAAABkARQnAQ" + "screenshot": "https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*Qg8sQ4H9RVsAAAAAAAAAAAAAARQnAQ" }, { diff --git a/examples/line/arc/demo/trip_arc_dark.js b/examples/line/arc/demo/trip_arc_dark.js index 54de46829d..522cdbd356 100644 --- a/examples/line/arc/demo/trip_arc_dark.js +++ b/examples/line/arc/demo/trip_arc_dark.js @@ -18,7 +18,7 @@ scene.on('loaded', () => { const layer = new LineLayer({}) .source(data, { parser: { - type: 'csv', + type: 'json', x: 'from_lon', y: 'from_lat', x1: 'to_lon', @@ -26,7 +26,7 @@ scene.on('loaded', () => { } }) .size(1) - .shape('arc') + .shape('arc3d') .color('#FF7C6A') .style({ segmentNumber: 15,