将图片添加到地图上,需要指定图片的经纬度范围
const layer = new ImageLayer({}); layer.source( 'https://gw.alipayobjects.com/zos/rmsportal/FnHFeFklTzKDdUESRNDv.jpg', { parser: { type: 'image', extent: [ 121.168, 30.2828, 121.384, 30.4219 ] } } );