MapTileset Class
- java.
lang. Object - com.
azure. maps. render. models. MapTileset
- com.
Implements
public final class MapTileset
implements JsonSerializable<MapTileset>
Metadata for a tileset in the TileJSON format.
Constructor Summary
| Constructor | Description |
|---|---|
| MapTileset() |
Creates an instance of Map |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Map |
fromJson(JsonReader jsonReader)
Reads an instance of Map |
| String |
getAttribution()
Get the attribution property: Copyright attribution to be displayed on the map. |
|
Geo |
getBounds()
Get the bounds property: The maximum extent of available map tiles. |
|
Geo |
getCenter()
Get the center property: The default location of the tileset in the form [longitude, latitude, zoom]. |
| List<String> |
getData()
Get the data property: An array of data files in GeoJSON format. |
| String |
getDescription()
Get the description property: Text description of the tileset. |
| List<String> |
getGrids()
Get the grids property: An array of interactivity endpoints. |
| String |
getLegend()
Get the legend property: A legend to be displayed with the map. |
| Integer |
getMaxZoom()
Get the max |
| Integer |
getMinZoom()
Get the min |
| String |
getName()
Get the name property: A name describing the tileset. |
| String |
getScheme()
Get the scheme property: Default: "xyz". |
| String |
getTemplate()
Get the template property: A mustache template to be used to format data from grids for interaction. |
| String |
getTilejson()
Get the tilejson property: Describes the version of the TileJSON spec that is implemented by this JSON object. |
| List<String> |
getTiles()
Get the tiles property: An array of tile endpoints. |
| String |
getVersion()
Get the version property: A semver. |
|
Map |
setAttribution(String attribution)
Set the attribution property: Copyright attribution to be displayed on the map. |
|
Map |
setData(List<String> data)
Set the data property: An array of data files in GeoJSON format. |
|
Map |
setDescription(String description)
Set the description property: Text description of the tileset. |
|
Map |
setGrids(List<String> grids)
Set the grids property: An array of interactivity endpoints. |
|
Map |
setLegend(String legend)
Set the legend property: A legend to be displayed with the map. |
|
Map |
setMaxZoom(Integer maxZoom)
Set the max |
|
Map |
setMinZoom(Integer minZoom)
Set the min |
|
Map |
setName(String name)
Set the name property: A name describing the tileset. |
|
Map |
setScheme(String scheme)
Set the scheme property: Default: "xyz". |
|
Map |
setTemplate(String template)
Set the template property: A mustache template to be used to format data from grids for interaction. |
|
Map |
setTilejson(String tilejson)
Set the tilejson property: Describes the version of the TileJSON spec that is implemented by this JSON object. |
|
Map |
setTiles(List<String> tiles)
Set the tiles property: An array of tile endpoints. |
|
Map |
setVersion(String version)
Set the version property: A semver. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
MapTileset
public MapTileset()
Creates an instance of MapTileset class.
Method Details
fromJson
public static MapTileset fromJson(JsonReader jsonReader)
Reads an instance of MapTileset from the JsonReader.
Parameters:
Returns:
Throws:
getAttribution
public String getAttribution()
Get the attribution property: Copyright attribution to be displayed on the map. Implementations MAY decide to treat this as HTML or literal text. For security reasons, make absolutely sure that this field can't be abused as a vector for XSS or beacon tracking.
Returns:
getBounds
public GeoBoundingBox getBounds()
Get the bounds property: The maximum extent of available map tiles. Bounds MUST define an area covered by all zoom levels. The bounds are represented in WGS:84 latitude and longitude values, in the order left, bottom, right, top. Values may be integers or floating point numbers.
Returns:
getCenter
public GeoPosition getCenter()
Get the center property: The default location of the tileset in the form [longitude, latitude, zoom]. The zoom level MUST be between minzoom and maxzoom. Implementations can use this value to set the default location.
Returns:
getData
public List<String> getData()
Get the data property: An array of data files in GeoJSON format.
Returns:
getDescription
public String getDescription()
Get the description property: Text description of the tileset. The description can contain any legal character. Implementations SHOULD NOT interpret the description as HTML.
Returns:
getGrids
public List<String> getGrids()
Get the grids property: An array of interactivity endpoints.
Returns:
getLegend
public String getLegend()
Get the legend property: A legend to be displayed with the map. Implementations MAY decide to treat this as HTML or literal text. For security reasons, make absolutely sure that this field can't be abused as a vector for XSS or beacon tracking.
Returns:
getMaxZoom
public Integer getMaxZoom()
Get the maxZoom property: The maximum zoom level.
Returns:
getMinZoom
public Integer getMinZoom()
Get the minZoom property: The minimum zoom level.
Returns:
getName
public String getName()
Get the name property: A name describing the tileset. The name can contain any legal character. Implementations SHOULD NOT interpret the name as HTML.
Returns:
getScheme
public String getScheme()
Get the scheme property: Default: "xyz". Either "xyz" or "tms". Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed.
Returns:
getTemplate
public String getTemplate()
Get the template property: A mustache template to be used to format data from grids for interaction.
Returns:
getTilejson
public String getTilejson()
Get the tilejson property: Describes the version of the TileJSON spec that is implemented by this JSON object.
Returns:
getTiles
public List<String> getTiles()
Get the tiles property: An array of tile endpoints. 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.
Returns:
getVersion
public String getVersion()
Get the version property: A semver.org style version number for the tiles contained within the tileset. When changes across tiles are introduced, the minor version MUST change.
Returns:
setAttribution
public MapTileset setAttribution(String attribution)
Set the attribution property: Copyright attribution to be displayed on the map. Implementations MAY decide to treat this as HTML or literal text. For security reasons, make absolutely sure that this field can't be abused as a vector for XSS or beacon tracking.
Parameters:
Returns:
setData
public MapTileset setData(List<String> data)
Set the data property: An array of data files in GeoJSON format.
Parameters:
Returns:
setDescription
public MapTileset setDescription(String description)
Set the description property: Text description of the tileset. The description can contain any legal character. Implementations SHOULD NOT interpret the description as HTML.
Parameters:
Returns:
setGrids
public MapTileset setGrids(List<String> grids)
Set the grids property: An array of interactivity endpoints.
Parameters:
Returns:
setLegend
public MapTileset setLegend(String legend)
Set the legend property: A legend to be displayed with the map. Implementations MAY decide to treat this as HTML or literal text. For security reasons, make absolutely sure that this field can't be abused as a vector for XSS or beacon tracking.
Parameters:
Returns:
setMaxZoom
public MapTileset setMaxZoom(Integer maxZoom)
Set the maxZoom property: The maximum zoom level.
Parameters:
Returns:
setMinZoom
public MapTileset setMinZoom(Integer minZoom)
Set the minZoom property: The minimum zoom level.
Parameters:
Returns:
setName
public MapTileset setName(String name)
Set the name property: A name describing the tileset. The name can contain any legal character. Implementations SHOULD NOT interpret the name as HTML.
Parameters:
Returns:
setScheme
public MapTileset setScheme(String scheme)
Set the scheme property: Default: "xyz". Either "xyz" or "tms". Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed.
Parameters:
Returns:
setTemplate
public MapTileset setTemplate(String template)
Set the template property: A mustache template to be used to format data from grids for interaction.
Parameters:
Returns:
setTilejson
public MapTileset setTilejson(String tilejson)
Set the tilejson property: Describes the version of the TileJSON spec that is implemented by this JSON object.
Parameters:
Returns:
setTiles
public MapTileset setTiles(List<String> tiles)
Set the tiles property: An array of tile endpoints. 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.
Parameters:
Returns:
setVersion
public MapTileset setVersion(String version)
Set the version property: A semver.org style version number for the tiles contained within the tileset. When changes across tiles are introduced, the minor version MUST change.
Parameters:
Returns: