public class OfflineTilePyramidRegionDefinition extends Object implements OfflineRegionDefinition
Both minZoom and maxZoom must be ≥ 0, and maxZoom must be ≥ minZoom.
maxZoom may be ∞, in which case for each tile source, the region will include tiles from minZoom up to the maximum zoom level provided by that source.
pixelRatio must be ≥ 0 and should typically be 1.0 or 2.0.
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator |
CREATOR |
Constructor and Description |
---|
OfflineTilePyramidRegionDefinition(Parcel parcel)
Constructor to create an OfflineTilePyramidDefinition from a Parcel.
|
OfflineTilePyramidRegionDefinition(String styleURL,
LatLngBounds bounds,
double minZoom,
double maxZoom,
float pixelRatio)
Constructor to create an OfflineTilePyramidDefinition from parameters.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
LatLngBounds |
getBounds() |
double |
getMaxZoom() |
double |
getMinZoom() |
float |
getPixelRatio() |
String |
getStyleURL() |
void |
writeToParcel(Parcel dest,
int flags) |
public OfflineTilePyramidRegionDefinition(String styleURL, LatLngBounds bounds, double minZoom, double maxZoom, float pixelRatio)
styleURL
- the stylebounds
- the boundsminZoom
- min zoommaxZoom
- max zoompixelRatio
- pixel ratio of the devicepublic OfflineTilePyramidRegionDefinition(Parcel parcel)
parcel
- the parcel to create the OfflineTilePyramidDefinition frompublic String getStyleURL()
public LatLngBounds getBounds()
getBounds
in interface OfflineRegionDefinition
public double getMinZoom()
public double getMaxZoom()
public float getPixelRatio()
public int describeContents()
public void writeToParcel(Parcel dest, int flags)
© 2015–2018 Mapbox. All rights reserved.