Instance Property

glyphImage

The image displayed in the marker balloon.

Declaration

@property(nonatomic, copy) UIImage *glyphImage;

Discussion

Use this property or the glyphText property to specify the marker balloon content. If you specify both an image and text, the text is displayed.

The glyph image is displayed when the marker is in the normal state. Create glyph images as template images so that the glyph tint color can be applied to it. Normally, you set the size of this image to 20 by 20 points on iOS and 40 by 40 points on tvOS. However, if you do not provide a separate selected image in the selectedGlyphImage property, make the size of this image 40 by 40 points on iOS and 60 by 40 points on tvOS instead. MapKit scales images that are larger or smaller than those sizes.

See Also

Setting the Marker Content

glyphText

The text to display in the marker balloon.

glyphTintColor

The color to apply to the glyph text or image.

selectedGlyphImage

The image to display when the marker is selected.