MigrationSetting

Feedback


Defines the related properties of MigrationLayer in the WebMap specification, such as migration line settings, animation settings, label settings, and location settings. For related examples, please refer to MigrationLayer.

LineSetting

The LineSetting object defines the relevant attributes of the line settings in the migration map.

Attribute Type Description

color

string

Sets the color of the migration line. The value is the hexadecimal code corresponding to the color.

type

string

Sets the type of migration line. The optional values are "solid", "dashed", and "dotted".

width

number

Sets the width of the migration line.

opacity

number

Sets the opacity of the migration line. The maximum value is 1 and the minimum value is 0.

curveness

number

Set the curvature of the migration line, the maximum value is 1 and the minimum value is 0.

AnimationSetting

The AnimationSetting object defines the relevant properties of the animation special effect settings in the migration map.

Attribute Type Description

show

boolean Whether to display special effects animation.
period

number

The duration of the special effect animation.

trailLength

number

The length of the special effect trail.

constantSpeed

number

The moving speed of the special effect trail.

symbol

string

The special effect symbol style.

symbolSize

number

The special effect symbol size.

LabelSetting

The LabelSetting object defines the relevant attributes of the label in the migration map.

Attribute Type Description

show

boolean Whether to display the label.

from

string

Starting point name field.

to

sring

End point name field.

color

string

Sets the color of the label. The value is the hexadecimal code corresponding to the color.

fontFamily

string

The font of the label.

Position

If the positioning mode is based on coordinate, the relevant properties of the Position object are as follows:

Attribute Type Description
type string Coordinate positioning mode, fixed constant "XY_FIELD".

xField

string

X coordinate field.

yField

sring

Y coordinate field.

If the positioning mode is based on location, the relevant properties of the Position object are as follows:

Attribute Type Description
type string Location positioning mode, fixed constant: "PLACE_FIELD".

xField

string

Location field.