import { CompositeLayer, type DefaultProps, type UpdateParameters } from '@deck.gl/core'; import type { BasemapStyle, ResolvedBasemapStyle } from "./style-resolver.js"; /** * Globe-related runtime toggles used by {@link BasemapLayer}. */ export type BasemapGlobeConfig = { /** Renders the atmosphere overlays returned by the globe helpers when available. */ atmosphere?: boolean; /** Renders the main globe basemap content when `true`. */ basemap?: boolean; /** Enables symbol-label rendering on the globe path when `true`. */ labels?: boolean; }; /** * Props accepted by {@link BasemapLayer}. */ export type BasemapLayerProps = { /** Optional deck.gl layer identifier. */ id?: string; /** MapLibre or Mapbox style JSON, or a URL that resolves to one. */ style: string | BasemapStyle | null; /** Load options forwarded to {@link resolveBasemapStyle}. */ loadOptions?: Record | null; /** Selects whether deck layers are generated for a flat map or a globe. */ mode?: 'map' | 'globe'; /** Optional globe-specific configuration used when `mode` is `'globe'`. */ globe?: { /** Rendering toggles for globe-specific basemap behavior. */ config?: BasemapGlobeConfig; }; }; /** * Internal state tracked by {@link BasemapLayer}. */ type BasemapLayerState = { /** The fully resolved style definition currently backing the generated sublayers. */ resolvedStyle: ResolvedBasemapStyle | null; /** The most recent style-resolution error, if one occurred. */ loadError: Error | null; /** Monotonic token used to discard stale async style loads. */ loadToken: number; }; /** * A deck.gl {@link CompositeLayer} that loads a style document and renders the * corresponding basemap sublayers. */ export declare class BasemapLayer extends CompositeLayer> { /** Deck.gl layer name. */ static layerName: string; /** Default props for {@link BasemapLayer}. */ static defaultProps: DefaultProps; /** Current layer state. */ state: BasemapLayerState; /** Initializes the asynchronous style-loading state. */ initializeState(): void; /** Reacts to changes in the input style definition. */ updateState({ props, oldProps, changeFlags }: UpdateParameters): void; /** * Resolves the configured style input and stores the latest successful result * in layer state. */ loadStyle(style: BasemapLayerProps['style'], loadOptions: BasemapLayerProps['loadOptions']): void; /** Renders the sublayers generated from the resolved style definition. */ renderLayers(): any[]; } export {}; //# sourceMappingURL=basemap-layer.d.ts.map