Class: ImageSource

ImageSource(image)

Holds an Image with an associated key that uniquely identifies that image. The key is automatically generated but may be reassigned after construction. Instances of this class are used to specify dynamically created image sources for Placemark, SurfaceImage, Polygon textures and other shapes that display imagery.

Constructor

new ImageSource(image)

Constructs an image source.
Parameters:
Name Type Description
image Image The image for this image source.
Source:
Throws:
If the specified image is null or undefined.
Type
ArgumentError

Members

(readonly) image :Image

This image source's image
Type:
  • Image
Source:

key :String

This image source's key. A unique key is automatically generated and assigned during construction. Applications may assign a different key after construction.
Type:
  • String
Default Value:
  • A unique string for this image source.
Source: