LineMapLayer
LineMapLayer renders a line or area according to the information in latitude and longitude. Layer for HarmoVisLayers.
Examples
Properties
Inherits from Base Layer properties.
Properties | PropTypes | Default | Description |
id | string option | 'LineMapLayer' | Layer id |
data | Array required | -- | state |
lineOpacity | Number option | 1.0 | Line opacity |
polygonOpacity | Number option | 0.5 | Polygon Opacity |
getWidth | Function option | x => x.strokeWidth || 1 | Line Width specification accessor. |
getColor | Function option | x => x.color || WHITE | object color specification accessor. |
getSourcePosition | Function option | x => x.sourcePosition | Line source position specification accessor. |
getTargetPosition | Function option | x => x.targetPosition | Line target position specification accessor. |
getPath | Function option | x => x.path || [] | Connecting line position specification accessor. |
getPolygon | Function option | x => x.polygon || [] | 3-D object position specification accessor. |
getCoordinates | Function option | x => x.coordinates || [] | area position specification accessor. |
getElevation | Function option | x => x.elevation || 3 | 3-D object height specification accessor. |
getDashArray | Function option | x => x.dash || [0,0] | Dotted line pattern specification accessor. |
The json format of the line data file
Reserved key name of simulation data file
Display example
Last updated