コード例 #1
0
 @Override
 public boolean onTap(GeoPoint p, MapView mapView) {
   // All we need to know is where the user tapped. Then we update the
   // Graticule and let the listener know.
   if (mHandleTaps) {
     mGraticule = new Graticule(p);
     mListener.graticuleUpdated(mGraticule);
     mapView.invalidate();
     return true;
   } else {
     return false;
   }
 }
コード例 #2
0
 /**
  * Manually set the Graticule after construction. Note that the MapView will need to be
  * invalidated afterward.
  *
  * @param g new Graticule to set
  */
 public void setGraticule(Graticule g) {
   mGraticule = g;
   mListener.graticuleUpdated(mGraticule);
 }