<< Click to Display Table of Contents >>

 

new sg.renderers.Renderer()

 

 

Description

Create a renderer.

 

Position

Randerer.js

 

 

Properties

 

Properties

Type

Description

colorInfo

Object

minValue: minimum value

maxValue: maximum value

field: attribute field

colors: color array

Name

Type

Description

minValue

Number

minimum value

maxValue

Number

maximum value

field

String

The field name which you want to use for ScaleDependentRenderer

colors

Array.<sg.Color>

An array of objects defines the color

defaultSymbol

sg.symbols.Symbol

default symbol

opacityInfo

Object

symbol transparency

opacityValues:

Name

Type

Description

minValue

Number

minimum value

maxValue

Number

maximum value

field

String

The field name which you want to use for ScaleDependentRenderer

opacityValues

Array.<Number>

transparency array

rotationInfo

Object

rotation settings

Name

Type

Description

type

String

geographic (rotate clockwise from North) and arithmetic (rotate counterclockwise from East)

field

String

The field name which you want to use for ScaleDependentRenderer

sizeInfo

Object

symbol size

Name

Type

Description

minSize

Number

minimum value

maxSize

Number

maximum value

field

String

The field name which you want to use for ScaleDependentRenderer

 

 

Methods

 

Methods

Type

Description

getColor(graphic)

graphic:sg.Graphic

Returns:sg.Color

Return symbol color

Name

Type

Description

graphic

sg.Graphic

Graphic to get color from.

Returns:

Type

Description

sg.Color

The color of the graphic

getOpacity(graphic)

graphic:sg.Graphic

Returns:Number

Return symbol transparency

Name

Type

Description

graphic

sg.Graphic

Graphic to get opacity from.

Returns:

Type

Description

Number

The opacity of the graphic

getRotationAngle(graphic)

graphic:sg.Graphic

Returns:Number

Return symbol rotation angle

Name

Type

Description

graphic

sg.Graphic

Graphic to get the angle of rotation from.

Returns:

Type

Description

Number

The angle of rotation for the graphic

getSize(graphic)

graphic:sg.Graphic

Returns:Number

Return symbol size

Name

Type

Description

graphic

sg.Graphic

Graphic to get the size from

Returns:

Type

Description

Number

The size of the graphic

setColorInfo(info)

Object

Define symbol color

Name

Type

Description

info

Object

An info object that defines the color.

setOpacityInfo(info)

Object

Define symbol transparency

Name

Type

Description

info

Object

An info object that defines the opacity.

setRotationInfo(info)

Object

Define symbol rotation angle

Name

Type

Description

info

Object

An info object that defines the angle of the rotation.

setSizeInfo(info)

Object

Define symbol size

Name

Type

Description

info

Object

An info object that defines the size.

 

 

 


©2015 Supergeo Technologies Inc.