<!--
{
  "availability" : [
    "MapKit JS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/MarkerAnnotation/glyphText",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "instp/mapkit.MarkerAnnotation/glyphText"
  },
  "title" : "glyphText"
}
-->

# glyphText

The text to display in the marker balloon.

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

## 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`](/documentation/MapKitJS/MarkerAnnotation/glyphImage) and [`glyphText`](/documentation/MapKitJS/MarkerAnnotation/glyphText), MapKit JS ignores the glyph image, and displays the glyph text.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)