/** * If we are using automated label placement, move and rotate text to correct * position * * @param feature the feature we are placing * @param style the style with text * @param layerStyleContext the context for the layer * @param internalContext - the internal context */ import { FeatureLike } from "ol/Feature"; import { Style } from "ol/style"; import { InternalContextType, LolOpenLayersMapContextType, StyleContext } from "../context/LolOpenLayersMapContext"; import { StyleFunction, StyleLike } from "ol/style/Style"; import { HighlightStyle, StyleWithContext } from "../layerDefinition/LolOpenLayersVectorLayerDef"; import { Feature } from "ol"; import { Geometry } from "ol/geom"; import RenderFeature from "ol/render/Feature"; /** * styleWithContext - return * @param _what - when enabled a text for debugging * @param baseStyle - the base style for a layer or a label layer * @param mapContext - the mapContext we get the dynamic `getStyleContext` from * @param internalContext - the internal context * @param layerName - the *base* layer name (including when we style label layers) */ export declare const styleWithContext: (_what: string, baseStyle: Style | StyleLike | StyleWithContext | undefined, mapContext: LolOpenLayersMapContextType | undefined, internalContext: InternalContextType, layerName: string) => ((feature: Feature | RenderFeature, resolution: number) => Style | Style[]) | undefined; /** * Creates a function which can be applied to a feature, this will style that feature * depending on the features current state, such as highlighted and/or missing label */ export declare const createFeatureStyle: (highlightStyle: HighlightStyle, getLayerStyleContext: (() => StyleContext | undefined) | undefined, internalContext: InternalContextType, baseStyle: StyleLike | StyleWithContext) => StyleFunction; export declare const featureStyles: (feature: FeatureLike, style: Style | Style[], layerStyleContext: StyleContext | undefined, internalContext: InternalContextType) => Style | Style[];