How to perform map marker click in HERE MAP (android ) -


i using map. found issue. how know marker clicked?

@override public boolean onmapobjectsselected(list<viewobject> list) {..) 

with on gesture listener got method how find particular map marker object , map marker title etc.

to obtain marker clicked below in onmapobjectsselected method.

for (viewobject viewobject : list) {     if (viewobject.getbasetype() == viewobject.type.user_object) {         mapobject mapobject = (mapobject) viewobject;          if (mapobject.gettype() == mapobject.type.marker) {             mapmarker window_marker = ((mapmarker) mapobject);             system.out.println("title is................."+window_marker.gettitle());                return false;             }         }    } 

you have find out object type selected in loop above.


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -