Beispiel #1
0
 @Override
 public final boolean onMarkerClick(Marker marker) {
   for (Overlay mMarker : mOverlayList) {
     if (mMarker instanceof Marker && mMarker.equals(marker)) {
       if (marker.getExtraInfo() != null) {
         onRouteNodeClick(marker.getExtraInfo().getInt("index"));
       }
     }
   }
   return true;
 }
Beispiel #2
0
 @Override
 public boolean onPolylineClick(Polyline polyline) {
   boolean flag = false;
   for (Overlay mPolyline : mOverlayList) {
     if (mPolyline instanceof Polyline && mPolyline.equals(polyline)) {
       // 选中
       flag = true;
       break;
     }
   }
   setFocus(flag);
   return true;
 }