deeper-spatial
Version:
所有开源WebGL和WebGIS仓库的整合
12 lines (11 loc) • 420 B
TypeScript
export default function useMapEvents(): {
map: any;
init: (mapInstance: any) => void;
addMapListener: (event: string, callback: Function) => void;
removeMapListener: (event: string, callback: Function) => void;
setMapCenter: (center: [number, number]) => void;
setMapZoom: (zoom: number) => void;
setMapStyle: (style: string) => void;
clearMap: () => void;
destroyMap: () => void;
};