mirror of https://gitee.com/antv-l7/antv-l7
fix: amap plugins
This commit is contained in:
parent
2106a3390c
commit
a6db65b857
|
@ -67,10 +67,10 @@ layer: 图层对象
|
|||
overlayers 示例
|
||||
|
||||
```javascript
|
||||
const layer = {
|
||||
图层一: layer1,
|
||||
图层二: layer2,
|
||||
}
|
||||
const layer = {
|
||||
图层一: layer1,
|
||||
图层二: layer2,
|
||||
};
|
||||
```
|
||||
|
||||
```javascript
|
||||
|
|
|
@ -40,9 +40,9 @@ const popup = new L7.Popup(option);
|
|||
|
||||
```javascript
|
||||
const lnglat = {
|
||||
lng: 112.323,
|
||||
lat: 30.456,
|
||||
}
|
||||
lng: 112.323,
|
||||
lat: 30.456,
|
||||
};
|
||||
```
|
||||
|
||||
```javascript
|
||||
|
|
|
@ -40,9 +40,9 @@ const popup = new L7.Popup(option);
|
|||
|
||||
```javascript
|
||||
const lnglat = {
|
||||
lng: 112.323,
|
||||
lat: 30.456,
|
||||
}
|
||||
lng: 112.323,
|
||||
lat: 30.456,
|
||||
};
|
||||
```
|
||||
|
||||
```javascript
|
||||
|
|
|
@ -6,6 +6,7 @@ new Scene({
|
|||
style: 'light',
|
||||
pitch: 0,
|
||||
center: [ 107.054293, 35.246265 ],
|
||||
zoom: 4.056
|
||||
zoom: 4.056,
|
||||
plugin: [ 'AMap.ToolBar' ]
|
||||
})
|
||||
});
|
||||
|
|
|
@ -269,8 +269,9 @@ export default class AMapService
|
|||
this.logger.warn(this.configService.getSceneWarninfo('MapToken'));
|
||||
}
|
||||
amapLoaded = true;
|
||||
plugin.push('Map3D');
|
||||
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=${plugin.join(
|
||||
',',
|
||||
)}`,
|
||||
).then(() => {
|
||||
|
|
Loading…
Reference in New Issue