@pansy/react-mapbox-gl
Version:
π εΊδΊ Mapbox GL ε°θ£ η React η»δ»ΆεΊ
29 lines (23 loc) β’ 576 B
text/typescript
import type { PropKey } from './types';
import { toLngLat } from '../../utils/toLngLat';
/** ιζε±ζ§ */
export const StaticProps: PropKey[] = [
'closeButton',
'closeOnClick',
'closeOnMove',
'focusAfterOpen',
'anchor',
'className',
];
/** ε¨ζε±ζ§ */
export const NativeDynamicProps: PropKey[] = [
'offset',
'maxWidth',
'altitude',
'lngLat',
];
export const allProps = NativeDynamicProps.concat(StaticProps);
export const setterMap = {};
export const converterMap: Partial<Record<PropKey, (...value: any[]) => any>> = {
lngLat: toLngLat,
};