public void setTileSource(TileSource source, Runnable isReadyCallback) {
   super.setTileSource(source, isReadyCallback);
   mCenterX = mRenderer.centerX;
   mCenterY = mRenderer.centerY;
   mRotateMatrix.reset();
   mRotateMatrix.setRotate(mRenderer.rotation);
   mInverseRotateMatrix.reset();
   mInverseRotateMatrix.setRotate(-mRenderer.rotation);
   updateMinScale(getWidth(), getHeight(), source, true);
 }
 protected void onSizeChanged(int w, int h, int oldw, int oldh) {
   updateMinScale(w, h, mRenderer.source, false);
 }