Class: UGCSubLayer

SuperMap.UGCSubLayer

The map service layer attribute information class. Image, ServerTheme, Grid, Vector layers all inherit from this class.

new SuperMap.UGCSubLayer(options)

UGCSubLayer.js, line 8
Name Type Description
options Object

The parameters.

Name Type Description
datasetInfo SuperMap.DatasetInfo

Dataset information.

displayFilter string optional

The filter condition for the layer display.

joinItems SuperMap.JoinItem optional

The joinItem class.

representationField string optional

The field storing the representation information.

ugcLayerType SuperMap.LayerType optional

Layer type.

Extends

Members

Layer bounds.

captionstring

The caption of the map layer.

completeLineSymbolDisplayedboolean

Whether to display a complete line symbol.

Dataset information.

descriptionstring

The description of the layer.

displayFilterstring

The filter condition for the layer display.

The joinItem class.

maxScalenumber

The maximum map scale.

minScalenumber

The minimum map scale.

minVisibleGeometrySizenumber

The minimum visible size, in pixels, of the geometry object.

namestring

Layer name.

opaqueRatenumber

The opacity of the layer.

overlapDisplayedboolean

Whether to display the overlapped parts of map objects.

overlapDisplayedOptionsSuperMap.OverlapDisplayedOptions

The options to avoid map overlap. It is valid only if overlapDisplayed is false.

queryableboolean

Whether the object in the layer enables to be queried.

representationFieldstring

The field storing the representation information.

subLayersArray

Sublayer set.

symbolScalableboolean

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

symbolScalenumber

The natural scale for symbol zoom of the layer.

Layer type.

ugcLayerTypeSuperMap.LayerType

Layer type.

visibleboolean

Whether to display the overlapped parts of map objects.

Methods

inherited destroy()

UGCLayer.js, line 77

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

inherited destroy()

UGCLayer.js, line 77

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

fromJson(jsonObject)

UGCSubLayer.js, line 60

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

Name Type Description
jsonObject Object

JSON object to convert.

toServerJSONObject(){Object}

UGCSubLayer.js, line 89

Converts to corresponding JSON object.

Returns:
Type Description
Object Corresponding JSON object.