maplibre-gl
Version:
BSD licensed community fork of mapbox-gl, a WebGL interactive maps library
55 lines (45 loc) • 2.57 kB
text/typescript
// This file is generated. Edit build/generate-style-code.ts, then run 'npm run codegen'.
/* eslint-disable */
import styleSpec from '../../style-spec/reference/latest';
import {
Properties,
DataConstantProperty,
DataDrivenProperty,
CrossFadedDataDrivenProperty,
CrossFadedProperty,
ColorRampProperty,
PossiblyEvaluatedPropertyValue,
CrossFaded
} from '../properties';
import type Color from '../../style-spec/util/color';
import type Padding from '../../style-spec/util/padding';
import type Formatted from '../../style-spec/expression/types/formatted';
import type ResolvedImage from '../../style-spec/expression/types/resolved_image';
import {StylePropertySpecification} from '../../style-spec/style-spec';
export type HillshadePaintProps = {
"hillshade-illumination-direction": DataConstantProperty<number>,
"hillshade-illumination-anchor": DataConstantProperty<"map" | "viewport">,
"hillshade-exaggeration": DataConstantProperty<number>,
"hillshade-shadow-color": DataConstantProperty<Color>,
"hillshade-highlight-color": DataConstantProperty<Color>,
"hillshade-accent-color": DataConstantProperty<Color>,
};
export type HillshadePaintPropsPossiblyEvaluated = {
"hillshade-illumination-direction": number,
"hillshade-illumination-anchor": "map" | "viewport",
"hillshade-exaggeration": number,
"hillshade-shadow-color": Color,
"hillshade-highlight-color": Color,
"hillshade-accent-color": Color,
};
const paint: Properties<HillshadePaintProps> = new Properties({
"hillshade-illumination-direction": new DataConstantProperty(styleSpec["paint_hillshade"]["hillshade-illumination-direction"] as any as StylePropertySpecification),
"hillshade-illumination-anchor": new DataConstantProperty(styleSpec["paint_hillshade"]["hillshade-illumination-anchor"] as any as StylePropertySpecification),
"hillshade-exaggeration": new DataConstantProperty(styleSpec["paint_hillshade"]["hillshade-exaggeration"] as any as StylePropertySpecification),
"hillshade-shadow-color": new DataConstantProperty(styleSpec["paint_hillshade"]["hillshade-shadow-color"] as any as StylePropertySpecification),
"hillshade-highlight-color": new DataConstantProperty(styleSpec["paint_hillshade"]["hillshade-highlight-color"] as any as StylePropertySpecification),
"hillshade-accent-color": new DataConstantProperty(styleSpec["paint_hillshade"]["hillshade-accent-color"] as any as StylePropertySpecification),
});
export default ({ paint } as {
paint: Properties<HillshadePaintProps>
});