antv-l7/docs/api/layer/imagelayer.zh.md

389 B

title order
ImageLayer 5

ImageLayer

简介

将图片添加到地图上,需要指定图片的经纬度范围

代码示例

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 ]
    }
  }
);