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

Method render

example/src/examples/Overlays.tsx:68–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66 }
67
68 render() {
69 const {region, circle, polygon, polyline} = this.state;
70 return (
71 <View style={styles.container}>
72 <MapView
73 provider={this.props.provider}
74 style={styles.map}
75 initialRegion={region}>
76 <Circle
77 center={circle.center}
78 radius={circle.radius}
79 fillColor="rgba(255, 255, 255, 1)"
80 strokeColor="rgba(0,0,0,0.5)"
81 zIndex={2}
82 strokeWidth={2}
83 />
84 <Polygon
85 coordinates={polygon}
86 fillColor="rgba(0, 200, 0, 0.5)"
87 strokeColor="rgba(0,0,0,0.5)"
88 strokeWidth={2}
89 />
90 <Polyline
91 coordinates={polyline}
92 strokeColor="rgba(0,0,200,0.5)"
93 strokeWidth={3}
94 lineDashPattern={[5, 2, 3, 2]}
95 />
96 </MapView>
97 <View style={styles.buttonContainer}>
98 <View style={styles.bubble}>
99 <Text>Render circles, polygons, and polylines</Text>
100 </View>
101 </View>
102 </View>
103 );
104 }
105}
106
107const styles = StyleSheet.create({

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected