react-native-amap3d
react-native-amap3d copied to clipboard
点聚合首次不加载
版本:3.1.3 RN版本:0.65.1 设备:华为P30 Pro
点聚合demo,地图初始化经纬度并且zoom到14,首次打开地图不展示点聚合。需要再次滑动地图才展示出来。
<MapView ref={(ref) => (this.mapView = ref)} initialCameraPosition={{ target: { latitude: 40.14723426405317, longitude: 116.57691195504749 }, zoom: 14 }} myLocationEnabled={true} onCameraIdle={({ nativeEvent }) => { this.status = nativeEvent; this.cluster?.update(nativeEvent); }} onLongPress={() => this.setState({ markers: generateMarkers() })} >
视频如下:
https://user-images.githubusercontent.com/7322422/190850559-237e158a-a9ed-4446-a04e-9027a5118c01.mp4