Skip to content
import LineStyleMarker3D from "@arcgis/core/symbols/LineStyleMarker3D.js";
Inheritance:
LineStyleMarker3DAccessor
Since
ArcGIS Maps SDK for JavaScript 4.23

LineStyleMarker3D is used for rendering a simple marker graphic on a LineSymbol3DLayer.

Markers can enhance the cartographic information of a line by providing additional visual cues about the associated feature.

symbols-3d-line-markers

See also
Example
const symbol = {
type: "line-3d", // autocasts as new LineSymbol3D()
symbolLayers: [{
type: "line", // autocasts as new LineSymbol3DLayer()
marker: { // autocasts as new LineStyleMarker3D()
type: "style",
style: "x",
color: "blue",
placement: "begin"
})
}]
};

Constructors

Constructor

Constructor
Parameters
ParameterTypeDescriptionRequired
properties
See the properties table for a list of all the properties that may be passed into the constructor.
Example
const marker = new LineStyleMarker3D({
color: new Color("red"),
placement: "begin-end",
style: "cross"
})

Properties

Any properties can be set, retrieved or listened to. See the Watch for changes topic.
PropertyTypeClass
declaredClass
readonly inherited
type
readonly
"style"

color

autocast Property
Type
Color | null | undefined

The color of the marker. If not specified, the marker will match the color of the line.

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor

The name of the class. The declared class name is formatted as esri.folder.className.

placement

Property
Type
LineMarkerPlacement

Indicates where the marker is placed. Possible values are listed in the table below.

ValueDescription
beginSingle marker at the start of the line
endSingle marker at the end of the line
begin-endTwo markers, one at the start and one at the end of the line
Default value
"begin-end"

style

Property
Type
LineMarkerStyle

Style of the marker. Possible values are listed in the table below.

ValueExample
arrowlsm-arrow
circlelsm-circle
squarelsm-square
diamondlsm-diamond
crosslsm-cross
xlsm-x
Default value
"arrow"

type

readonly Property
Type
"style"

The type of marker applied to a line.

Methods

MethodSignatureClass
fromJSON
inherited static
fromJSON(json: any): any
clone
inherited
clone(): this
toJSON
inherited
toJSON(): any

fromJSON

inheritedstatic Method
Signature
fromJSON (json: any): any
Inherited from: JSONSupportMixin

Creates a new instance of this class and initializes it with values from a JSON object generated from an ArcGIS product. The object passed into the input json parameter often comes from a response to a query operation in the REST API or a toJSON() method from another ArcGIS product. See the Using fromJSON() topic in the Guide for details and examples of when and how to use this function.

Parameters
ParameterTypeDescriptionRequired
json
any

A JSON representation of the instance in the ArcGIS format. See the ArcGIS REST API documentation for examples of the structure of various input JSON objects.

Returns
any

Returns a new instance of this class.

clone

inherited Method
Signature
clone (): this
Inherited from: ClonableMixin

Creates a deep clone of this object. Any properties that store values by reference will be assigned copies of the referenced values on the cloned instance.

Returns
this

A deep clone of the class instance that invoked this method.

toJSON

inherited Method
Signature
toJSON (): any
Inherited from: JSONSupportMixin

Converts an instance of this class to its ArcGIS portal JSON representation. See the Using fromJSON() guide topic for more information.

Returns
any

The ArcGIS portal JSON representation of an instance of this class.