ImageSource

constructor(id: String?, coordinates: LatLngQuad?, uri: URI)

Create an ImageSource from coordinates and an image URI

An URI is a combination of a protocol and a resource path. The following URI protocol schemes are supported:

  • http://

  • load resources using HyperText Transfer Protocol

  • file://

  • load resources from the Android file system

  • asset://

  • load resources from the binary packaged assets folder

Parameters

id

The source id

coordinates

The Latitude and Longitude of the four corners of the image

uri

json file uri


constructor(id: String?, coordinates: LatLngQuad?, bitmap: Bitmap)

Create an ImageSource from coordinates and a bitmap image

Parameters

id

The source id

coordinates

The Latitude and Longitude of the four corners of the image

bitmap

A Bitmap image


constructor(id: String?, coordinates: LatLngQuad?, @DrawableRes resourceId: Int)

Create an ImageSource from coordinates and a bitmap image resource

Parameters

id

The source id

coordinates

The Latitude and Longitude of the four corners of the image

resourceId

The resource ID of a Bitmap image


constructor(id: String?, coordinates: LatLngQuad?, url: URL)

Deprecated

use {@link ImageSource#ImageSource(String, LatLngQuad, URI)} instead

Create an ImageSource from coordinates and an image URL

Parameters

id

The source id

coordinates

The Latitude and Longitude of the four corners of the image

url

remote json file