Skip to content

SiMapTooltipComponent documentation

import { SiMapTooltipComponent } from '@siemens/maps-ng';

Input Properties

NameTypeDefaultDescription
maxLabelLength
number 50

Adds the maximum length of a string thats allowed in a tooltip and if its longer it cuts off the rest and adds 3 dots at the end. If set to -1, it will not cut off the string.

moreText
TranslatableString $localize`:@@SI_MAPS.TOOLTIP_MORE_TEXT:+ {{length}} locations`

Cutoff text for tooltips, when cluster combines more than 4 features

Attributes and Methods

NameTypeDescription
(readonly) nativeElement
HTMLElement
setTooltip()
(labels: string | string[]) => void

Method sets tooltip content. If parameter is of type string, it will directly set it as tooltip content. If it is array of string, it will render it as list of those strings.

Parameters

Types Documentation

import type { TranslatableString } from '@siemens/element-translate-ng/translate-types';

Represents a translatable string. This can either be a translation key, e.g. ACTIONS.EDIT that will be automatically translated when displayed on the UI or a pre-translated string, e.g. Edit. Equivalent to a normal string in usage and functionality.


Except where otherwise noted, content on this site is licensed under MIT License.