The MarkerLayer object defines the attributes of the marker layer.

Attribute list

Attribute Type Description

layerType

string

[Required]

The layer type. Fixed constant: "MARKER".

name

string

[Required]

The layer name.

visible

boolean

[Required]

The visibility of the layer.

opacity

number

[Optional]

The opacity of the layer. The maximum value is 1 and the minimum value is 0.

visibleScale

VisibleScale

[Optional]

Stores the visible scale range of the current layer.

serverId

string

[Required]

The feature information of the MarkerLayer will be integrated and stored in a geojson file and uploaded to iPortal. The serverId attribute records the id of the data item corresponding to the file uploaded to iPortal.

Example

Build a MarkerLayer that conforms to the WebMap specification.

 {

  "layers": [

        {

            "layerType": "MARKER",

            "name": "square",

            "visible": true,

            "opacity": 0.74,

            "visibleScale": {

                "maxScale": "1:2256.999",

                "minScale": "1:591658710.909"

            },

            "serverId": "2047551987"

        }

    ],

 }