---
title: glyphText
framework: mapkitjs
role: symbol
role_heading: Instance Property
path: mapkitjs/markerannotation/glyphtext
---

# glyphText

The text to display in the marker balloon.

## Declaration

```data
get glyphText(): string | null;
set glyphText(value: string | null);
```

## Discussion

Discussion This property is the text to display in the balloon instead of displaying a glyph image. The default value is null. There’s a limited amount of space available for displaying glyph text. Specify no more than two or three characters. If you specify both a glyphImage and glyphText, MapKit JS ignores the glyph image, and displays the glyph text.

## See Also

### Setting the glyph image and text

- [glyphImage](mapkitjs/markerannotation/glyphimage.md)
- [selectedGlyphImage](mapkitjs/markerannotation/selectedglyphimage.md)
