()
| 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 | |
| 68 | const styles = StyleSheet.create({ |
nothing calls this directly
no test coverage detected