kushal
kushal

Reputation: 156

How to perform map marker click in HERE MAP (Ios swift)

I implement here map in my android project successfully, now I am working on iOS with swift so I have one issue about on map Marker. In Android I have done this with this MapMarkerClick

But in iOS sdk I can't find this method in framework.

@Override
public boolean onMapObjectsSelected(List<ViewObject> list) {..}

not with iOS Starter SDK or iOS Premium SDK

android Here Map

In this image I show a Map Marker with InfoBubble, now I want to do the same in ios. In ios I successfully add marker and circle and InfoBubble as well but now problem is if I add 5 marker and want to show InfoBubble with specific marker how I identify which marker clicked.

In Android I implement Gesture for map and that gesture also work with ios but there is no method so find which map object clicked like Android.

android Gesture methods

enter image description here

Upvotes: 1

Views: 1420

Answers (1)

Ranjan
Ranjan

Reputation: 80

You should use NMAMapViewDelegate and call its delegate function- func mapViewDidSelectObjects(_ mapView: NMAMapView, objects: [NMAMapObject]) { print("select marker .....")

    mapMarker.showInfoBubble(self.winDowDisplay())
} 

Upvotes: 1

Related Questions