glyphImage
The image to display in the marker balloon.
Declaration
glyphImage?:
| ImageDelegate
| ImageHashObject
| ImageSource
| Promise<ImageSource>
| null;Mentioned in
Discussion
The glyph image value can be an object literal containing absolute or relative URLs to standard, 2x, and 3x Retina display assets, an ImageDelegate, an ImageSource such as an HTMLCanvasElement or ImageBitmap, or a Promise that resolves to an ImageSource. The framework requires at least one image at 20 x 20 pixels.
MapKit JS uses the default glyph image of a pin if you set glyphImage to null or undefined. If you specify both a glyphImage and glyphText, the framework ignores the glyph image and displays the glyph text.