, , : , , , , [ hitboxes?]), .
, :
return (
<View key={marker.bike_no}>
{ <MapView.Marker
navigator={this.props.navigator}
coordinate={{longitude: marker.longitude, latitude: marker.latitude}}
title={marker.title}
description={marker.description}
onPress={(coord, pos) => this.startBookingBike(marker.bike_no)}
key={marker.key}
><View style={(marker.cur_user == 0) ? styles.bikeRadius : styles.markerStyleHidden }><View style={styles.bikeMarker}>
</View></View>
</MapView.Marker>
}</View>
);
, :
markerStyleHidden: {
height: 0,
width: 0,
borderRadius: 0,
overflow: 'hidden',
backgroundColor: 'rgba(0, 122, 255, 0.5)',
borderWidth: 0,
borderColor: 'rgba(0, 122, 255, 0.5)',
alignItems: 'center',
justifyContent: 'center'
},
radius: {
height: 30,
width: 30,
borderRadius: 30 / 2,
overflow: 'hidden',
backgroundColor: 'rgba(0, 122, 255, 0.5)',
borderWidth: 4,
borderColor: 'rgba(0, 122, 255, 0.5)',
alignItems: 'center',
justifyContent: 'center'
},