// This file is generated. Edit build/generate-style-code.ts, then run 'npm run codegen'. /* eslint-disable */ import {latest as styleSpec} from '@maplibre/maplibre-gl-style-spec'; import { Properties, DataConstantProperty, DataDrivenProperty, CrossFadedDataDrivenProperty, CrossFadedProperty, ColorRampProperty, PossiblyEvaluatedPropertyValue, CrossFaded } from '../properties.ts'; import type {Color, Formatted, Padding, NumberArray, ColorArray, ResolvedImage, VariableAnchorOffsetCollection, ProjectionDefinitionSpecification} from '@maplibre/maplibre-gl-style-spec'; import {StylePropertySpecification} from '@maplibre/maplibre-gl-style-spec'; import { ColorType } from '@maplibre/maplibre-gl-style-spec'; export type SymbolLayoutProps = { "symbol-placement": DataConstantProperty<"point" | "line" | "line-center">, "symbol-spacing": DataConstantProperty, "symbol-avoid-edges": DataConstantProperty, "symbol-sort-key": DataDrivenProperty, "symbol-z-order": DataConstantProperty<"auto" | "viewport-y" | "source">, "icon-allow-overlap": DataConstantProperty, "icon-overlap": DataConstantProperty<"never" | "always" | "cooperative">, "icon-ignore-placement": DataConstantProperty, "icon-optional": DataConstantProperty, "icon-rotation-alignment": DataConstantProperty<"map" | "viewport" | "auto">, "icon-size": DataDrivenProperty, "icon-text-fit": DataConstantProperty<"none" | "width" | "height" | "both">, "icon-text-fit-padding": DataConstantProperty<[number, number, number, number]>, "icon-image": DataDrivenProperty, "icon-rotate": DataDrivenProperty, "icon-padding": DataDrivenProperty, "icon-keep-upright": DataConstantProperty, "icon-offset": DataDrivenProperty<[number, number]>, "icon-anchor": DataDrivenProperty<"center" | "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right">, "icon-pitch-alignment": DataConstantProperty<"map" | "viewport" | "auto">, "text-pitch-alignment": DataConstantProperty<"map" | "viewport" | "auto">, "text-rotation-alignment": DataConstantProperty<"map" | "viewport" | "viewport-glyph" | "auto">, "text-field": DataDrivenProperty, "text-font": DataDrivenProperty, "text-size": DataDrivenProperty, "text-max-width": DataDrivenProperty, "text-line-height": DataConstantProperty, "text-letter-spacing": DataDrivenProperty, "text-justify": DataDrivenProperty<"auto" | "left" | "center" | "right">, "text-radial-offset": DataDrivenProperty, "text-variable-anchor": DataConstantProperty>, "text-variable-anchor-offset": DataDrivenProperty, "text-anchor": DataDrivenProperty<"center" | "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right">, "text-max-angle": DataConstantProperty, "text-writing-mode": DataConstantProperty>, "text-rotate": DataDrivenProperty, "text-padding": DataConstantProperty, "text-keep-upright": DataConstantProperty, "text-transform": DataDrivenProperty<"none" | "uppercase" | "lowercase">, "text-offset": DataDrivenProperty<[number, number]>, "text-allow-overlap": DataConstantProperty, "text-overlap": DataConstantProperty<"never" | "always" | "cooperative">, "text-ignore-placement": DataConstantProperty, "text-optional": DataConstantProperty, }; export type SymbolLayoutPropsPossiblyEvaluated = { "symbol-placement": "point" | "line" | "line-center", "symbol-spacing": number, "symbol-avoid-edges": boolean, "symbol-sort-key": PossiblyEvaluatedPropertyValue, "symbol-z-order": "auto" | "viewport-y" | "source", "icon-allow-overlap": boolean, "icon-overlap": "never" | "always" | "cooperative", "icon-ignore-placement": boolean, "icon-optional": boolean, "icon-rotation-alignment": "map" | "viewport" | "auto", "icon-size": PossiblyEvaluatedPropertyValue, "icon-text-fit": "none" | "width" | "height" | "both", "icon-text-fit-padding": [number, number, number, number], "icon-image": PossiblyEvaluatedPropertyValue, "icon-rotate": PossiblyEvaluatedPropertyValue, "icon-padding": PossiblyEvaluatedPropertyValue, "icon-keep-upright": boolean, "icon-offset": PossiblyEvaluatedPropertyValue<[number, number]>, "icon-anchor": PossiblyEvaluatedPropertyValue<"center" | "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right">, "icon-pitch-alignment": "map" | "viewport" | "auto", "text-pitch-alignment": "map" | "viewport" | "auto", "text-rotation-alignment": "map" | "viewport" | "viewport-glyph" | "auto", "text-field": PossiblyEvaluatedPropertyValue, "text-font": PossiblyEvaluatedPropertyValue, "text-size": PossiblyEvaluatedPropertyValue, "text-max-width": PossiblyEvaluatedPropertyValue, "text-line-height": number, "text-letter-spacing": PossiblyEvaluatedPropertyValue, "text-justify": PossiblyEvaluatedPropertyValue<"auto" | "left" | "center" | "right">, "text-radial-offset": PossiblyEvaluatedPropertyValue, "text-variable-anchor": Array<"center" | "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right">, "text-variable-anchor-offset": PossiblyEvaluatedPropertyValue, "text-anchor": PossiblyEvaluatedPropertyValue<"center" | "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right">, "text-max-angle": number, "text-writing-mode": Array<"horizontal" | "vertical">, "text-rotate": PossiblyEvaluatedPropertyValue, "text-padding": number, "text-keep-upright": boolean, "text-transform": PossiblyEvaluatedPropertyValue<"none" | "uppercase" | "lowercase">, "text-offset": PossiblyEvaluatedPropertyValue<[number, number]>, "text-allow-overlap": boolean, "text-overlap": "never" | "always" | "cooperative", "text-ignore-placement": boolean, "text-optional": boolean, }; let layout: Properties; const getLayout = (): Properties => layout = layout || new Properties({ "symbol-placement": new DataConstantProperty(styleSpec["layout_symbol"]["symbol-placement"] as any as StylePropertySpecification, "symbol-placement"), "symbol-spacing": new DataConstantProperty(styleSpec["layout_symbol"]["symbol-spacing"] as any as StylePropertySpecification, "symbol-spacing"), "symbol-avoid-edges": new DataConstantProperty(styleSpec["layout_symbol"]["symbol-avoid-edges"] as any as StylePropertySpecification, "symbol-avoid-edges"), "symbol-sort-key": new DataDrivenProperty(styleSpec["layout_symbol"]["symbol-sort-key"] as any as StylePropertySpecification, "symbol-sort-key"), "symbol-z-order": new DataConstantProperty(styleSpec["layout_symbol"]["symbol-z-order"] as any as StylePropertySpecification, "symbol-z-order"), "icon-allow-overlap": new DataConstantProperty(styleSpec["layout_symbol"]["icon-allow-overlap"] as any as StylePropertySpecification, "icon-allow-overlap"), "icon-overlap": new DataConstantProperty(styleSpec["layout_symbol"]["icon-overlap"] as any as StylePropertySpecification, "icon-overlap"), "icon-ignore-placement": new DataConstantProperty(styleSpec["layout_symbol"]["icon-ignore-placement"] as any as StylePropertySpecification, "icon-ignore-placement"), "icon-optional": new DataConstantProperty(styleSpec["layout_symbol"]["icon-optional"] as any as StylePropertySpecification, "icon-optional"), "icon-rotation-alignment": new DataConstantProperty(styleSpec["layout_symbol"]["icon-rotation-alignment"] as any as StylePropertySpecification, "icon-rotation-alignment"), "icon-size": new DataDrivenProperty(styleSpec["layout_symbol"]["icon-size"] as any as StylePropertySpecification, "icon-size"), "icon-text-fit": new DataConstantProperty(styleSpec["layout_symbol"]["icon-text-fit"] as any as StylePropertySpecification, "icon-text-fit"), "icon-text-fit-padding": new DataConstantProperty(styleSpec["layout_symbol"]["icon-text-fit-padding"] as any as StylePropertySpecification, "icon-text-fit-padding"), "icon-image": new DataDrivenProperty(styleSpec["layout_symbol"]["icon-image"] as any as StylePropertySpecification, "icon-image"), "icon-rotate": new DataDrivenProperty(styleSpec["layout_symbol"]["icon-rotate"] as any as StylePropertySpecification, "icon-rotate"), "icon-padding": new DataDrivenProperty(styleSpec["layout_symbol"]["icon-padding"] as any as StylePropertySpecification, "icon-padding"), "icon-keep-upright": new DataConstantProperty(styleSpec["layout_symbol"]["icon-keep-upright"] as any as StylePropertySpecification, "icon-keep-upright"), "icon-offset": new DataDrivenProperty(styleSpec["layout_symbol"]["icon-offset"] as any as StylePropertySpecification, "icon-offset"), "icon-anchor": new DataDrivenProperty(styleSpec["layout_symbol"]["icon-anchor"] as any as StylePropertySpecification, "icon-anchor"), "icon-pitch-alignment": new DataConstantProperty(styleSpec["layout_symbol"]["icon-pitch-alignment"] as any as StylePropertySpecification, "icon-pitch-alignment"), "text-pitch-alignment": new DataConstantProperty(styleSpec["layout_symbol"]["text-pitch-alignment"] as any as StylePropertySpecification, "text-pitch-alignment"), "text-rotation-alignment": new DataConstantProperty(styleSpec["layout_symbol"]["text-rotation-alignment"] as any as StylePropertySpecification, "text-rotation-alignment"), "text-field": new DataDrivenProperty(styleSpec["layout_symbol"]["text-field"] as any as StylePropertySpecification, "text-field"), "text-font": new DataDrivenProperty(styleSpec["layout_symbol"]["text-font"] as any as StylePropertySpecification, "text-font"), "text-size": new DataDrivenProperty(styleSpec["layout_symbol"]["text-size"] as any as StylePropertySpecification, "text-size"), "text-max-width": new DataDrivenProperty(styleSpec["layout_symbol"]["text-max-width"] as any as StylePropertySpecification, "text-max-width"), "text-line-height": new DataConstantProperty(styleSpec["layout_symbol"]["text-line-height"] as any as StylePropertySpecification, "text-line-height"), "text-letter-spacing": new DataDrivenProperty(styleSpec["layout_symbol"]["text-letter-spacing"] as any as StylePropertySpecification, "text-letter-spacing"), "text-justify": new DataDrivenProperty(styleSpec["layout_symbol"]["text-justify"] as any as StylePropertySpecification, "text-justify"), "text-radial-offset": new DataDrivenProperty(styleSpec["layout_symbol"]["text-radial-offset"] as any as StylePropertySpecification, "text-radial-offset"), "text-variable-anchor": new DataConstantProperty(styleSpec["layout_symbol"]["text-variable-anchor"] as any as StylePropertySpecification, "text-variable-anchor"), "text-variable-anchor-offset": new DataDrivenProperty(styleSpec["layout_symbol"]["text-variable-anchor-offset"] as any as StylePropertySpecification, "text-variable-anchor-offset"), "text-anchor": new DataDrivenProperty(styleSpec["layout_symbol"]["text-anchor"] as any as StylePropertySpecification, "text-anchor"), "text-max-angle": new DataConstantProperty(styleSpec["layout_symbol"]["text-max-angle"] as any as StylePropertySpecification, "text-max-angle"), "text-writing-mode": new DataConstantProperty(styleSpec["layout_symbol"]["text-writing-mode"] as any as StylePropertySpecification, "text-writing-mode"), "text-rotate": new DataDrivenProperty(styleSpec["layout_symbol"]["text-rotate"] as any as StylePropertySpecification, "text-rotate"), "text-padding": new DataConstantProperty(styleSpec["layout_symbol"]["text-padding"] as any as StylePropertySpecification, "text-padding"), "text-keep-upright": new DataConstantProperty(styleSpec["layout_symbol"]["text-keep-upright"] as any as StylePropertySpecification, "text-keep-upright"), "text-transform": new DataDrivenProperty(styleSpec["layout_symbol"]["text-transform"] as any as StylePropertySpecification, "text-transform"), "text-offset": new DataDrivenProperty(styleSpec["layout_symbol"]["text-offset"] as any as StylePropertySpecification, "text-offset"), "text-allow-overlap": new DataConstantProperty(styleSpec["layout_symbol"]["text-allow-overlap"] as any as StylePropertySpecification, "text-allow-overlap"), "text-overlap": new DataConstantProperty(styleSpec["layout_symbol"]["text-overlap"] as any as StylePropertySpecification, "text-overlap"), "text-ignore-placement": new DataConstantProperty(styleSpec["layout_symbol"]["text-ignore-placement"] as any as StylePropertySpecification, "text-ignore-placement"), "text-optional": new DataConstantProperty(styleSpec["layout_symbol"]["text-optional"] as any as StylePropertySpecification, "text-optional"), }); export type SymbolPaintProps = { "icon-opacity": DataDrivenProperty, "icon-color": DataDrivenProperty, "icon-halo-color": DataDrivenProperty, "icon-halo-width": DataDrivenProperty, "icon-halo-blur": DataDrivenProperty, "icon-translate": DataConstantProperty<[number, number]>, "icon-translate-anchor": DataConstantProperty<"map" | "viewport">, "text-opacity": DataDrivenProperty, "text-color": DataDrivenProperty, "text-halo-color": DataDrivenProperty, "text-halo-width": DataDrivenProperty, "text-halo-blur": DataDrivenProperty, "text-translate": DataConstantProperty<[number, number]>, "text-translate-anchor": DataConstantProperty<"map" | "viewport">, }; export type SymbolPaintPropsPossiblyEvaluated = { "icon-opacity": PossiblyEvaluatedPropertyValue, "icon-color": PossiblyEvaluatedPropertyValue, "icon-halo-color": PossiblyEvaluatedPropertyValue, "icon-halo-width": PossiblyEvaluatedPropertyValue, "icon-halo-blur": PossiblyEvaluatedPropertyValue, "icon-translate": [number, number], "icon-translate-anchor": "map" | "viewport", "text-opacity": PossiblyEvaluatedPropertyValue, "text-color": PossiblyEvaluatedPropertyValue, "text-halo-color": PossiblyEvaluatedPropertyValue, "text-halo-width": PossiblyEvaluatedPropertyValue, "text-halo-blur": PossiblyEvaluatedPropertyValue, "text-translate": [number, number], "text-translate-anchor": "map" | "viewport", }; let paint: Properties; const getPaint = (): Properties => paint = paint || new Properties({ "icon-opacity": new DataDrivenProperty(styleSpec["paint_symbol"]["icon-opacity"] as any as StylePropertySpecification, "icon-opacity"), "icon-color": new DataDrivenProperty(styleSpec["paint_symbol"]["icon-color"] as any as StylePropertySpecification, "icon-color"), "icon-halo-color": new DataDrivenProperty(styleSpec["paint_symbol"]["icon-halo-color"] as any as StylePropertySpecification, "icon-halo-color"), "icon-halo-width": new DataDrivenProperty(styleSpec["paint_symbol"]["icon-halo-width"] as any as StylePropertySpecification, "icon-halo-width"), "icon-halo-blur": new DataDrivenProperty(styleSpec["paint_symbol"]["icon-halo-blur"] as any as StylePropertySpecification, "icon-halo-blur"), "icon-translate": new DataConstantProperty(styleSpec["paint_symbol"]["icon-translate"] as any as StylePropertySpecification, "icon-translate"), "icon-translate-anchor": new DataConstantProperty(styleSpec["paint_symbol"]["icon-translate-anchor"] as any as StylePropertySpecification, "icon-translate-anchor"), "text-opacity": new DataDrivenProperty(styleSpec["paint_symbol"]["text-opacity"] as any as StylePropertySpecification, "text-opacity"), "text-color": new DataDrivenProperty(styleSpec["paint_symbol"]["text-color"] as any as StylePropertySpecification, "text-color", { runtimeType: ColorType, getOverride: (o) => o.textColor, hasOverride: (o) => !!o.textColor }), "text-halo-color": new DataDrivenProperty(styleSpec["paint_symbol"]["text-halo-color"] as any as StylePropertySpecification, "text-halo-color"), "text-halo-width": new DataDrivenProperty(styleSpec["paint_symbol"]["text-halo-width"] as any as StylePropertySpecification, "text-halo-width"), "text-halo-blur": new DataDrivenProperty(styleSpec["paint_symbol"]["text-halo-blur"] as any as StylePropertySpecification, "text-halo-blur"), "text-translate": new DataConstantProperty(styleSpec["paint_symbol"]["text-translate"] as any as StylePropertySpecification, "text-translate"), "text-translate-anchor": new DataConstantProperty(styleSpec["paint_symbol"]["text-translate-anchor"] as any as StylePropertySpecification, "text-translate-anchor"), }); export default ({ get paint(): Properties { return getPaint() }, get layout(): Properties { return getLayout() } });