问题描述
选择标记后,我试图在标记上方显示一个弹出窗口.但是高级SDK中未实现infoBubble功能.
I am trying to display a popup above the marker when the marker is selected. But infoBubble functionality is not implemented in premium SDK.
是否有解决方法?
推荐答案
您应该改用MapOverlays: https://developer.here.com/documentation/ios-premium/api_reference_jazzy/Classes/NMAMapOverlay.html
You should use MapOverlays instead: https://developer.here.com/documentation/ios-premium/api_reference_jazzy/Classes/NMAMapOverlay.html
然后通过以下方式将实现添加到MapView: https://developer.here.com/documentation/ios-premium/api_reference_jazzy/Classes/NMAMapView.html#%2Fc:objc(cs)NMAMapView(im)addMapOverlay :
Then add you implementation to the MapView via: https://developer.here.com/documentation/ios-premium/api_reference_jazzy/Classes/NMAMapView.html#%2Fc:objc(cs)NMAMapView(im)addMapOverlay:
其背后的想法是,您可以使用普通的UIView(非常灵活,您自己的设计等)并将其粘贴到地图上的某个位置(然后mapview会将其固定在适当的位置).
The idea behind is, that you can use a normal UIView (very flexible, your own design, etc.) and stick it to a position on the map (and the mapview will keep it in place then).
这篇关于这里地图-iOS Premium- infoBubble的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!