react-mapbox-gl
Version:
A React binding of mapbox-gl-js
31 lines (30 loc) • 848 B
TypeScript
import { Point, Map } from 'mapbox-gl';
import { Props } from '../projected-layer';
import { Anchor } from './types';
export interface PointDef {
x: number;
y: number;
}
export interface OverlayParams {
anchor?: Anchor;
offset?: Point;
position?: Point;
}
export declare const anchors: import("mapbox-gl").Anchor[];
export declare const anchorTranslates: {
center: string;
top: string;
left: string;
right: string;
bottom: string;
'top-left': string;
'top-right': string;
'bottom-left': string;
'bottom-right': string;
};
export declare const overlayState: (props: Props, map: Map, container: HTMLElement) => {
anchor: import("mapbox-gl").Anchor;
position: Point;
offset: Point;
};
export declare const overlayTransform: ({ anchor, position, offset }: OverlayParams) => string[];