Sean
Sean

Reputation: 1123

How to put description over a marker in google maps android

I have a map that places pin markers over certain locations. How do I place a description (Name and date) of the marker when you click on the individual pins? The description should hover over the pin and stay there until another pin is clicked or the same pin is clicked again. In my itemizedOverlay class I have

@Override
protected boolean onTap(int index) {
 //mOverlays is my array of overlayItems
  OverlayItem item = mOverlays.get(index);
//do stuff here

  return true;
}

But im not sure what to put in there.

Upvotes: 0

Views: 2368

Answers (1)

Related Questions