Class: Image

SuperMap.Image

UGC The image layer class.

new SuperMap.Image(options)

Image.js, line 7
Name Type Description
options Object

The parameters.

Name Type Description
colorSpaceType SuperMap.ColorSpaceType optional

The color display mode of image layer.

brightness number optional

The brightness of image layer.

displayBandIndexes Array.<number> optional

The band index of current image layer display.

contrast number optional

The contrast of image layer.

transparent boolean optional

Whether the background is transparent.

transparentColor SuperMap.ServerColor optional

The transparent color of background.

transparentColorTolerance number optional

The tolerance of background transparent color.

Extends

Members

Layer bounds.

brightnessnumber

The brightness of image layer.

captionstring

The caption of the map layer.

colorSpaceTypeSuperMap.ColorSpaceType

The color display mode of image layer.

completeLineSymbolDisplayedboolean

Whether to display a complete line symbol.

contrastnumber

The contrast of image layer.

Dataset information.

descriptionstring

The description of the layer.

displayBandIndexesArray.<number>

The band index of current image layer display.

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.

transparentboolean

Whether the background is transparent.

transparentColorSuperMap.ServerColor

The transparent color of background.

transparentColorTolerancenumber

The tolerance of background transparent color.

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)

Image.js, line 81

Convert the JSON object in the server side into the current client object.

Name Type Description
jsonObject Object

the JSON object to be converted.

toServerJSONObject()

Image.js, line 95

Convert to the corresponding JSON object.