Aller au contenu principal

Set Query Builder Layers

Commentaires

3 commentaires

  • Nico Burgerhart

    It should be possible, but I couldn't find an example of the query-builder.set-query command (or the related query-builder.display-query, filter-builder.set-filter or filter-builder.display-filter commands).

    0
  • Nico Burgerhart

    I missed the example given here, and I do not directly see what's wrong with the syntax of your samples.

    https://developers.vertigisstudio.com/docs/web/api-commands-operations/#command-query-builder.display-query

    Example: Query within an extent, selecting the layer to query by title.

    {
       "geometry": {
           "xmin": 13871520.850500003,
           "ymin": 3910293.086000003,
           "xmax": 14574034.873400003,
           "ymax": 4686306.161399998,
           "spatialReference": {
               "wkid": 102100,
               "latestWkid": 3857
           }
       },
       "layers": {
           "title": "Buildings"
       },
       "where": "FULL_ADDR = '900 GOVERNMENT ST'"
    }
    0
  • Amir Afzalinezhad

    I used this code: [

        {

            "name": "ui.activate",

            "arguments": {

                "component": "item://query-builder/query-builder-config-1"

            }

        },

        {

            "name": "query-builder.set-query",

            "arguments": {

                "where": "FULL_ADDR = '900 GOVERNMENT ST'",

                "layers": {

                    "title": "Buildings"

                }

            }

        }

    but still other layers are shown in the data source option. I want to hide others and only keep one.

    0

Vous devez vous connecter pour laisser un commentaire.