public static class TileLayerOptions.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TileLayerOptions.Builder |
attribution(String attribution)
the string used by the attribution control, describes the layer data.
|
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 |
className(String className) |
TileLayerOptions.Builder |
crossOrigin(Boolean crossOrigin) |
TileLayerOptions.Builder |
detectRetina(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(String errorTileUrl)
URL to the tile image to show in place of the tile that failed to load.
|
TileLayerOptions.Builder |
keepBuffer(Integer keepBuffer) |
TileLayerOptions.Builder |
maxNativeZoom(Double maxNativeZoom)
Maximum zoom number the tiles source has available.
|
TileLayerOptions.Builder |
maxZoom(Integer maxZoom)
Maximum zoom double.
|
TileLayerOptions.Builder |
minNativeZoom(Double minNativeZoom) |
TileLayerOptions.Builder |
minZoom(Integer minZoom)
Minimum zoom number.
|
TileLayerOptions.Builder |
noWrap(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(Double opacity)
The opacity of the tile layer.
|
TileLayerOptions.Builder |
pane(String pane) |
TileLayerOptions.Builder |
subdomains(String[] subdomains)
Subdomains of the tile service.
|
TileLayerOptions.Builder |
tileSize(Integer tileSize)
Tile size (width and height in pixels, assuming tiles are square).
|
TileLayerOptions.Builder |
tms(Boolean tms)
If true, inverses Y axis numbering for tiles (turn this on for TMS services).
|
TileLayerOptions.Builder |
updateInterval(Boolean updateInterval) |
TileLayerOptions.Builder |
updateWhenIdle(Boolean updateWhenIdle)
If false, new tiles are loaded during panning, otherwise only after it (for better performance).
|
TileLayerOptions.Builder |
updateWhenZooming(Boolean updateWhenZooming) |
TileLayerOptions.Builder |
zIndex(Integer zIndex)
The explicit zIndex of the tile layer.
|
TileLayerOptions.Builder |
zoomOffset(Integer zoomOffset)
The zoom number used in tile URLs will be offset with this value.
|
TileLayerOptions.Builder |
zoomReverse(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(Integer minZoom)
minZoom
- the min zoompublic TileLayerOptions.Builder maxZoom(Integer maxZoom)
maxZoom
- the max zoompublic TileLayerOptions.Builder maxNativeZoom(Double maxNativeZoom)
maxNativeZoom
- the max native zoompublic TileLayerOptions.Builder tileSize(Integer tileSize)
tileSize
- the tile sizepublic TileLayerOptions.Builder subdomains(String[] subdomains)
subdomains
- the subdomainspublic TileLayerOptions.Builder errorTileUrl(String errorTileUrl)
errorTileUrl
- the error tile urlpublic TileLayerOptions.Builder attribution(String attribution)
attribution
- the attributionpublic TileLayerOptions.Builder tms(Boolean tms)
tms
- the tmspublic TileLayerOptions.Builder noWrap(Boolean noWrap)
noWrap
- the no wrappublic TileLayerOptions.Builder zoomOffset(Integer zoomOffset)
zoomOffset
- the zoom offsetpublic TileLayerOptions.Builder zoomReverse(Boolean zoomReverse)
zoomReverse
- the zoom reversepublic TileLayerOptions.Builder opacity(Double opacity)
opacity
- the opacitypublic TileLayerOptions.Builder zIndex(Integer zIndex)
zIndex
- the z indexpublic TileLayerOptions.Builder updateWhenIdle(Boolean updateWhenIdle)
updateWhenIdle
- the update when idlepublic TileLayerOptions.Builder detectRetina(Boolean detectRetina)
detectRetina
- the detect retinapublic TileLayerOptions.Builder bounds(LatLngBounds bounds)
bounds
- the boundspublic TileLayerOptions.Builder crossOrigin(Boolean crossOrigin)
public TileLayerOptions.Builder keepBuffer(Integer keepBuffer)
public TileLayerOptions.Builder className(String className)
public TileLayerOptions.Builder pane(String pane)
public TileLayerOptions.Builder updateWhenZooming(Boolean updateWhenZooming)
public TileLayerOptions.Builder updateInterval(Boolean updateInterval)
public TileLayerOptions.Builder minNativeZoom(Double minNativeZoom)
public TileLayerOptions build()
Copyright © 2018 G-Widgets. All rights reserved.