new SuperMap.ThemeFlow(options)
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
The parameters.
|
Members
-
flowEnabledboolean
-
Whether to apply flow display to a label or a symbol.
On a label map, some geometric objects may occupy large areas or have a linear shape and cannot be completely displayed in a single map window. For such an object,
its label will not be visible in the current map window if the label position is fixed, and one needs to pan the map in order to check the label information for the object. If flow display is adopted, the label will be displayed in the current map window even only part of the object is visible in the window.
When the map is panned, object labels move accordingly, so that the labels of both fully-visible objects and partly-visible objects are visible in the current map window. In this way, the label information for all features can be conveniently viewed. -
leaderLineDisplayedboolean
-
Whether to display the leader line between a label or a symbol and the corresponding object. The default value is false, indicating that the leader line is not displayed. Leader lines are applicable only when flowEnabled is true. When flow display is applied to a label, the label position is not fixed. In this case, the feature corresponding to a flowing label or symbol can be easily found by showing the leader line because a leader line always points to a place within the feature. Leader lines can also be used when a rendering symbol skews away from the object it points to. In this case, a leader line can be used to connect the symbol and the object.
-
leaderLineStyleSuperMap.ServerStyle
-
The style of the leader line between a label or a symbol and the corresponding object.
Methods
-
SuperMap.ThemeFlow.fromObj(obj){SuperMap.ThemeFlow}
ThemeFlow.js, line 61 -
Getting the label or symbol flow display and the traction line style setting from the incoming object.
Name Type Description obj
Object The incoming object.
Returns:
Type Description SuperMap.ThemeFlow ThemeFlow object. -
destroy()
ThemeFlow.js, line 47 -
Disposes the resource. The property that references resource is set to null.