ImageFrame.withUriEnvelope constructor

ImageFrame.withUriEnvelope({
  1. required Uri uri,
  2. required Envelope extent,
})

Creates an ImageFrame containing the image identified by the uri for display at the specified geographic extent.

If a spatial reference is not defined for the extent, it is assumed to be the same as the map or scene. If the spatial reference of the extent is different from that of the scene or map, then the image would fail to render. Supported image formats are GeoTIFF, TIFF, JPEG, and PNG. The URI can be a local file path or an HTTP path to an image.

Parameters:

  • uri — A URI that identifies a local or online image source.
  • extent — The geographic extent at which the image is displayed.