Closed caopeng000 closed 1 year ago
版本: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
数据加载完毕后,代码移动下地图,目前没问题了。
版本: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