Contents

glyphImage

An image to display in the marker balloon.

Declaration

@NSCopying var glyphImage: UIImage? { get set }
@NSCopying var glyphImage: NSImage? { get set }

Discussion

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

MapKit displays the glyph image when the marker is in the normal state. Create glyph images as template images so that MapKit can apply the glyph tint color to the image. 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 don’t 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