diff --git a/docs/api/component/marker.zh.md b/docs/api/component/marker.zh.md index 28eb44ae39..5038f6bc88 100644 --- a/docs/api/component/marker.zh.md +++ b/docs/api/component/marker.zh.md @@ -94,11 +94,9 @@ el.style.background = getColor(data[i].v); const marker = new L7.Marker({ element: el, -}) - .setLnglat([data[i].x * 1, data[i].y]); - - scene.addMarker(marker); +}).setLnglat([data[i].x * 1, data[i].y]); +scene.addMarker(marker); ``` #### 设置 popup @@ -112,7 +110,7 @@ new L7.Marker({ element: el, }) .setLnglat(item.coordinates) - .setPopup(popup) + .setPopup(popup); ``` ## 事件 diff --git a/docs/api/component/popup.en.md b/docs/api/component/popup.en.md index 47ff64e2e8..22b6e1e71c 100644 --- a/docs/api/component/popup.en.md +++ b/docs/api/component/popup.en.md @@ -3,7 +3,6 @@ title: Popup order: 0 --- - 地图标注信息窗口,用于展示地图要素的属性信息 ## 构造函数 diff --git a/docs/api/component/popup.zh.md b/docs/api/component/popup.zh.md index 65a822116a..95eae0da2b 100644 --- a/docs/api/component/popup.zh.md +++ b/docs/api/component/popup.zh.md @@ -26,7 +26,6 @@ const popup = new L7.Popup(option); scene.addPopup(popup); ``` - ## 方法 #### setLnglat @@ -53,6 +52,7 @@ const lnglat = { ```javascript popup.setLnglat([112, 32]); ``` + #### setHTML **参数**:html 字符串 diff --git a/docs/api/react/layer.zh.md b/docs/api/react/layer.zh.md index e1582ba0ff..01fbb7b3d3 100644 --- a/docs/api/react/layer.zh.md +++ b/docs/api/react/layer.zh.md @@ -21,9 +21,7 @@ order: 2 ### attributeOption -color, size, shape 等图形映射通道配置项 - -#### option +color, size, shape 等图形映射通道,通过下面参数配置 - field 映射字段,如果是常量设置为 null - values 映射值 支持 常量,数组,回调函数,如果 values 为数组或回调需要设置 field 字段 @@ -32,12 +30,12 @@ color, size, shape 等图形映射通道配置项 数据源配置项 -#### Option - - data 支持 geojson、csv、json - parser 数据解析配置项 - transforms 数据处理配置项 +具体配置项 + ```jsx import { PolygonLayer } from '@antv/l7-react'; { animateMarker(0); - // }); } public render() {