0

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?

1 Answers1

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