I am trying to implement Huawei Map Kit and using clustering feature. I called setOnCameraIdleListener right before setMarkersClustering and still onCameraIdle method is not triggers even though everything stays idle. What might be the problem?
Asked
Active
Viewed 129 times
0
-
Hi Binary Princess, can you please add you code? Makes it easier for us to see what's wrong. – JonasMH Jul 09 '20 at 06:53
1 Answers
0
In the Map SDK, the OnCameraIdleListener listening callback code of the map is in the setMarkersClustering method. Therefore, set MarkersClustering(true) and then setOnCameraIdleListener(this). Like this:
map.setMarkersClustering(true);
map.setOnCameraIdleListener(this);
Currently, only this invoking sequence is supported.

Ibrahim R Serpici
- 1,048
- 7
- 8