MCPcopy Create free account
hub / github.com/react-native-maps/react-native-maps / coordinateForPoint

Method coordinateForPoint

src/MapView.tsx:1028–1033  ·  view source on GitHub ↗

* Convert a user-space point to a map coordinate * * @param point Point * @param [point.x] X * @param [point.x] Y * * @return Promise Promise with the coordinate ({ latitude: Number, longitude: Number })

(point: Point)

Source from the content-addressed store, hash-verified

1026 * @return Promise Promise with the coordinate ({ latitude: Number, longitude: Number })
1027 */
1028 coordinateForPoint(point: Point): Promise<LatLng> {
1029 if (this.fabricMap.current) {
1030 return this.fabricMap.current.getCoordinateForPoint(point);
1031 }
1032 return Promise.reject('coordinateForPoint not supported on this platform');
1033 }
1034
1035 /**
1036 * Get markers' centers and frames in user-space coordinates

Callers

nothing calls this directly

Calls 1

getCoordinateForPointMethod · 0.65

Tested by

no test coverage detected