antv-l7/examples/amapPlugin/bus/demo/satellite.js

17 lines
303 B
JavaScript
Raw Normal View History

import { Scene } from '@antv/l7';
import { GaodeMap } from '@antv/l7-maps';
const scene = new Scene({
id: 'map',
map: new GaodeMap({
2022-04-07 18:42:45 +08:00
center: [ 105, 30 ],
pitch: 0,
2022-04-07 18:42:45 +08:00
zoom: 2
})
});
scene.on('loaded', () => {
2022-04-07 18:42:45 +08:00
scene.getMapService().map.add(new window.AMap.TileLayer.Satellite());
});