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

Method render

example/src/examples/IndoorMap.tsx:32–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30 }
31
32 render() {
33 return (
34 <View style={styles.container}>
35 <MapView
36 provider={this.props.provider}
37 style={styles.map}
38 initialRegion={{
39 latitude: LATITUDE,
40 longitude: LONGITUDE,
41 latitudeDelta: LATITUDE_DELTA,
42 longitudeDelta: LONGITUDE_DELTA,
43 }}
44 showsIndoors
45 showsIndoorLevelPicker
46 onIndoorBuildingFocused={this.handleIndoorFocus}
47 ref={map => {
48 this.map = map;
49 }}
50 />
51 <Button
52 title="go to level 5"
53 onPress={() => {
54 this.setIndoorLevel(5);
55 }}
56 />
57 <Button
58 title="go to level 1"
59 onPress={() => {
60 this.setIndoorLevel(1);
61 }}
62 />
63 </View>
64 );
65 }
66}
67
68const styles = StyleSheet.create({

Callers

nothing calls this directly

Calls 1

setIndoorLevelMethod · 0.95

Tested by

no test coverage detected