spikeUtils

ESM: import * as spikeUtils from "@arcgis/core/smartMapping/renderers/support/spikeUtils.js";
CDN: const spikeUtils = await $arcgis.import("@arcgis/core/smartMapping/renderers/support/spikeUtils.js");
Object: @arcgis/core/smartMapping/renderers/support/spikeUtils
Since: ArcGIS Maps SDK for JavaScript 4.33

This module provides utility functions for creating and updating spike symbols for size renderers generated with a spike theme.

Method Overview

Name Return Type Summary Object

Creates a spike symbol for use in size renderers generated with a spike theme.

spikeUtils

Updates the properties of a spike symbol.

spikeUtils

Method Details

createSpikeSymbol

Method
createSpikeSymbol(symbolInfo){CIMSymbol}

Creates a spike symbol for use in size renderers generated with a spike theme.

Parameters
Specification
symbolInfo Object

An object containing properties of the symbol to create.

Specification
color Color

The color of the symbol.

strokeColor Color
optional

The color of the symbol stroke.

baseWidth Number
optional

The base width of the symbol in points.

strokeWidth Number
optional

The stroke width of the symbol in points.

defaultHeight Number
optional

The default height of the symbol.

primitiveOverrides PrimitiveOverride[]
optional

The primitive overrides for the symbol.

symbolStyle String
optional

The style of the symbol.

Possible Values:"triangle-solid-fill-open-outline"|"triangle-solid-fill-closed-outline"|"triangle-solid-fill-open"|"triangle-solid-fill-closed"|"triangle-gradient-fill-open-outline"|"triangle-gradient-fill-closed-outline"|"triangle-gradient-fill-open"|"triangle-gradient-fill-closed"|"triangle-open-outline"|"triangle-closed-outline"

Returns
Type Description
CIMSymbol Returns a spike symbol.

updateSpikeSymbol

Method
updateSpikeSymbol(symbol, symbolInfo){CIMSymbol}

Updates the properties of a spike symbol. This is typically used to update the color and size of the symbol.

Parameters
Specification
symbol CIMSymbol

The spike symbol to update.

symbolInfo Object

An object containing properties of the symbol to update.

Specification
color Color

The color of the symbol.

strokeColor Color
optional

The color of the symbol stroke.

baseWidth Number
optional

The base width of the symbol in points.

strokeWidth Number
optional

The stroke width of the symbol in points.

defaultHeight Number
optional

The default height of the symbol.

primitiveOverrides PrimitiveOverride[]
optional

The primitive overrides for the symbol.

symbolStyle String
optional

The style of the symbol.

Possible Values:"triangle-solid-fill-open-outline"|"triangle-solid-fill-closed-outline"|"triangle-solid-fill-open"|"triangle-solid-fill-closed"|"triangle-gradient-fill-open-outline"|"triangle-gradient-fill-closed-outline"|"triangle-gradient-fill-open"|"triangle-gradient-fill-closed"|"triangle-open-outline"|"triangle-closed-outline"

Returns
Type Description
CIMSymbol Returns the updated spike symbol.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.