Extend IMapMarker with zoomLevel, countryType, highlighted fields
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user