Class MapTileset

java.lang.Object
com.azure.maps.render.models.MapTileset
All Implemented Interfaces:
com.azure.json.JsonSerializable<MapTileset>

public final class MapTileset extends Object implements com.azure.json.JsonSerializable<MapTileset>
Metadata for a tileset in the TileJSON format.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of MapTileset class.
  • Method Summary

    Modifier and Type
    Method
    Description
    static MapTileset
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of MapTileset from the JsonReader.
    Get the attribution property: Copyright attribution to be displayed on the map.
    com.azure.core.models.GeoBoundingBox
    Get the bounds property: The maximum extent of available map tiles.
    com.azure.core.models.GeoPosition
    Get the center property: The default location of the tileset in the form [longitude, latitude, zoom].
    Get the data property: An array of data files in GeoJSON format.
    Get the description property: Text description of the tileset.
    Get the grids property: An array of interactivity endpoints.
    Get the legend property: A legend to be displayed with the map.
    Get the maxZoom property: The maximum zoom level.
    Get the minZoom property: The minimum zoom level.
    Get the name property: A name describing the tileset.
    Get the scheme property: Default: "xyz".
    Get the template property: A mustache template to be used to format data from grids for interaction.
    Get the tilejson property: Describes the version of the TileJSON spec that is implemented by this JSON object.
    Get the tiles property: An array of tile endpoints.
    Get the version property: A semver.org style version number for the tiles contained within the tileset.
    setAttribution(String attribution)
    Set the attribution property: Copyright attribution to be displayed on the map.
    Set the data property: An array of data files in GeoJSON format.
    setDescription(String description)
    Set the description property: Text description of the tileset.
    Set the grids property: An array of interactivity endpoints.
    setLegend(String legend)
    Set the legend property: A legend to be displayed with the map.
    Set the maxZoom property: The maximum zoom level.
    Set the minZoom property: The minimum zoom level.
    Set the name property: A name describing the tileset.
    setScheme(String scheme)
    Set the scheme property: Default: "xyz".
    setTemplate(String template)
    Set the template property: A mustache template to be used to format data from grids for interaction.
    setTilejson(String tilejson)
    Set the tilejson property: Describes the version of the TileJSON spec that is implemented by this JSON object.
    Set the tiles property: An array of tile endpoints.
    setVersion(String version)
    Set the version property: A semver.org style version number for the tiles contained within the tileset.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • MapTileset

      public MapTileset()
      Creates an instance of MapTileset class.
  • Method Details

    • getTilejson

      public String getTilejson()
      Get the tilejson property: Describes the version of the TileJSON spec that is implemented by this JSON object.
      Returns:
      the tilejson value.
    • 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:
      tilejson - the tilejson value to set.
      Returns:
      the MapTileset object itself.
    • 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:
      the name value.
    • 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:
      name - the name value to set.
      Returns:
      the MapTileset object itself.
    • 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:
      the description value.
    • 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:
      description - the description value to set.
      Returns:
      the MapTileset object itself.
    • 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:
      the version value.
    • 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:
      version - the version value to set.
      Returns:
      the MapTileset object itself.
    • 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:
      the attribution value.
    • 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:
      attribution - the attribution value to set.
      Returns:
      the MapTileset object itself.
    • getTemplate

      public String getTemplate()
      Get the template property: A mustache template to be used to format data from grids for interaction.
      Returns:
      the template value.
    • setTemplate

      public MapTileset setTemplate(String template)
      Set the template property: A mustache template to be used to format data from grids for interaction.
      Parameters:
      template - the template value to set.
      Returns:
      the MapTileset object itself.
    • 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:
      the legend value.
    • 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:
      legend - the legend value to set.
      Returns:
      the MapTileset object itself.
    • 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:
      the scheme value.
    • 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:
      scheme - the scheme value to set.
      Returns:
      the MapTileset object itself.
    • 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:
      the tiles value.
    • 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:
      tiles - the tiles value to set.
      Returns:
      the MapTileset object itself.
    • getGrids

      public List<String> getGrids()
      Get the grids property: An array of interactivity endpoints.
      Returns:
      the grids value.
    • setGrids

      public MapTileset setGrids(List<String> grids)
      Set the grids property: An array of interactivity endpoints.
      Parameters:
      grids - the grids value to set.
      Returns:
      the MapTileset object itself.
    • getData

      public List<String> getData()
      Get the data property: An array of data files in GeoJSON format.
      Returns:
      the data value.
    • setData

      public MapTileset setData(List<String> data)
      Set the data property: An array of data files in GeoJSON format.
      Parameters:
      data - the data value to set.
      Returns:
      the MapTileset object itself.
    • getMinZoom

      public Integer getMinZoom()
      Get the minZoom property: The minimum zoom level.
      Returns:
      the minZoom value.
    • setMinZoom

      public MapTileset setMinZoom(Integer minZoom)
      Set the minZoom property: The minimum zoom level.
      Parameters:
      minZoom - the minZoom value to set.
      Returns:
      the MapTileset object itself.
    • getMaxZoom

      public Integer getMaxZoom()
      Get the maxZoom property: The maximum zoom level.
      Returns:
      the maxZoom value.
    • setMaxZoom

      public MapTileset setMaxZoom(Integer maxZoom)
      Set the maxZoom property: The maximum zoom level.
      Parameters:
      maxZoom - the maxZoom value to set.
      Returns:
      the MapTileset object itself.
    • getBounds

      public com.azure.core.models.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:
      the bounds value.
    • getCenter

      public com.azure.core.models.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:
      the center value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<MapTileset>
      Throws:
      IOException
    • fromJson

      public static MapTileset fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of MapTileset from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of MapTileset if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the MapTileset.