@pansy/react-mapbox-gl
Version:
🌍 基于 Mapbox GL 封装的 React 组件库
10 lines (9 loc) • 493 B
TypeScript
import React from 'react';
import type { Popup as MapboxPopup } from 'mapbox-gl';
export declare const Popup: React.ForwardRefExoticComponent<import("mapbox-gl").PopupOptions & {
lngLat?: import("mapbox-gl").LngLatLike | undefined;
onOpen?: ((e: import("./types").PopupEvent) => void) | undefined;
onClose?: ((e: import("./types").PopupEvent) => void) | undefined;
style?: React.CSSProperties | undefined;
children?: React.ReactNode;
} & React.RefAttributes<MapboxPopup>>;