react-native-maps在Tooltip上可见的其他标记 - iOS

时间:2017-05-25 11:38:56

标签: reactjs react-native react-native-maps

在iOS标记上可见工具提示。我认为Tooltip应始终位于顶部。我错过了什么,或者它是反应原生地图中的热门问题吗?

  <_MapView
    style={[{flex: 1}, this.props.style]}
    showsPointsOfInterest={true}
    region={region}
    {...this.props}
  >
    {annotations.map((marker, ind) => (

      <_MapView.Marker
        key={ind}
        image={marker.image}
        coordinate={marker.latlng}
        ref={ref => { this.markers[ind] = ref }}
        onPress={() => {
          if (this.activeMarker) {
            this.activeMarker.closeCallout()
          }
          this.markers[ind].showCallout()
        }}
      >
        <_MapView.Callout style={StyleSheet.mapView.callOut} onPress={marker.rightCalloutView}>
          <TouchableHighlight
            underlayColor="transparent"
          >
            <View style={StyleSheet.mapView.toolTip}>
              <Text>{marker.title}</Text>
              <View>
                <Icon name="chevronRight" />
              </View>
            </View>
          </TouchableHighlight>
        </_MapView.Callout>
      </_MapView.Marker>
    ))}
  </_MapView>

0 个答案:

没有答案