import { type IAttribute, type IColorPalette } from "@gooddata/sdk-model"; import { type IDrillEventIntersectionElement, type ISeparators } from "@gooddata/sdk-ui"; import { type IColorMapping, type ICustomTooltipConfig } from "@gooddata/sdk-ui-vis-commons"; import type { IGeoLngLat, IGeoLngLatBounds } from "../../../publicTypes/geoCommon.js"; import type { StyleSpecification } from "../../layers/common/mapFacade.js"; import type { GeoBasemap } from "../map/basemap.js"; import { type IGeoChartLegendConfig } from "./legend.js"; import { type IGeoChartPointsConfig } from "./points.js"; import { type IGeoChartViewport } from "./viewport.js"; /** * Configuration for MapLibre-based pushpin rendering. * * @remarks * This config type is used by the MapLibre-based geo engine when rendering pushpin layers. * * @public */ export interface IGeoPushpinChartConfig { center?: IGeoLngLat; /** * Bounding box for custom viewport. Takes priority over center/zoom * and adapts to container dimensions. */ bounds?: IGeoLngLatBounds; isExportMode?: boolean; legend?: IGeoChartLegendConfig; limit?: number; selectedSegmentItems?: string[]; /** * {@inheritDoc IGeoChartConfig.selectedPoints} * @internal */ selectedPoints?: IDrillEventIntersectionElement[][]; /** * Location tooltip label attribute. * * @remarks * Kept for backward compatibility with the legacy GeoPushpinChart API where this lived under `config`. * Prefer `tooltipText` on pushpin layers when using {@link GeoChart}. */ tooltipText?: IAttribute; zoom?: number; /** * Mapbox access token. * * @remarks * Kept only for backward compatibility with the legacy Mapbox-based implementation. * MapLibre-based geo charts ignore this value. * * @deprecated Kept only for backward compatibility. Not used by MapLibre-based geo charts. */ mapboxToken?: string; /** * Custom MapLibre style URL or inline specification. */ mapStyle?: string | StyleSpecification; /** * Selected basemap style identifier (e.g. `"standard-light"`, `"satellite"`). * * @remarks * `undefined` uses the backend default basemap. * * @alpha */ basemap?: GeoBasemap; /** * Maximum zoom level allowed on the map. * * @remarks * - `undefined` keeps default max zoom level * - `null` switches to unrestricted zoom level */ maxZoomLevel?: number | null; separators?: ISeparators; viewport?: IGeoChartViewport; points?: IGeoChartPointsConfig; colors?: string[]; colorPalette?: IColorPalette; colorMapping?: IColorMapping[]; showLabels?: boolean; /** * Specify the accessibility title for the map canvas. * * @internal */ a11yTitle?: string; /** * Enables geo accessibility enhancements introduced for map canvas, legend semantics, * live announcements, and alternate table view. * * @internal */ enableGeoChartA11yImprovements?: boolean; /** * Enables basemap configuration that relies on backend style support. * * @internal */ enableGeoBasemapConfig?: boolean; /** * Enables advanced geo viewport configuration. * * @internal */ enableGeoChartsViewportConfig?: boolean; /** * Applies viewport navigation limits (pan/zoom locks) at runtime. * * @internal */ applyViewportNavigation?: boolean; cooperativeGestures?: boolean; enableExecutionCancelling?: boolean; respectLegendPosition?: boolean; /** * Custom tooltip configuration with Markdown content and metric/attribute references. * * @alpha */ customTooltip?: ICustomTooltipConfig; } //# sourceMappingURL=pushpinChart.d.ts.map