Android: add overlay to MapView? -


i have subclassed overlay landmarkoverlay (and implemented ontap(geopoint) method).

in main activity this:

    setcontentview(r.layout.main);      mapview mapview = (mapview) findviewbyid(r.id.mapview);     mapview.setbuiltinzoomcontrols(true);     landmarkoverlay = new landmarkoverlay();      //add landmarkoverlay list     mapview.getoverlays().add(landmarkoverlay); 

what else need when user taps screen, landmarkoverlay's ontap(geopoint) method gets called?

it should called. assume method ontap(geopoint point, mapview mapview)?


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -