Instance Property

selectedGlyphImage

The image to display in the balloon when the marker is selected.

Declaration

attribute Object selectedGlyphImage;

Discussion

Provide glyph images as object literals containing absolute or relative URLs to standard, 2x, and 3x Retina display assets. Only "1" is required. The selected glyph image is displayed in the balloon when the marker is in the selected state. If you specify an image for this property, you should also specify an image in the glyphImage property.

Set the size of the selected glyph image size to 40 x 40 pixels. MapKit JS scales glyph images to fit in the balloon. If selectedGlyphImage is not set, then glyphImage is used when the marker is selected. The default image is a pin.

See Also

Setting the Glyph Image and Text

glyphText

The text to display in the marker balloon.

glyphImage

The image to display in the marker balloon.