【发布时间】:2019-04-09 06:13:06
【问题描述】:
我在我的应用程序中使用了 react native mpaboxgl。
import MapboxGL from "@mapbox/react-native-mapbox-gl";
<MapboxGL.MapView
logoEnabled={false}
attributionEnabled={false}
ref={(e) => { this.oMap = e }}
zoomLevel={6}
centerCoordinate={[54.0, 24.0]}>
<MapboxGL.MapView>
如何在另一个组件中使用oMap?所以我可以做一些事情,比如从其他组件/页面打开/关闭图层。
【问题讨论】:
标签: reactjs react-native react-native-maps