React native 无法在MapBox中找到MarkerView
我无法在此github库的MapBox中找到markerview ,有人能帮我吗 否则我会像这样使用PointAnnotationReact native 无法在MapBox中找到MarkerView,react-native,maps,mapbox-gl-js,React Native,Maps,Mapbox Gl Js,我无法在此github库的MapBox中找到markerview ,有人能帮我吗 否则我会像这样使用PointAnnotation <MapboxGL.MapView style={{ flex: 1 }}> <MapboxGL.Camera centerCoordinate={[22.470701, 70.057732]} zoomLevel={14} >
<MapboxGL.MapView style={{ flex: 1 }}>
<MapboxGL.Camera centerCoordinate={[22.470701, 70.057732]} zoomLevel={14} >
</MapboxGL.Camera>
<MapboxGL.PointAnnotation
id="foo1"
coordinate={[22.470701, 70.057732]}
title={'Hello'}>
<View style={{ flexWrap: 'wrap', backgroundColor: 'blue' }}>
<Image source={require('./chat.png')} style={styles.tinyLogo} />
<Text style={{ color: 'white', margin: 10 }}>$50.00</Text>
</View>
<MapboxGL.Callout style={{ borderRadius: 20, width: 150, height: 120 }}>
<View style={{ width: '100%', height: '100%', backgroundColor: 'white' }}>
<Text style={{ marginHorizontal: 10, marginTop: 10 }}>123, Main st,</Text>
<Text style={{ marginHorizontal: 10, marginBottom: 10 }}>Chicago, IL 6061</Text>
<TouchableOpacity style={{ backgroundColor: 'orange', margin: 10, alignItems: 'center' }}>
<Text style={{ margin: 10, color: 'white' }}>Select Shop</Text>
</TouchableOpacity>
</View>
</MapboxGL.Callout>
</MapboxGL.PointAnnotation>
</MapboxGL.MapView>
$50.00
美因街123号,
伊利诺伊州芝加哥6061
精选商店
但是这张照片没有显示出来,所以有人能帮我做些什么吗?
提前感谢。提供了MarkerView使用示例
MarkerView文档可用 根据本文件
如果有静态视图考虑使用PoxTnType或符号层,它们将提供更好的性能
因此,如果您在这种情况下,您似乎做得很好。我想在单击已显示给用户的标记时打开一个弹出对话框,那么如何操作呢?请帮助我使用@behelit