コード例 #1
0
 /** 定位成功后回调函数 */
 @Override
 public void onLocationChanged(AMapLocation aLocation) {
   if (mListener != null) {
     zoom_current = mMap.getCameraPosition().zoom;
     mListener.onLocationChanged(aLocation);
     mLocation = aLocation;
     judge_position();
     deactivate();
   }
 }
コード例 #2
0
 @Override
 public void onCameraChangeFinish(CameraPosition arg0) {
   zoom_current = mMap.getCameraPosition().zoom;
   Log.i("zoom", "" + zoom_current);
   if (zoom_current < 17 && getMapPoints != null && !isDestroy) {
     changeMarkerToRedPoint(getMapPoints);
     isDestroy = true;
   } else if (zoom_current >= 17 && isDestroy) {
     getMapPoints.addMarkers();
     isDestroy = false;
   }
   Log.i("isDestroy", "" + isDestroy);
 }