Last updated

API / geotoolkit / map / util / ArcGISTypes

Module: ArcGISTypes

Table of contents

Type Aliases

Contents

Type Aliases

CalculatedExpression

Ƭ CalculatedExpression: (attr: Attributes) => number

Type declaration

▸ (attr): number

CalculatedExpression is function type to calculate value based on feature attributes

Parameters
Name Type
attrAttributes
Returns

number


ClassBreaksRenderer

Ƭ ClassBreaksRenderer: Object

ClassBreaksRenderer defines the symbol of each feature in a Layer based on the value of a numeric attribute. Symbols are assigned based on classes or ranges of data. Each feature is assigned a symbol based on the class break in which the value of the attribute falls.

Type declaration

NameType
attributeField?string
calcExpression?CalculatedExpression
classBreakInfos?{ classMaxValue?: number ; classMinValue?: number ; label?: string ; symbol?: Symbol }[]
defaultLabel?string
defaultSymbol?Symbol
field?string
label?string
minValue?number
rotationExpression?string
rotationType?"arithmetic" | "geographic"
type?"classBreaks"
valueExpression?string

Font

Ƭ Font: Object

The font used to display 2D text symbols. This class allows the developer to set the font's family, size, style, and weight properties.

Type declaration

NameType
family?string
size?number
style?string
weight?number

LayerType

Ƭ LayerType: Object

Layers contains geographic data which are used to make conforming maps.

Type declaration

NameType
drawingInfo?{ renderer?: Renderer }
drawingInfo.renderer?Renderer
geometryType?string

Outline

Ƭ Outline: Object

Outline is basic type for linestyle

Type declaration

NameType
color?string | number[]
style?"esriSLSDash" | "esriSLSDashDot" | "esriSLSDashDotDot" | "esriSLSDot" | "esriSLSSolid"
width?number

Pattern

Ƭ Pattern: "esriSFSSolid" | "esriSFSNull" | "esriSFSHollow" | "esriSFSHorizontal" | "esriSFSVertical" | "esriSFSForwardDiagonal" | "esriSFSBackwardDiagonal" | "esriSFSCross" | "esriSFSDiagonalCross"

Simple fill symbol pattern type


Renderer

Ƭ Renderer: SimpleRenderer | UniqueValueRenderer | ClassBreaksRenderer | VectorFieldRenderer

Renderers define how to visually represent each feature.


SimpleRenderer

Ƭ SimpleRenderer: Object

SimpleRenderer renders all features in a Layer with one Symbol

Type declaration

NameType
label?string
rotationExpression?string
rotationType?"arithmetic" | "geographic"
symbol?Symbol
type?"simple"

Symbol

Ƭ Symbol: Outline & { contentType?: string ; height?: number ; imageData?: string ; outline?: Outline ; size?: number ; style?: "esriSMSSquare" | "esriSMSCircle" | "esriSMSCross" | "esriSMSDiamond" | "esriSMSTriangle" | "esriSMSX" | Pattern ; type: "esriSMS" | "esriPMS" | "esriSFS" | "esriPFS" | "esriSLS" ; url?: string ; xoffset?: number ; yoffset?: number }

Symbol is the base class for all symbols. Symbols represent point, line, polygon, and mesh geometries.


TextSymbol

Ƭ TextSymbol: Object

Text symbols are used to define the graphic for displaying labels on a FeatureLayer, CSVLayer, Sublayer, and StreamLayer in a 2D map.

Type declaration

NameType
backgroundColor?string | number[]
borderLineColor?string | number[]
borderLineSize?number
color?string | number[]
font?Font
haloColor?string | number[]
haloSize?number
labelPlacement?string

UniqueValueRenderer

Ƭ UniqueValueRenderer: VisualVariable & { calcExpression?: CalculatedExpression ; defaultLabel?: string ; defaultSymbol?: Symbol ; field1?: string ; field2?: string ; field3?: string ; fieldDelimiter?: string ; type?: "uniqueValue" ; uniqueValueInfos?: { label?: string ; symbol?: Symbol ; value?: string }[] ; valueExpression?: string ; visualVariables?: VisualVariable[] }

UniqueValueRenderer allows user to symbolize features in a Layer based on one or more categorical attributes. This is typically done by using unique colors, fill styles, or images to represent features with equal values in a string field.


VectorFieldRenderer

Ƭ VectorFieldRenderer: Object

VectorFieldRenderer allows user to display your raster data with vector symbols. This renderer is often used for visualizing flow direction and magnitude information in meteorology and oceanography raster data.

Type declaration

NameType
attributeField?string
style?string
type?"vectorField"

VisualVariable

Ƭ VisualVariable: Object

Visual variables are objects that allow you to override one or more properties of a renderer's symbols based on a numeric data value returned from a field or an expression.

Type declaration

NameType
field?string
maxDataValue?number
maxSize?number
minDataValue?number
minSize?number
normalizationField?string
rotationExpression?string
rotationType?"arithmetic" | "geographic"
stops?{ color?: string ; size?: number ; transparency?: number ; value: number }[]
type?string
valueExpression?string