GEOLYTIX / xyz

An open source javascript framework for spatial data and application interfaces.
MIT License
88 stars 26 forks source link

infoj entry type:layer locale lookup #1683

Closed simon-leech closed 2 weeks ago

simon-leech commented 2 weeks ago

Description

In the below infoj entry, it should use the layer for the styling of the entry. However, if the layer lookup in the locale returns nothing, currently it crashes as entry.style does not exist.

We need to add a warning / error if the layer lookup does not work, so this is easy to bug.

 {
      "label": "MVT Clone",
      "type": "mvt_clone",
      "zIndex": 99,
      "display": false,
      "layer": "layer_lookup",
      "query": "mvt_clone_query",
      "template": {
        "key": "mvt_clone_query",
        "src": "file_path.sql"
      },
      "queryparams": {
        "id": true
      }
    }

Type of Issue

Please delete options that are not relevant, and select all options that apply.