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