Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/react-native/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
React native 无法在MapBox中找到MarkerView_React Native_Maps_Mapbox Gl Js - Fatal编程技术网

React native 无法在MapBox中找到MarkerView

React 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} >

我无法在此github库的MapBox中找到markerview ,有人能帮我吗

否则我会像这样使用PointAnnotation

               <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