From 4a1f00f5b9b496332d0e22b643bdfa35b78610be Mon Sep 17 00:00:00 2001 From: thinkinggis Date: Sun, 19 Jan 2020 20:45:21 +0800 Subject: [PATCH] docs: update layer docs --- docs/api/component/marker.zh.md | 2 ++ docs/api/component/popup.en.md | 1 + docs/api/component/popup.zh.md | 2 +- docs/api/layer/layer.en.md | 19 +++++++++++-------- docs/api/layer/layer.zh.md | 19 +++++++++++-------- 5 files changed, 26 insertions(+), 17 deletions(-) diff --git a/docs/api/component/marker.zh.md b/docs/api/component/marker.zh.md index 201ff3885f..acebab05f0 100644 --- a/docs/api/component/marker.zh.md +++ b/docs/api/component/marker.zh.md @@ -118,5 +118,7 @@ new L7.Marker({ ```javascript marker.on('click', (e) => {}); ``` + ## demo 地址 + [demo1](../../../examples/tutorial/marker) diff --git a/docs/api/component/popup.en.md b/docs/api/component/popup.en.md index 6042017242..0b9bf6c9e0 100644 --- a/docs/api/component/popup.en.md +++ b/docs/api/component/popup.en.md @@ -94,5 +94,6 @@ popup.on('close', () => {}); ``` ## demo 地址 + [demo1](../../../examples/point/column) [demo2](../../../examples/line/path) diff --git a/docs/api/component/popup.zh.md b/docs/api/component/popup.zh.md index b8c2fc54a2..3155708790 100644 --- a/docs/api/component/popup.zh.md +++ b/docs/api/component/popup.zh.md @@ -94,6 +94,6 @@ popup.on('close', () => {}); ``` ## demo 地址 + [demo1](../../../examples/point/column) [demo2](../../../examples/line/path) - diff --git a/docs/api/layer/layer.en.md b/docs/api/layer/layer.en.md index 908a7389cb..af71db112b 100644 --- a/docs/api/layer/layer.en.md +++ b/docs/api/layer/layer.en.md @@ -494,25 +494,28 @@ layer.on('unpick', (ev) => {}); // 图层外的操作的所有事件 ## 图层事件 ### inited -option -- target ILayer 当前layer -- type 事件类型 +option + +- target ILayer 当前 layer +- type 事件类型 图层初始化完成后触发 ### add -图层添加到scene + +图层添加到 scene option -- target ILayer 当前layer -- type 事件类型 +- target ILayer 当前 layer +- type 事件类型 ### remove 图层移除时触发 option -- target ILayer 当前layer -- type 事件类型 + +- target ILayer 当前 layer +- type 事件类型 diff --git a/docs/api/layer/layer.zh.md b/docs/api/layer/layer.zh.md index 908a7389cb..af71db112b 100644 --- a/docs/api/layer/layer.zh.md +++ b/docs/api/layer/layer.zh.md @@ -494,25 +494,28 @@ layer.on('unpick', (ev) => {}); // 图层外的操作的所有事件 ## 图层事件 ### inited -option -- target ILayer 当前layer -- type 事件类型 +option + +- target ILayer 当前 layer +- type 事件类型 图层初始化完成后触发 ### add -图层添加到scene + +图层添加到 scene option -- target ILayer 当前layer -- type 事件类型 +- target ILayer 当前 layer +- type 事件类型 ### remove 图层移除时触发 option -- target ILayer 当前layer -- type 事件类型 + +- target ILayer 当前 layer +- type 事件类型