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

Method pointForCoordinate

src/MapView.tsx:1012–1017  ·  view source on GitHub ↗

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

(coordinate: LatLng)

Source from the content-addressed store, hash-verified

1010 * @return Promise Promise with the point ({ x: Number, y: Number })
1011 */
1012 pointForCoordinate(coordinate: LatLng): Promise<Point> {
1013 if (this.fabricMap.current) {
1014 return this.fabricMap.current.getPointForCoordinate(coordinate);
1015 }
1016 return Promise.reject('pointForCoordinate not supported on this platform');
1017 }
1018
1019 /**
1020 * Convert a user-space point to a map coordinate

Callers

nothing calls this directly

Calls 1

getPointForCoordinateMethod · 0.65

Tested by

no test coverage detected