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.
Name | Type | Description |
---|---|---|
entry | Object | 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.
Name | Type | Description |
---|---|---|
entry | entry | entry object. |
Name | Type | Description |
---|---|---|
entry.format | string | The type of layer. |
entry.key | string | The unique identifier for the entry. |
entry.query | string | The query for the generation of the data to be displayed. |
entry.host | string | 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"
}
}
}
}
Name | Type | Description |
---|---|---|
entry | infoj-entry |
Name | Type | Attributes | Description |
---|---|---|---|
entry.query | string | The query for the generation of the data to be displayed. | |
entry.format | string | The format for the entry. | |
entry.theme | string | The theme for the entry. | |
entry.key | string | <optional> | The unique identifier for the entry. |
entry.label | string | <optional> | The label for the entry. |
entry.host | string | <optional> | The host for the entry. |
entry.zIndex | string | <optional> | The z-index for the entry. |
entry.display | string | <optional> | The display flag for the entry. |