Class MapSourceConfig

java.lang.Object
org.openremote.model.manager.MapSourceConfig

public class MapSourceConfig extends Object
Implements MapLibre style spec sources property.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected String
    Contains an attribution to be displayed when the map is shown to a user.
    protected float[]
    An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: [sw.lng, sw.lat, ne.lng, ne.lat].
    protected boolean
    The custom property enables users to specify the tile server is not part of OpenRemote.
    protected Integer
    Maximum zoom level for which tiles are available, as in the TileJSON spec.
    protected Integer
    Minimum zoom level for which tiles are available, as in the TileJSON spec.
    protected String
    Influences the y direction of the tile coordinates.
    protected String[]
    An array of one or more tile source URLs, as in the TileJSON spec.
    protected String
    The type of the source.
    protected String
    A URL to a TileJSON resource.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • type

      protected String type
      The type of the source.
    • url

      protected String url
      A URL to a TileJSON resource.
    • tiles

      protected String[] tiles
      An array of one or more tile source URLs, as in the TileJSON spec.
    • bounds

      protected float[] bounds
      An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: [sw.lng, sw.lat, ne.lng, ne.lat]. When this property is included in a source, no tiles outside of the given bounds are requested by MapLibre.
    • scheme

      protected String scheme
      Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed.

      • xyz: Slippy map tilenames scheme.
      • tms: OSGeo spec scheme.

    • minzoom

      protected Integer minzoom
      Minimum zoom level for which tiles are available, as in the TileJSON spec.
    • maxzoom

      protected Integer maxzoom
      Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels.
    • attribution

      protected String attribution
      Contains an attribution to be displayed when the map is shown to a user.
    • custom

      protected boolean custom
      The custom property enables users to specify the tile server is not part of OpenRemote. The Maplibre sources follow the TileJSON specification. The TileJSON specification allows additional properties not in the spec. Those properties MUST be ignored by MapLibre, but can be used in OpenRemote.
  • Constructor Details

    • MapSourceConfig

      public MapSourceConfig()