mirror of https://gitee.com/antv-l7/antv-l7
fix: amap 加载地图插件问题
This commit is contained in:
parent
064a715331
commit
2133b72035
|
@ -67,7 +67,7 @@ layer: 图层对象
|
||||||
overlayers 示例
|
overlayers 示例
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
{
|
const layer = {
|
||||||
图层一: layer1,
|
图层一: layer1,
|
||||||
图层二: layer2,
|
图层二: layer2,
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,7 @@ const popup = new L7.Popup(option);
|
||||||
经纬度对象
|
经纬度对象
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
{
|
const lnglat = {
|
||||||
lng: 112.323,
|
lng: 112.323,
|
||||||
lat: 30.456,
|
lat: 30.456,
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,7 @@ const popup = new L7.Popup(option);
|
||||||
经纬度对象
|
经纬度对象
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
{
|
const lnglat = {
|
||||||
lng: 112.323,
|
lng: 112.323,
|
||||||
lat: 30.456,
|
lat: 30.456,
|
||||||
}
|
}
|
||||||
|
|
|
@ -270,7 +270,7 @@ export default class AMapService
|
||||||
}
|
}
|
||||||
amapLoaded = true;
|
amapLoaded = true;
|
||||||
this.loadAMapScript(
|
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(() => {
|
).then(() => {
|
||||||
|
|
|
@ -19,6 +19,7 @@ export default class AnimatePoint extends React.Component {
|
||||||
style: 'dark',
|
style: 'dark',
|
||||||
center: [112, 23.69],
|
center: [112, 23.69],
|
||||||
zoom: 2.5,
|
zoom: 2.5,
|
||||||
|
plugin: ['AMap.ToolBar'],
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue