Here Maps - iOS Premium- infoBubble

可紊 提交于 2019-12-22 12:41:25

问题


I am trying to display a popup above the marker when the marker is selected. But infoBubble functionality is not implemented in premium SDK.

Is there a workaround for this?


回答1:


You should use MapOverlays instead: https://developer.here.com/documentation/ios-premium/api_reference_jazzy/Classes/NMAMapOverlay.html

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:

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).



来源:https://stackoverflow.com/questions/52219434/here-maps-ios-premium-infobubble

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!