public static class TileLayerOptions.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
TileLayerOptions.Builder |
attribution(java.lang.String attribution)
e.g.
|
TileLayerOptions.Builder |
bounds(LatLngBounds bounds)
When this option is set, the TileLayer only loads tiles that are in the given geographical bounds.
|
TileLayerOptions |
build()
Builds the TileLayerOptions new instance
|
TileLayerOptions.Builder |
continuousWorld(java.lang.Boolean continuousWorld)
If set to true, the tile coordinates won't be wrapped by world width (-180 to 180 longitude) or clamped to lie within world height (-90 to 90).
|
TileLayerOptions.Builder |
detectRetina(java.lang.Boolean detectRetina)
If true and user is on a retina display, it will request four tiles of half the specified size and a bigger zoom level in place of one to utilize the high resolution.
|
TileLayerOptions.Builder |
errorTileUrl(java.lang.String errorTileUrl)
URL to the tile image to show in place of the tile that failed to load.
|
TileLayerOptions.Builder |
maxNativeZoom(java.lang.Number maxNativeZoom)
Maximum zoom number the tiles source has available.
|
TileLayerOptions.Builder |
maxZoom(java.lang.Number maxZoom)
Maximum zoom number.
|
TileLayerOptions.Builder |
minZoom(java.lang.Number minZoom)
Minimum zoom number.
|
TileLayerOptions.Builder |
noWrap(java.lang.Boolean noWrap)
If set to true, the tiles just won't load outside the world width (-180 to 180 longitude) instead of repeating.
|
TileLayerOptions.Builder |
opacity(java.lang.Number opacity)
The opacity of the tile layer.
|
TileLayerOptions.Builder |
reuseTiles(java.lang.Boolean reuseTiles)
If true, all the tiles that are not visible after panning are placed in a reuse queue from which they will be fetched when new tiles become visible (as opposed to dynamically creating new ones).
|
TileLayerOptions.Builder |
subdomains(java.lang.String[] subdomains)
Subdomains of the tile service.
|
TileLayerOptions.Builder |
tileSize(java.lang.Number tileSize)
Tile size (width and height in pixels, assuming tiles are square).
|
TileLayerOptions.Builder |
tms(java.lang.Boolean tms)
If true, inverses Y axis numbering for tiles (turn this on for TMS services).
|
TileLayerOptions.Builder |
unloadInvisibleTiles(java.lang.Boolean unloadInvisibleTiles)
If true, all the tiles that are not visible after panning are removed (for better performance).
|
TileLayerOptions.Builder |
updateWhenIdle(java.lang.Boolean updateWhenIdle)
If false, new tiles are loaded during panning, otherwise only after it (for better performance).
|
TileLayerOptions.Builder |
zIndex(java.lang.Number zIndex)
The explicit zIndex of the tile layer.
|
TileLayerOptions.Builder |
zoomOffset(java.lang.Number zoomOffset)
The zoom number used in tile URLs will be offset with this value.
|
TileLayerOptions.Builder |
zoomReverse(java.lang.Boolean zoomReverse)
If set to true, the zoom number used in tile URLs will be reversed (maxZoom - zoom instead of zoom).
|
public TileLayerOptions.Builder minZoom(java.lang.Number minZoom)
minZoom - the min zoompublic TileLayerOptions.Builder maxZoom(java.lang.Number maxZoom)
maxZoom - the max zoompublic TileLayerOptions.Builder maxNativeZoom(java.lang.Number maxNativeZoom)
maxNativeZoom - the max native zoompublic TileLayerOptions.Builder tileSize(java.lang.Number tileSize)
tileSize - the tile sizepublic TileLayerOptions.Builder subdomains(java.lang.String[] subdomains)
subdomains - the subdomainspublic TileLayerOptions.Builder errorTileUrl(java.lang.String errorTileUrl)
errorTileUrl - the error tile urlpublic TileLayerOptions.Builder attribution(java.lang.String attribution)
attribution - the attributionpublic TileLayerOptions.Builder tms(java.lang.Boolean tms)
tms - the tmspublic TileLayerOptions.Builder continuousWorld(java.lang.Boolean continuousWorld)
continuousWorld - the continuous worldpublic TileLayerOptions.Builder noWrap(java.lang.Boolean noWrap)
noWrap - the no wrappublic TileLayerOptions.Builder zoomOffset(java.lang.Number zoomOffset)
zoomOffset - the zoom offsetpublic TileLayerOptions.Builder zoomReverse(java.lang.Boolean zoomReverse)
zoomReverse - the zoom reversepublic TileLayerOptions.Builder opacity(java.lang.Number opacity)
opacity - the opacitypublic TileLayerOptions.Builder zIndex(java.lang.Number zIndex)
zIndex - the z indexpublic TileLayerOptions.Builder unloadInvisibleTiles(java.lang.Boolean unloadInvisibleTiles)
unloadInvisibleTiles - the unload invisible tilespublic TileLayerOptions.Builder updateWhenIdle(java.lang.Boolean updateWhenIdle)
updateWhenIdle - the update when idlepublic TileLayerOptions.Builder detectRetina(java.lang.Boolean detectRetina)
detectRetina - the detect retinapublic TileLayerOptions.Builder reuseTiles(java.lang.Boolean reuseTiles)
reuseTiles - the reuse tilespublic TileLayerOptions.Builder bounds(LatLngBounds bounds)
bounds - the boundspublic TileLayerOptions build()