diff --git a/docs/api/component/control.zh.md b/docs/api/component/control.zh.md index 87b2aaee5f..bf2656227d 100644 --- a/docs/api/component/control.zh.md +++ b/docs/api/component/control.zh.md @@ -67,7 +67,7 @@ layer: 图层对象 overlayers 示例 ```javascript - { + const layer = { 图层一: layer1, 图层二: layer2, } diff --git a/docs/api/component/popup.en.md b/docs/api/component/popup.en.md index dc1eb0148b..c57b1c8ea7 100644 --- a/docs/api/component/popup.en.md +++ b/docs/api/component/popup.en.md @@ -39,7 +39,7 @@ const popup = new L7.Popup(option); 经纬度对象 ```javascript -{ +const lnglat = { lng: 112.323, lat: 30.456, } diff --git a/docs/api/component/popup.zh.md b/docs/api/component/popup.zh.md index 78682534cd..c57b1c8ea7 100644 --- a/docs/api/component/popup.zh.md +++ b/docs/api/component/popup.zh.md @@ -39,9 +39,9 @@ const popup = new L7.Popup(option); 经纬度对象 ```javascript -{ - lng: 112.323, - lat: 30.456, +const lnglat = { + lng: 112.323, + lat: 30.456, } ``` diff --git a/packages/maps/src/amap/index.ts b/packages/maps/src/amap/index.ts index ef143e776d..670f502097 100644 --- a/packages/maps/src/amap/index.ts +++ b/packages/maps/src/amap/index.ts @@ -270,7 +270,7 @@ export default class AMapService } amapLoaded = true; this.loadAMapScript( - `https://webapi.amap.com/maps?v=${AMAP_VERSION}&key=${token}&plugin=Map3D${plugin.join( + `https://webapi.amap.com/maps?v=${AMAP_VERSION}&key=${token}&plugin=Map3D,${plugin.join( ',', )}`, ).then(() => { diff --git a/stories/Layers/components/AnimatePoint.tsx b/stories/Layers/components/AnimatePoint.tsx index 663a7788cf..b8fed03b64 100644 --- a/stories/Layers/components/AnimatePoint.tsx +++ b/stories/Layers/components/AnimatePoint.tsx @@ -19,6 +19,7 @@ export default class AnimatePoint extends React.Component { style: 'dark', center: [112, 23.69], zoom: 2.5, + plugin: ['AMap.ToolBar'], }), });