From 54f9282a99a8d38715c6aefdc293f7fc0c93a495 Mon Sep 17 00:00:00 2001 From: gnezim Date: Fri, 17 Apr 2026 08:35:27 +0300 Subject: [PATCH] Extend IMapMarker with zoomLevel, countryType, highlighted fields --- src/features/flights-map/types.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/features/flights-map/types.ts b/src/features/flights-map/types.ts index 499d4339..ac02917c 100644 --- a/src/features/flights-map/types.ts +++ b/src/features/flights-map/types.ts @@ -72,6 +72,15 @@ export type MarkerStyle = "blue" | "blue-small" | "orange"; /** * A marker to render on the map. + * + * When `zoomLevel` and `countryType` are both set, MapCanvas places the + * marker into the categorized-rendering flow (10 LayerGroups keyed by + * countryType × zoomLevel). Otherwise the marker renders via the legacy + * flat-layer flow. + * + * When `highlighted` is true, the marker is forced into the always-on + * highlight layer with an orange icon regardless of `style` and + * `zoomLevel`. */ export interface IMapMarker { id: string; @@ -80,6 +89,9 @@ export interface IMapMarker { style: MarkerStyle; label?: string | undefined; tooltipPermanent?: boolean | undefined; + zoomLevel?: number | undefined; + countryType?: "ru" | "other" | undefined; + highlighted?: boolean | undefined; } /**