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
Post a Comment