Class: UGCLayer

SuperMap.UGCLayer

UGC layer class.

new SuperMap.UGCLayer(options)

UGCLayer.js, line 6
Name Type Description
options Object

The parameters.

Name Type Default Description
bounds SuperMap.Bounds

Layer bounds.

type SuperMap.UGCLayerType

Layer type.

name string

Layer name.

caption string optional

The caption of the map layer.

description string optional

The description of the layer.

queryable boolean optional

Whether the object in the layer enables to be queried.

subUGCLayers boolean optional

Whether allowing the symbol size changes along with the layer zoom.

visible boolean false optional

Whether to display the overlapped parts of map objects.

Members

Layer bounds.

captionstring

The caption of the map layer.

descriptionstring

The description of the layer.

namestring

Layer name.

queryableboolean

Whether the object in the layer enables to be queried.

subLayersArray

Sublayer set.

Layer type.

visibleboolean

Whether to display the overlapped parts of map objects.

Methods

destroy()

UGCLayer.js, line 77

Disposes the resource. The property that references resource is set to null.

fromJson(jsonObject)

UGCLayer.js, line 86

Convert the server-side JSON object to the current client object.

Name Type Description
jsonObject Object

JSON object to convert.

toServerJSONObject(){Object}

UGCLayer.js, line 101

Converts to corresponding JSON object.

Returns:
Type Description
Object Corresponding JSON object.