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.
Constructor and Description |
---|
OfflineTilePyramidRegionDefinition(String styleURL,
LatLngBounds bounds,
double minZoom,
double maxZoom,
float pixelRatio)
Constructor
|
Modifier and Type | Method and Description |
---|---|
LatLngBounds |
getBounds() |
double |
getMaxZoom() |
double |
getMinZoom() |
float |
getPixelRatio() |
String |
getStyleURL() |
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 String getStyleURL()
public LatLngBounds getBounds()
getBounds
in interface OfflineRegionDefinition
public double getMinZoom()
public double getMaxZoom()
public float getPixelRatio()
© 2015–2017 Mapbox. All rights reserved.