ui/locations/entries/vector_layer

The vector_layer entry module exports a default [location] entry method to process infoj type:vector_layer entries.

Requires

Methods

(inner) hide(entry)

entry.display flag will be set to false. The entry.style.panel element display style will be set to none, if it exists. The geometry layer will be removed from the map.

Parameters:
NameTypeDescription
entryObject

entry object.

(inner) show(entry)

entry.display flag will be set to true. The entry.style.panel element display style will be set to block, if it exists. The geometry layer will be added to the map (if it does not already exist). The entry.query will be used to generate a query string and fetch features. The features will be set to the entry object. The entry object will be updated with the features. The entry object will be updated with the layer source. The layer will be added to the map.

Parameters:
NameTypeDescription
entryentry

entry object.

Properties
NameTypeDescription
entry.formatstring

The type of layer.

entry.keystring

The unique identifier for the entry.

entry.querystring

The query for the generation of the data to be displayed.

entry.hoststring

The host for the entry.

(inner) vector_layer(entry)

mapp.ui.locations.entries.vector_layer(entry)

The method processes a vector_layer entry and returns a panel node to the location view. The vector_layer entry generates a checkbox to control the display of a vector layer on the map.

{
  "key": "nearest_to",
  "label": "Nearest to",
  "type": "vector_layer",
  "format": "wkt",
  "srid": "4326",
  "zIndex": 94,
  "query": "nearest_to",
  "queryparams": {
    "id": true,
    "reduce": true
  },
  "style": {
    "default": {
      "icon": {
        "type": "triangle"
      }
    }
  }
}
Parameters:
NameTypeDescription
entryinfoj-entry
Properties
NameTypeAttributesDescription
entry.querystring

The query for the generation of the data to be displayed.

entry.formatstring

The format for the entry.

entry.themestring

The theme for the entry.

entry.keystring<optional>

The unique identifier for the entry.

entry.labelstring<optional>

The label for the entry.

entry.hoststring<optional>

The host for the entry.

entry.zIndexstring<optional>

The z-index for the entry.

entry.displaystring<optional>

The display flag for the entry.