Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试实现华为 Map Kit 并使用集群功能。我在 setMarkersClustering 之前调用了 setOnCameraIdleListener 并且即使一切都保持空闲,onCameraIdle 方法仍然不会触发。可能是什么问题?
在 Map SDK 中,地图的 OnCameraIdleListener 监听回调代码在 setMarkersClustering 方法中。因此,先设置 MarkersClustering(true),然后设置 OnCameraIdleListener(this)。像这样:
map.setMarkersClustering(true); map.setOnCameraIdleListener(this);
目前,仅支持此调用顺序。