MCPcopy
hub / github.com/react-native-maps/react-native-maps / getMarkersFrames

Method getMarkersFrames

src/MapView.tsx:1042–1050  ·  view source on GitHub ↗

* Get markers' centers and frames in user-space coordinates * * @param onlyVisible boolean true to include only visible markers, false to include all * * @return Promise Promise with { : { point: Point, frame: Frame } }

(onlyVisible: boolean = false)

Source from the content-addressed store, hash-verified

1040 * @return Promise Promise with { <identifier>: { point: Point, frame: Frame } }
1041 */
1042 getMarkersFrames(onlyVisible: boolean = false): Promise<{
1043 [key: string]: {point: Point; frame: Frame};
1044 }> {
1045 if (this.fabricMap.current) {
1046 // @ts-ignore
1047 return this.fabricMap.current.getMarkersFrames(onlyVisible);
1048 }
1049 return Promise.reject('getMarkersFrames not supported on this platform');
1050 }
1051
1052 /**
1053 * Get bounding box from region

Callers

nothing calls this directly

Calls 1

getMarkersFramesMethod · 0.65

Tested by

no test coverage detected