繁体   English   中英

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

[英]react-native-maps other Markers visible on Tooltip - iOS

在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>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM