【问题标题】:How to implement clickable info-bubble on tap of marker in HERE maps in iOS?如何在 iOS 的 HERE 地图中点击标记实现可点击的信息气泡?
【发布时间】:2020-06-15 05:21:00
【问题描述】:

我已在我的 iOS 应用程序中成功集成 HERE 地图,但现在我在通过点击 HERE 地图上的标记实现信息气泡时遇到问题。我在 HERE 文档中搜索了 iOS SDK,但找不到任何内容相关的。 JS有很多解决方案,但iOS没有。

【问题讨论】:

标签: ios swift here-api heremaps heremaps-ios-sdk


【解决方案1】:

iOS 和 Android 上似乎不存在此功能。为了在 iOS 中创建类似的行为,您应该改用 NMAMapOverlay 并向其添加您自己的子视图/样式。

iOS SDK 文档指出NMAMapOverlay can be used to display custom UIView-based content at a fixed location on the map. (...) Then, give the overlay a NMAGeoCoordinates location and add it to a map. The overlay will automatically be repositioned on the screen as the map moves.

您可以在此处找到有关实施最佳做法的更多信息: https://developer.here.com/documentation/ios-premium/3.15/api_reference_jazzy/Classes/NMAMapOverlay.html

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-01-16
    • 2013-10-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多