UNPKG

react-bkoi-gl

Version:

React components for Barikoi GL JS

19 lines (18 loc) 754 B
import * as React from "react"; import type { Popup as PopupInstance, MarkerOptions } from "../types/lib"; import type { MarkerEvent, MarkerDragEvent } from "../types/events"; export type MarkerProps = MarkerOptions & { /** Longitude of the anchor location */ longitude: number; /** Latitude of the anchor location */ latitude: number; popup?: PopupInstance; /** CSS style override, applied to the control's container */ style?: React.CSSProperties; onClick?: (e: MarkerEvent<MouseEvent>) => void; onDragStart?: (e: MarkerDragEvent) => void; onDrag?: (e: MarkerDragEvent) => void; onDragEnd?: (e: MarkerDragEvent) => void; children?: React.ReactNode; }; export declare const Marker: React.FC<MarkerProps>;