public class TileSet
extends java.lang.Object
Constructor and Description |
---|
TileSet(java.lang.String tilejson,
java.lang.String... tiles) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttribution() |
java.lang.Float[] |
getBounds() |
java.lang.Float[] |
getCenter() |
java.lang.String[] |
getData() |
java.lang.String |
getDescription() |
java.lang.String |
getEncoding() |
java.lang.String[] |
getGrids() |
java.lang.String |
getLegend() |
float |
getMaxZoom() |
float |
getMinZoom() |
java.lang.String |
getName() |
java.lang.String |
getScheme() |
java.lang.String |
getTemplate() |
java.lang.String |
getTilejson() |
java.lang.String[] |
getTiles() |
java.lang.String |
getVersion() |
void |
setAttribution(java.lang.String attribution)
Default: null.
|
void |
setBounds(java.lang.Float... bounds)
Default: [-180, -90, 180, 90].
|
void |
setCenter(java.lang.Float... center)
The first value is the longitude, the second is latitude (both in
WGS:84 values), the third value is the zoom level as an integer.
|
void |
setCenter(LatLng center) |
void |
setData(java.lang.String... data)
An array of data files in GeoJSON format.
|
void |
setDescription(java.lang.String description)
A text description of the tileset.
|
void |
setEncoding(java.lang.String encoding)
Default: "mapbox".
|
void |
setGrids(java.lang.String... grids)
An array of interactivity endpoints.
|
void |
setLegend(java.lang.String legend)
Contains a legend to be displayed with the map.
|
void |
setMaxZoom(float maxZoom)
0.
|
void |
setMinZoom(float minZoom)
0.
|
void |
setName(java.lang.String name)
A name describing the tileset.
|
void |
setScheme(java.lang.String scheme)
Default: "xyz".
|
void |
setTemplate(java.lang.String template)
Contains a mustache template to be used to
format data from grids for interaction.
|
void |
setVersion(java.lang.String version) |
public TileSet(java.lang.String tilejson, java.lang.String... tiles)
tilejson
- A semver.org style version number. Describes the version of the TileJSON spec that is implemented
by this JSON object.tiles
- An array of tile endpoints. {z}, {x} and {y}, if present, are replaced with the corresponding
integers.
If multiple endpoints are specified, clients may use any combination of endpoints. All endpoints
MUST return the same
content for the same URL. The array MUST contain at least one endpoint.
Example: "http:localhost:8888/admin/1.0.0/world-light,broadband/{z}/{x}/{y}.png"public java.lang.String getTilejson()
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name to be setpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- the description to setpublic java.lang.String getVersion()
public void setVersion(java.lang.String version)
public java.lang.String getAttribution()
public void setAttribution(java.lang.String attribution)
attribution
- the attribution to setpublic java.lang.String getTemplate()
public void setTemplate(java.lang.String template)
template
- the template to setpublic java.lang.String getLegend()
public void setLegend(java.lang.String legend)
legend
- the legend to setpublic java.lang.String getScheme()
public void setScheme(java.lang.String scheme)
scheme
- the scheme to setpublic java.lang.String[] getTiles()
public java.lang.String[] getGrids()
public void setGrids(java.lang.String... grids)
Example: "http:localhost:8888/admin/1.0.0/broadband/{z}/{x}/{y}.grid.json"
grids
- the grids to setpublic java.lang.String[] getData()
public void setData(java.lang.String... data)
"http:localhost:8888/admin/data.geojson"
data
- the data array to setpublic float getMinZoom()
public void setMinZoom(float minZoom)
minZoom
- the minZoom level to setpublic float getMaxZoom()
public void setMaxZoom(float maxZoom)
maxZoom
- the maxZoom level to setpublic java.lang.Float[] getBounds()
public void setBounds(java.lang.Float... bounds)
bounds
- the Float array to setpublic java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding)
encoding
- the String encoding formula to setpublic java.lang.Float[] getCenter()
public void setCenter(java.lang.Float... center)
center
- the Float array to setpublic void setCenter(@NonNull LatLng center)