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

Method render

example/src/examples/LoadingMap.tsx:30–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28 }
29
30 render() {
31 return (
32 <View style={styles.container}>
33 <MapView
34 provider={this.props.provider}
35 style={styles.map}
36 initialRegion={this.state.region}
37 loadingEnabled
38 loadingIndicatorColor="#666666"
39 loadingBackgroundColor="#eeeeee">
40 <Marker
41 coordinate={{
42 latitude: LATITUDE + SPACE,
43 longitude: LONGITUDE + SPACE,
44 }}
45 centerOffset={{x: -18, y: -60}}
46 anchor={{x: 0.69, y: 1}}
47 image={flagImg}
48 />
49 <Marker
50 coordinate={{
51 latitude: LATITUDE - SPACE,
52 longitude: LONGITUDE - SPACE,
53 }}
54 centerOffset={{x: -42, y: -60}}
55 anchor={{x: 0.84, y: 1}}>
56 <Callout>
57 <View>
58 <Text>This is a plain view</Text>
59 </View>
60 </Callout>
61 </Marker>
62 </MapView>
63 <View style={styles.buttonContainer}>
64 <View style={styles.bubble}>
65 <Text>Map with Loading</Text>
66 </View>
67 </View>
68 </View>
69 );
70 }
71}
72
73const styles = StyleSheet.create({

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected