Class: Vector

SuperMap.Vector

The constructor of the UGC vector layer class.

new SuperMap.Vector(options)

Vector.js, line 6
Name Type Description
options Object

The parameters.

Name Type Description
style SuperMap.ServerStyle optional

The vector layer style.

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.

The vector layer style.

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)

Vector.js, line 38

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

Name Type Description
jsonObject Object

JSON object to be converted.

toServerJSONObject(){Object}

Vector.js, line 51

Converts to corresponding JSON object.

Returns:
Type Description
Object Corresponding JSON object.