Labels add descriptive overlays to the map surface to provide context and aid navigation for anyone viewing the map. Unlike markers — which represent specific pinned locations linked to place data — labels are purely visual annotations. They are ideal for naming neighborhoods, identifying regions, marking boundaries, or highlighting areas of interest without pinning a specific geographic coordinate.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/jacobsamo/buzztrip/llms.txt
Use this file to discover all available pages before exploring further.
Label Properties
The primary text displayed by the label on the map surface.
A supporting description shown when the label is selected or previewed.
An optional icon drawn from the
iconSchema, displayed alongside the label text. Either icon or color (or both) must be provided — see the note below.An optional hex color used to style the label’s visual appearance on the map. Either
icon or color (or both) must be provided.A reference to the user who created the label. Automatically set to the authenticated user when calling
createLabel.Every label must have either an
icon, a color, or both. A label with neither is rejected by schema validation with the message: “Either icon or color must be provided.” This is enforced by a .refine() rule on both labelsSchema and labelsEditSchema.Use Cases
Labels are well-suited for annotating broad areas or providing contextual information that does not belong to a single pinned location:Neighborhoods & Districts
Name areas of a city map — “Old Town”, “Waterfront District”, “Arts Quarter” — so viewers can orient themselves quickly.
Event Zones
Mark functional areas of an event venue — “Main Stage”, “Food Court”, “Parking”, “VIP Area” — without cluttering the map with individual markers.
Geographic Regions
Identify national parks, nature reserves, or administrative boundaries to provide geographic context alongside your markers and paths.
Photo Shoot Areas
Annotate a location scouting map with zone names like “Golden Hour Spot” or “Wide Angle Setup” to communicate intent to your team.
Visual Appearance
Labels appear as floating text or icon+text overlays anchored to a position on the map canvas. They render above the base map layer but do not obstruct interaction with markers or paths. Thecolor field controls the label’s accent color, and the icon field adds a visual glyph next to the title for quick recognition.
Creating Labels
Open the label tool
In the map toolbar, select the label tool and click the position on the map where you want to anchor the label.
Fill in the details
Enter a title and description. Choose an icon, a color, or both — at least one is required.
Editing and Deleting Labels
- Edit — Call
editLabelwith the label ID and updated fields (title,description,icon,color). TheupdatedAttimestamp is refreshed automatically. - Delete — Call
deleteLabelwith the label ID to permanently remove the label from the map.
Labels vs. Markers
| Labels | Markers | |
|---|---|---|
| Purpose | Descriptive area/region annotation | Pinned location with place data |
| Place linkage | None | Linked to places table |
| POI data | No | Yes (address, rating, photos, etc.) |
| Collections | Not supported | Supported |
| Icon + Color | At least one required | Both required |