MCPcopy Index your code
hub / github.com/react-native-maps/react-native-maps / getMapBoundaries

Method getMapBoundaries

src/MapView.tsx:929–934  ·  view source on GitHub ↗

* Get visible boudaries * * @return Promise Promise with the bounding box ({ northEast: , southWest: })

()

Source from the content-addressed store, hash-verified

927 * @return Promise Promise with the bounding box ({ northEast: <LatLng>, southWest: <LatLng> })
928 */
929 async getMapBoundaries(): Promise<BoundingBox> {
930 if (this.fabricMap.current) {
931 return this.fabricMap.current.getMapBoundaries();
932 }
933 return Promise.reject('getMapBoundaries not supported on this platform');
934 }
935
936 setMapBoundaries(northEast: LatLng, southWest: LatLng) {
937 if (this.map.current) {

Callers

nothing calls this directly

Calls 1

getMapBoundariesMethod · 0.65

Tested by

no test coverage detected