public class OfflineTilePyramidRegionDefinition extends java.lang.Object implements OfflineRegionDefinition, android.os.Parcelable
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 android.os.Parcelable.Creator |
CREATOR |
| Constructor and Description |
|---|
OfflineTilePyramidRegionDefinition(android.os.Parcel parcel)
Constructor to create an OfflineTilePyramidDefinition from a Parcel.
|
OfflineTilePyramidRegionDefinition(java.lang.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()
Gets the bounds of the OfflineRegion.
|
double |
getMaxZoom()
Gets the maximum zoom level the OfflineRegion map can be displayed at.
|
double |
getMinZoom()
Gets the minimum zoom level the OfflineRegion map can be displayed at.
|
float |
getPixelRatio()
Gets the pixel ratio of the OfflineRegion map.
|
java.lang.String |
getStyleURL()
Returns the map style url of the OfflineRegion.
|
java.lang.String |
getType()
Gest the type of the OfflineRegionDefinition for telemetry ("tileregion", "shaperegion").
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public OfflineTilePyramidRegionDefinition(java.lang.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(android.os.Parcel parcel)
parcel - the parcel to create the OfflineTilePyramidDefinition frompublic java.lang.String getStyleURL()
OfflineRegionDefinitiongetStyleURL in interface OfflineRegionDefinitionpublic LatLngBounds getBounds()
OfflineRegionDefinitiongetBounds in interface OfflineRegionDefinitionpublic double getMinZoom()
OfflineRegionDefinitiongetMinZoom in interface OfflineRegionDefinitionpublic double getMaxZoom()
OfflineRegionDefinitiongetMaxZoom in interface OfflineRegionDefinitionpublic float getPixelRatio()
OfflineRegionDefinitiongetPixelRatio in interface OfflineRegionDefinition@NonNull public java.lang.String getType()
OfflineRegionDefinitiongetType in interface OfflineRegionDefinitionpublic int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(@NonNull
android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable