找不到函数`visibleFeatures`

问题描述

带有 react-native 的 MapBox。

如何知道一个点是在“水”(海洋)还是陆地上。

visibleFeatures 中找不到函数 react-native

var LocationSelect = function(props) {
    const mapContainer = useRef(null);

    function onMapPointSelect(data) {
          /// Get if point is water or land
        mapContainer.visibleFeatures(data.geometry.coordinates,styleLayerIdentifiers: ["water"]);
    }

    return (
        <View style={styles.mapContainer}>

            <MapboxGL.MapView style={styles.map}
            onLayout={onLayout}
            onPress={onMapPointSelect}
            ref={el => (mapContainer.current = el)} >

            </MapboxGL.MapView>

        </View>
    );

}

非常感谢

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)