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.
我已经使用了可用于 swift ios 的 lite sdk 和 explore sdk,用于与这里的地图集成。我还没有通过任何方法来清除已在地图视图上的屏幕上设置的地图标记。如果有任何解决方法,请告诉我。
MapMarker您可以使用 HERE SDK for iOS(探索版)删除项目,方法是调用:
MapMarker
mapView.mapScene.removeMapMarker(mapMarker)
确保mapMarker与您之前添加的实例相同,否则,代码将不执行任何操作。
mapMarker
如有疑问,请尝试 GitHub 上的MapItems示例应用程序。在这一行中,它显示了如何删除所有添加的标记。