Skip to content

Source

imagelayerBy providing online picturesurlSpecify data viaextentSpecifies the position of the image within a rectangular range on the map.

layer.source('https://gw.alipayobjects.com/zos/rmsportal/FnHFeFklTzKDdUESRNDv.jpg', {
  parser: {
    type: 'image',
    extent: [121.168, 30.2828, 121.384, 30.4219],
  },
});

Also available viacoordinatesSpecify a series of locations that define the location of the image within an irregularly shaped range on the map.

layer.source('https://gw.alipayobjects.com/zos/rmsportal/FnHFeFklTzKDdUESRNDv.jpg', {
  parser: {
    type: 'image',
    coordinates: [
      [100.959388, 41.619522],
      [101.229887, 41.572654],
      [101.16971, 41.377836],
      [100.900015, 41.424628],
    ],
  },
});
© Copyright 2026 Ant Group Co., Ltd..备案号:京ICP备15032932号-38
Site search
Documentation and examplesType to start searching

Search documentation, APIs, and examples

↑↓Select↵OpenEscClose