英文:
Here Maps Android SDK v4 Explore Edition: Map marker visible from certain zoom level
问题
在Here Maps Android SDK v4 Explore Edition中,我没有看到一种在特定缩放级别下才可见的地图标记添加方法。我是否忽略了某些内容?在Here Maps Android SDK v3 Premium Edition中,这可以通过在创建标记时设置/配置标记的最小缩放级别来轻松实现。
我已经检查了MapMarker类的API以及MapView和MapScene,但没有找到有关地图对象的可见性与地图的当前缩放级别之间的依赖的信息。
英文:
In Here Maps Android SDK v4 Explore Edition I don't see a way to add map markers that are visible only from certain zoom level on. Do I overlook something? In Here Maps Android SDK v3 Premium Edition that was achieved quite easy by setting/configuring the minimum zoom level on the marker at it's creation.
I already checked the API of the MapMarker class as well as the MapView und MapScene but found nothing regarding the dependence of the visibility of the map objects and the current zoom level of the map.
答案1
得分: 1
这是在2023年3月2日发布的HERE SDK 4.13.4版本中提供的功能。地图标记类型具有名为visibilityRange的属性,用于设置每个缩放级别范围的可见性。
英文:
This is available with HERE SDK 4.13.4, released 2nd of March 2023. There map marker type has property visibilityRange to set the visibility per zoomlevel range.
See the docs online here:
https://developer.here.com/documentation/android-sdk-navigate/4.13.4.0/api_reference/com/here/sdk/mapview/MapMarker.html#setVisibilityRanges(java.util.List)
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论