OptionaldomOverride the default CSS styles applied to the textarea popup DOM elements.
Each property is merged over the corresponding defaults from
defaultTextAreaStyleOptions / defaultSubmitButtonStyleOptions.
OptionaldraggableOptionaleditableWhen true, clicking/tapping near an existing label opens the
textarea pre-filled with the current text so the user can edit it in place.
Defaults to false.
OptionalonCalled after every successful commit — both new placements and edits.
The TerraDraw feature ID of the committed Point feature.
The trimmed text string that was committed.
OptionalplaceholderPlaceholder text shown in the textarea popup before the user types.
Defaults to "Enter label...".
OptionalstylesMapLibre symbol-layer style overrides applied to committed text features.
Merged over the defaults supplied by MaplibreTerradrawControl.
Constructor options for TerraDrawTextMode.
Example