ImageAnnotation
A customized annotation with image resources that you provide.
Declaration
class ImageAnnotation extends AnnotationOverview
There are times when you want to customize the look of an annotation. The easiest way to do that is to use a ImageAnnotation object, which lets you specify your own image resources. Minimally, all you need to provide is a URL to your asset (such as a PNG or JPEG image).
To make your image look crisp on Retina displays, provide URLs to the Retina versions of your asset. You may want to define the anchor of your asset with anchorOffset.
The shape of your icon might affect the placement of the callout. You can modify the position of the callout with calloutOffset.