Image
A JSON object for a Snapshot URL that describes the characteristics of custom images to use for map annotations.
Declaration
object ImageProperties
| Name | Type | Description |
|---|---|---|
url | string | A required property that takes the full URL that specifies the location of the image. As an alternative, you may provide a data URL. |
height | integer | The height of the image in scale-independent pixels. This property only required when referencing an annotation with |
width | integer | The width of the image in scale-independent pixels. This property only required when referencing an annotation with |
Discussion
Maps Web Snapshots API supports JPEG, PNG, and GIF image formats for providing custom annotations. You may use up to 10 unique images in a snapshot request, and you may use an image for more than one annotation. It’s a good idea to use a URL shortener for image URLs so you don’t exceed the maximum character limit for a Snapshots URL.
If an image fails to load in a reasonable amount of time, the snapshot rendering uses the default “balloon” style marker.