createWithImage

fun createWithImage(position: Position, imageSource: ImageSource, label: String? = null): Placemark

This factory method creates a Placemark and an associated PlacemarkAttributes bundle that draws the given image centered on the supplied position with an optional nearby label.

Return

A new Placemark with a PlacemarkAttributes bundle.

Parameters

position

The geographic position with the placemark is drawn.

imageSource

The object containing the image that is drawn.

label

The optional text that is drawn near the image.