mobility-toolbox-js
Version:
Toolbox for JavaScript applications in the domains of mobility and logistics.
19 lines (18 loc) • 851 B
TypeScript
import { MapLibreLayerRenderer } from '@geoblocks/ol-maplibre-layer/lib';
import type { MapLibreLayerTranslateZoomFunction } from '@geoblocks/ol-maplibre-layer/lib/MapLibreLayer';
import type { FrameState } from 'ol/Map';
import type { MaplibreLayer } from '../layers';
/**
* This class is usea renderer for Maplibre Layer to be able to use the native ol
* functionnalities like map.getFeaturesAtPixel or map.hasFeatureAtPixel.
* @private
*/
export default class MaplibreLayerRenderer extends MapLibreLayerRenderer {
ignoreNextRender: boolean;
tranaslateZoom2: MapLibreLayerTranslateZoomFunction | undefined;
constructor(layer: MaplibreLayer, translateZoom?: MapLibreLayerTranslateZoomFunction);
prepareFrame(): boolean;
renderFrame(frameState: FrameState): HTMLElement;
setIsReady(): void;
updateReadyState(): void;
}