public static class TileLayerWMSOptions.Builder extends Object
Constructor and Description |
---|
Builder(String layers)
Instantiates a new builder.
|
Modifier and Type | Method and Description |
---|---|
TileLayerWMSOptions.Builder |
attribution(String attribution)
the string used by the attribution control, describes the layer data.
|
TileLayerWMSOptions.Builder |
bounds(LatLngBounds bounds)
When this option is set, the TileLayer only loads tiles that are in the given geographical bounds.
|
TileLayerWMSOptions |
build()
Builds the TileLayerWMSOptions new instance
|
TileLayerWMSOptions.Builder |
className(String className) |
TileLayerWMSOptions.Builder |
crossOrigin(Boolean crossOrigin) |
TileLayerWMSOptions.Builder |
crs(CRS crs)
Coordinate Reference System to use for the WMS requests, defaults to
map CRS.
|
TileLayerWMSOptions.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.
|
TileLayerWMSOptions.Builder |
errorTileUrl(String errorTileUrl)
URL to the tile image to show in place of the tile that failed to load.
|
TileLayerWMSOptions.Builder |
format(String format)
WMS image format (use 'image/png' for layers with transparency).
|
TileLayerWMSOptions.Builder |
keepBuffer(Double keepBuffer) |
TileLayerWMSOptions.Builder |
maxNativeZoom(Double maxNativeZoom)
Maximum zoom number the tiles source has available.
|
TileLayerWMSOptions.Builder |
maxZoom(Double maxZoom)
Maximum zoom number.
|
TileLayerWMSOptions.Builder |
minNativeZoom(Double minNativeZoom) |
TileLayerWMSOptions.Builder |
minZoom(Double minZoom)
Minimum zoom number.
|
TileLayerWMSOptions.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.
|
TileLayerWMSOptions.Builder |
opacity(Double opacity)
The opacity of the tile layer.
|
TileLayerWMSOptions.Builder |
pane(String pane) |
TileLayerWMSOptions.Builder |
styles(String styles)
Comma-separated list of WMS styles.
|
TileLayerWMSOptions.Builder |
subdomains(String[] subdomains)
Subdomains of the tile service.
|
TileLayerWMSOptions.Builder |
tileSize(Double tileSize)
Tile size (width and height in pixels, assuming tiles are square).
|
TileLayerWMSOptions.Builder |
tms(Boolean tms)
If true, inverses Y axis numbering for tiles (turn this on for TMS services).
|
TileLayerWMSOptions.Builder |
transparent(Boolean transparent)
If true, the WMS service will return images with transparency.
|
TileLayerWMSOptions.Builder |
updateInterval(Boolean updateInterval) |
TileLayerWMSOptions.Builder |
updateWhenIdle(Boolean updateWhenIdle)
If false, new tiles are loaded during panning, otherwise only after it (for better performance).
|
TileLayerWMSOptions.Builder |
updateWhenZooming(Boolean updateWhenZooming) |
TileLayerWMSOptions.Builder |
version(String version)
Version of the WMS service to use.
|
TileLayerWMSOptions.Builder |
zIndex(Double zIndex)
The explicit zIndex of the tile layer.
|
TileLayerWMSOptions.Builder |
zoomOffset(Double zoomOffset)
The zoom number used in tile URLs will be offset with this value.
|
TileLayerWMSOptions.Builder |
zoomReverse(Boolean zoomReverse)
If set to true, the zoom number used in tile URLs will be reversed (maxZoom - zoom instead of zoom).
|
public Builder(String layers)
layers
- Comma-separated list of WMS layers to show.public TileLayerWMSOptions.Builder styles(String styles)
styles
- the stylespublic TileLayerWMSOptions.Builder format(String format)
format
- the formatpublic TileLayerWMSOptions.Builder transparent(Boolean transparent)
transparent
- the transparentpublic TileLayerWMSOptions.Builder version(String version)
version
- the versionpublic TileLayerWMSOptions.Builder crs(CRS crs)
crs
- the crspublic TileLayerWMSOptions.Builder minZoom(Double minZoom)
minZoom
- the min zoompublic TileLayerWMSOptions.Builder maxZoom(Double maxZoom)
maxZoom
- the max zoompublic TileLayerWMSOptions.Builder maxNativeZoom(Double maxNativeZoom)
maxNativeZoom
- the max native zoompublic TileLayerWMSOptions.Builder tileSize(Double tileSize)
tileSize
- the tile sizepublic TileLayerWMSOptions.Builder subdomains(String[] subdomains)
subdomains
- the subdomainspublic TileLayerWMSOptions.Builder errorTileUrl(String errorTileUrl)
errorTileUrl
- the error tile urlpublic TileLayerWMSOptions.Builder attribution(String attribution)
attribution
- the attributionpublic TileLayerWMSOptions.Builder tms(Boolean tms)
tms
- the tmspublic TileLayerWMSOptions.Builder noWrap(Boolean noWrap)
noWrap
- the no wrappublic TileLayerWMSOptions.Builder zoomOffset(Double zoomOffset)
zoomOffset
- the zoom offsetpublic TileLayerWMSOptions.Builder zoomReverse(Boolean zoomReverse)
zoomReverse
- the zoom reversepublic TileLayerWMSOptions.Builder opacity(Double opacity)
opacity
- the opacitypublic TileLayerWMSOptions.Builder zIndex(Double zIndex)
zIndex
- the z indexpublic TileLayerWMSOptions.Builder updateWhenIdle(Boolean updateWhenIdle)
updateWhenIdle
- the update when idlepublic TileLayerWMSOptions.Builder detectRetina(Boolean detectRetina)
detectRetina
- the detect retinapublic TileLayerWMSOptions.Builder bounds(LatLngBounds bounds)
bounds
- the boundspublic TileLayerWMSOptions.Builder crossOrigin(Boolean crossOrigin)
public TileLayerWMSOptions.Builder keepBuffer(Double keepBuffer)
public TileLayerWMSOptions.Builder className(String className)
public TileLayerWMSOptions.Builder pane(String pane)
public TileLayerWMSOptions.Builder updateWhenZooming(Boolean updateWhenZooming)
public TileLayerWMSOptions.Builder updateInterval(Boolean updateInterval)
public TileLayerWMSOptions.Builder minNativeZoom(Double minNativeZoom)
public TileLayerWMSOptions build()
Copyright © 2018 G-Widgets. All rights reserved.