react-native-amap3d v3.06 android 地图显示定位按钮没有起作用.
Created by: iscodeok
大神: MapView 模块设置 myLocationEnabled =true , myLocationButtonEnabled=true 地图显示定位按钮,MapView 引用 onLocation 监听没有起作用? 是怎么监听这个定位按钮事件的?是否已内置获取GPS坐标返回?
RN 0.66.4 点定位按钮 onLocation 监听 没有输出 console.log
<MapView
//mapType={MapType.Satellite}
initialCameraPosition={{
target: myLocation,
zoom: 11,
}}
myLocationEnabled={true}
myLocationButtonEnabled={true}
onLocation={(event) => {
console.log('event:', event);
}}
>
</MapView>