Class: OverlapDisplayedOptions

SuperMap.OverlapDisplayedOptions

The MapOverlapDisplayedOptions class.

new SuperMap.OverlapDisplayedOptions(options)

OverlapDisplayedOptions.js, line 5

There may be regions where text or thematic map elements are densely distributed. This class can be used to control the overlap of different types of objects.

Name Type Description
options Object

The parameters.

Name Type Default Description
allowPointOverlap boolean true optional

Sets whether to display overlapped point object.

allowPointWithTextDisplay boolean true optional

Set whether to filter labels and points in the corresponding common layer for display. If so, the points will be rendered with the style of the layer with the smallest index in the layer collection.

allowTextOverlap boolean false optional

Sets whether to display overlapped text object.

allowTextAndPointOverlap boolean true optional

A value indicating whether to display the overlapped text objects or point objects if the the text objects and point objects overlap (not applicable to the situation that text objects overlap with text objects or point objects overlap with point objects).

allowThemeGraduatedSymbolOverlap boolean false optional

Sets whether to display overlapped graduated symbols.

allowThemeGraphOverlap boolean false optional

Sets a value indicating whether to display overlapped graduated symbols.

horizontalOverlappedSpaceSize number 0 optional

The horizontal overlapped space between two objects. The unit is 0.1 millimeter. It used with verticalOverlappedSpaceSize. When the space is less than this value, and the vertical space is less than verticalOverlappedSpaceSize, it overlapps.

verticalOverlappedSpaceSize number 0 optional

overlapped space between two objects. The unit is 0.1 millimeter. It used with horizontalOverlappedSpaceSize. When the space is less than this value, and the horizontal space is less than horizontalOverlappedSpaceSize, it overlapps.

Members

allowPointOverlapboolean

Sets whether to display overlapped point object.

Default Value:
true

allowPointWithTextDisplayboolean

Set whether to filter labels and points in the corresponding common layer for display. If so, the points will be rendered with the style of the layer with the smallest index in the layer collection.

Default Value:
true

allowTextAndPointOverlapboolean

A value indicating whether to display the overlapped text objects or point objects if the the text objects and point objects overlap (not applicable to the situation that text objects overlap with text objects or point objects overlap with point objects).

Default Value:
true

allowTextOverlapboolean

Sets whether to display overlapped text object.

allowThemeGraduatedSymbolOverlapboolean

Sets whether to display overlapped graduated symbols.

allowThemeGraphOverlapboolean

Sets a value indicating whether to display overlapped graduated symbols. Default is false.

horizontalOverlappedSpaceSizenumber

The horizontal overlapped space between two objects. The unit is 0.1 millimeter. It used with verticalOverlappedSpaceSize. When the space is less than this value, and the vertical space is less than verticalOverlappedSpaceSize, it overlapps.

verticalOverlappedSpaceSizenumber

The vertical overlapped space between two objects. The unit is 0.1 millimeter. It used with horizontalOverlappedSpaceSize. When the space is less than this value, and the horizontal space is less than horizontalOverlappedSpaceSize, it overlapps.

Methods

destroy()

OverlapDisplayedOptions.js, line 85

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

fromJson(jsonObject)

OverlapDisplayedOptions.js, line 94

Transform the JSON object on the server to the client object。

Name Type Description
jsonObject Object

The JSON object to be converted。

toServerJSONObject(){Object}

OverlapDisplayedOptions.js, line 104

Transform to the JSON object.

Returns:
Type Description
Object JSON object。

toString(){string}

OverlapDisplayedOptions.js, line 115

Turned to the overlapDisplayedOptions parameter of the corresponding tileLayer request tile.

Returns:
Type Description
string the overlapDisplayedOptions parameter of the corresponding tileLayer request tile.