Skip to content
import StyleOrigin from "@arcgis/core/symbols/support/StyleOrigin.js";
Inheritance:
StyleOriginAccessor

The style origin.

Constructors

Constructor

Constructor
Parameters
ParameterTypeDescriptionRequired
properties
See the properties table for a list of all the properties that may be passed into the constructor.

Properties

Any properties can be set, retrieved or listened to. See the Watch for changes topic.

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor
Since
ArcGIS Maps SDK for JavaScript 4.7

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

name

Property
Type
string | null | undefined

Name of the symbol in the style referenced by styleName or styleUrl.

portal

autocast Property
Type
Portal | null | undefined

The portal of the style origin.

styleName

Property
Type
string | null | undefined

The well-known esri-provided style, such as EsriThematicShapesStyle.

styleUrl

Property
Type
string | null | undefined

A url to a style definition.

Methods

MethodSignatureClass
clone(): StyleOrigin

clone

Method
Signature
clone (): StyleOrigin

Creates a deep clone of the style origin.

Returns
StyleOrigin

A deep clone of the object that invoked this method.