Skip to content

Conversation

@ander481
Copy link
Contributor

@ander481 ander481 commented Jan 9, 2026

Reusable tooltip label handling in @gisatcz/ptr-fe-core so both native and custom tooltips share the same formatting logic, and wired the new options through MapSet’s tooltip.

The labelTemplate and excludeKeys are now supported and [key] substitution is centralized.

PR Details:
Added TooltipAttributeOptions and label substitution + exclusion handling in getTooltipAttributes.ts.
Passed labelTemplate/excludeKeys from geojsonOptions.tooltipSettings into getTooltipAttributes in handleMapHover.ts and getMapTooltip.ts.
Removed the manual label substitution in getMapTooltip.ts because it now happens in the shared helper.

Important: The demo that reflects how to use tooltip is presented in fe-core: https://github.com/Gisat/fe-core/pull/314

@ander481 ander481 self-assigned this Jan 9, 2026
@ander481 ander481 added the minor Increment the minor version when merged label Jan 9, 2026
Copy link
Contributor

@KrystofVavra KrystofVavra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’m not really sure why you decided to do this. What was the issue or use case? I feel like everything needed for the demo was already present...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

minor Increment the minor version when merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants