Class: UGCMapLayer

SuperMap.UGCMapLayer

UGC ServerLayer class.

new SuperMap.UGCMapLayer(options)

UGCMapLayer.js, line 6
Name Type Description
options Object

The parameters.

Name Type Default Description
completeLineSymbolDisplayed boolean optional

Whether to display a complete line symbol.

maxScale number optional

The maximum map scale.

minScale number optional

The minimum map scale.

minVisibleGeometrySize number optional

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

opaqueRate number optional

The opacity of the layer.

symbolScalable boolean optional

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

symbolScale number optional

The natural scale for symbol zoom of the layer.

overlapDisplayed boolean false optional

Whether to display the overlapped parts of map objects.

overlapDisplayedOptions SuperMap.OverlapDisplayedOptions optional

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

Extends

Members

Layer bounds.

captionstring

The caption of the map layer.

completeLineSymbolDisplayedboolean

Whether to display a complete line symbol.

descriptionstring

The description of the layer.

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.

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.

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)

UGCMapLayer.js, line 93

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

Name Type Description
jsonObject Object

JSON object to convert.

toServerJSONObject(){Object}

UGCMapLayer.js, line 103

Converts to corresponding JSON object.

Returns:
Type Description
Object Corresponding JSON object.