Last updated

API / geotoolkit / map / features / templates / BaseTemplate / BaseTemplate

Namespace: BaseTemplate

templates.BaseTemplate.BaseTemplate

Table of contents

Type Aliases

Contents

Type Aliases

Options

Ƭ Options: Object

options

Type declaration

NameTypeDescription
geometrytoshape?IGeometryToShapefeature geometry to carnac shape state adapter
geometrytotext?IGeometryToTextfeature geometry to text shape state adapter
shape?Shapecarnac shape to visualize a feature instance
shapecallback?ShapeCallbackcallback to modify template's shape parameter(s) dynamically (see example below)
textshape?Texttext shape to visualize a feature annotations
textsizeinfo?TextSizeInfooptions for dynamically changing the annotation size basing on some attribute value
textstrategy?IGetAnnotationstrategy for getting annotation expression (overrides layer strategy if set)

OptionsOut

Ƭ OptionsOut: Object

Type declaration

NameTypeDescription
geometrytoshape?IGeometryToShapefeature geometry to carnac shape state adapter
geometrytotext?IGeometryToTextfeature geometry to text shape state adapter
shapeShapecarnac shape to visualize a feature instance
textshapeTexttext shape to visualize a feature annotations

ShapeCallback

Ƭ ShapeCallback: (feature: AbstractFeature, shape: Shape, context?: RenderingContext) => void

Type declaration

▸ (feature, shape, context?): void

Parameters
Name Type
featureAbstractFeature
shapeShape
Optional contextRenderingContext
Returns

void


TextSizeInfo

Ƭ TextSizeInfo: Object

Type declaration

NameTypeDescription
fieldstringfeature attribute field name that specifies the annotation size
maxdatavaluenumberattribute value maximum limit
maxsizenumberannotation size (in px) for maxDataValue attribute. The size is calculated dynamically from the attribute value using linear interpolation between minSize and maxSize values.
mindatavaluenumberattribute value minimum limit
minsizenumberannotation size (in px) for minDataValue attribute. The size is calculated dynamically from the attribute value using linear interpolation between minSize and maxSize values.