SearchSetting

Feedback


Used to define the attributes related to the search settings in the WebMap specification.

SearchSetting

The SearchSetting object defines the properties required in the search settings when the data source of the layer is the RESTDATA or PORTAL_DATA service.

Attribute list

Attribute Type Description

name

string

The name of the search condition.

attributes

array<string>

Search field.

createTime

string

The creation time of the search condition.

Example

Create a vector layer conforming to the WebMap specification, and set the layer search settings.

 {

     "layers": [

        {

            "layerType": "VECTOR",

            "name": "Beijing subway traffic lines",

            "visible": true,

            "featureType": "LINE",

            "projection": "EPSG:4326",

            "enableFields": [

                "Standard name"

            ],

            "style": {

                "strokeColor": "#4CC8A3",

                "strokeWidth": 2,

                "strokeOpacity": 1,

                "lineDash": "solid",

                "type": "LINE"

            },

            "searchSetting": [

                {

                    "name": "Traffic line",

                    "attributes": [

                        "Standard name",

                        "dataviz_featureID"

                    ],

                    "createTime": "2020.5.12"

                }

            ],

            "dataSource": {

                "type": "SAMPLE_DATA",

                "name": "BeijingSubwayLine"

            }

        },

        {

            "layerType": "MARKER",

            "name": "makerLayer1",

            "visible": true,

            "serverId": "994313681"

        }

    ],

 }

RestMapSearchSetting

The RestMapSearchSetting object defines the properties required for search settings when the data source of the layer is a RESTMAP service.

Attribute list

Attribute Type Description

layerName

string

The layer name.

name

string

The name of the search condition.

attributes

array<string>

Search field.

createTime

string

The creation time of the search condition.

Example

Create a layer of TILE type conforming to the WebMap specification, and perform layer search settings.

 {   

     "layers": [

        {

            "layerType": "TILE",

            "name": "World",

            "visible": true,

            "url": "http://192.168.17.199:8090/iserver/services/map-world/rest/maps/World",

            "searchSetting": [

                {

                    "name": "Search condition",

                    "attributes": [

                        "SmID"

                    ],

                    "createTime": "2020.5.12",

                    "layerName": "continent_T@World"

                }

            ]

        }

    ],

}