Vector Tile Layer

A mix between Tile and Vector. Useful when rendering tons of features since features are rendered based on viewport instead of all at once at the start.

Layer Name

type: string
The unique display name and identifier of the layer. It must be unique and contain no special characters.

Kind of Layer

type: enum
A special kind of interaction for the layer. Please see the Kinds page for more.

URL

type: string
A file path that points to a vector tileset’s directory. If the path is relative, it will be relative to the mission’s directory. The URL must contain a proper placeholder ending such as: {z}/{x}/{y}.png. Alternatively vector tiles can be generated and served in real time with Geodatasets. Simply go to “Manage Geodatasets” at the bottom left, upload a geojson and link to it in this URL field with “geodatasets:{geodatasetname}”
_Note: If the vector tile layer contains points, the layer will break. A known workaround is to buffer all points.

DEM Tile URL

type: string optional
A file path like URL but pointing to a Digital Elevation Map tileset generated by auxillary/1bto4b/rasterstotiles1bto4b.py This is responsible for 3D data in the globe. It would be ideal if this tileset can match the extents of its corresponding raster and has either no nodata or has nodata far lower than that of its lowest point.

Legend

type: string
An absolute or relative file path pointing to a legend.csv that describes the symbology of the layer. Please see the Legend Tool to see how to form a legend.csv.

Tile Format

type: enum [TMS, WMTS, WMS]
The format of the tiles.

  • TMS: Tile Map Service tiles are 256x256 sized images hierarchically organized by zoom level and referenced with x and y coordinates. These are the standard format for web tiles and are the format that MMGIS’s auxiliary tiling scripts output. Append /{z}/{x}/{y}.png to your URL.
  • WMTS: Web Map Tile Service is the same exact concept as TMS but it has an inverted Y-axis. Just like TMS, append /{z}/{x}/{y}.png to your URL.
  • WMS: Web Map Service tiles are a popular way of publishing maps by professional GIS software. This format is similar to the previous two formats, but more generic and not so well optimized for use in web maps. A WMS image is defined by the coordinates of its corners. A layer (or list of layers) should be provided as an options by appending ?layers=<your_layer_name><,another_if_you _want> to your URL. To override WMS parameters append &<wms_param>=<value> again to the URL after the “layers” parameters. Example URL: http://ows.mundialis.de/services/service?layers=TOPO-WMS,OSM-Overlay-WMS

Initial Visibility

type: bool
Whether the layer is on initially.

Initial Opacity

type: float
A value from 0 to 1 of the layer’s initial opacity. 1 is fully opaque.

Minimum Zoom

type: integer
The lowest (smallest number) zoom level of the tile set.
Note: This field can be automatically populate with “Populate from XML”. “Populate from XML” uses looks for a tilemapresource.xml in the tileset directory specified by the URL field.

Maximum Native Zoom

type: integer
The highest (largest number) zoom level of the tile set.
Note: This field can be automatically populate with “Populate from XML”. “Populate from XML” uses looks for a tilemapresource.xml in the tileset directory specified by the URL field.

Maximum Zoom

type: integer
The highest (largest number) zoom level to see in MMGIS. This value is at least as high as Maximum Native Zoom. This allows zooms level higher than that of the tileset. Instead of rendering new tile image, it scales them in instead.

Time Enabled

type: bool
True if the layer is time enabled. URLs that contain {time} will be dynamically replaced by their set values when the layer is fetched.

Time Type

type: enum [Global, Individual]
Whether the layer should use global time values or function independently with its own time values.

Time Format

type: string optional
The string format to be used in the URL for {time}. Defaults to YYYY-MM-DDTHH:mm:ssZ.

Vector Tile Feature Unique Id Key

type: string Each feature of the vector tileset needs a property with a unique value to identify it. This required field is the name of that property.

Use Key as Name

type: string optional The property key whose value should be the hover text of each feature. This is the same as the useKeyAsName raw variable within Vector layers

Raw Variables

Vector Tiles are styled differently than Vectors. Raw variables here takes an object that maps internal vector tile layer names to styles. All raw variables are optional.

Example:

{
    "<internal_vector_tile_layer_name>": {
        "color": "#FFFFFF",
        "fill": true,
        "fillColor": "rgb(0, 125, 200)",
        "fillOpacity": 0.5,
        "opacity": 1,
        "radius": 4,
        "weight": 2
    }
}