| 21 | export type MapViewProps = MapFabricNativeProps | GoogleMapFabricNativeProps; |
| 22 | |
| 23 | export interface FabricMapHandle { |
| 24 | getCamera: () => Promise<Camera>; |
| 25 | setCamera: (camera: Partial<Camera>) => void; |
| 26 | animateToRegion: (region: Region, duration: number) => void; |
| 27 | animateCamera: (camera: Partial<Camera>, duration: number) => void; |
| 28 | getMarkersFrames: (onlyVisible: boolean) => Promise<unknown>; |
| 29 | fitToElements: (edgePadding: EdgePadding, animated: boolean) => void; |
| 30 | |
| 31 | fitToSuppliedMarkers: ( |
| 32 | markers: string[], |
| 33 | edgePadding: EdgePadding, |
| 34 | animated: boolean, |
| 35 | ) => void; |
| 36 | |
| 37 | fitToCoordinates: ( |
| 38 | coordinates: LatLng[], |
| 39 | edgePadding: EdgePadding, |
| 40 | animated: boolean, |
| 41 | ) => void; |
| 42 | |
| 43 | getMapBoundaries: () => Promise<MapBoundaries>; |
| 44 | takeSnapshot: (config: SnapshotOptions) => Promise<string>; |
| 45 | getAddressFromCoordinates: (coordinate: LatLng) => Promise<Address>; |
| 46 | getPointForCoordinate: (coordinate: LatLng) => Promise<Point>; |
| 47 | getCoordinateForPoint: (point: Point) => Promise<LatLng>; |
| 48 | setIndoorActiveLevelIndex: (activeLevelIndex: number) => void; |
| 49 | } |
| 50 | |
| 51 | const createFabricMap = ( |
| 52 | ViewComponent: typeof GoogleMapView | typeof FabricMapView, |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…