[android] Add getters for content paddings.

This commit is contained in:
Larry Geromegnace
2016-01-25 10:48:17 +01:00
committed by Brad Leege
parent 72ca584638
commit 3d32c63f7d

View File

@@ -278,6 +278,7 @@ public final class MapView extends FrameLayout {
private boolean mTiltEnabled = true;
private boolean mAllowConcurrentMultipleOpenInfoWindows = false;
private String mStyleUrl;
private int mContentPaddingLeft;
private int mContentPaddingTop;
private int mContentPaddingRight;
@@ -1575,6 +1576,38 @@ public final class MapView extends FrameLayout {
return mNativeMapView.getZoom();
}
/**
* Return The current content padding left of the map view viewport.
* @return The current content padding left
*/
public int getContentPaddingLeft() {
return mContentPaddingLeft;
}
/**
* Return The current content padding left of the map view viewport.
* @return The current content padding left
*/
public int getContentPaddingTop() {
return mContentPaddingTop;
}
/**
* Return The current content padding left of the map view viewport.
* @return The current content padding left
*/
public int getContentPaddingRight() {
return mContentPaddingRight;
}
/**
* Return The current content padding left of the map view viewport.
* @return The current content padding left
*/
public int getContentPaddingBottom() {
return mContentPaddingBottom;
}
/**
* <p>
* Zooms the map to a new zoom level immediately without changing the center coordinate.