API / geotoolkit / map / features / templates / BaseTemplate / BaseTemplate
templates.BaseTemplate.BaseTemplate
Type Aliases
Type Aliases
Ƭ Options: Object
options
| Name | Type | Description |
|---|---|---|
geometrytoshape? | IGeometryToShape | feature geometry to carnac shape state adapter |
geometrytotext? | IGeometryToText | feature geometry to text shape state adapter |
shape? | Shape | carnac shape to visualize a feature instance |
shapecallback? | ShapeCallback | callback to modify template's shape parameter(s) dynamically (see example below) |
textshape? | Text | text shape to visualize a feature annotations |
textsizeinfo? | TextSizeInfo | options for dynamically changing the annotation size basing on some attribute value |
textstrategy? | IGetAnnotation | strategy for getting annotation expression (overrides layer strategy if set) |
Ƭ OptionsOut: Object
| Name | Type | Description |
|---|---|---|
geometrytoshape? | IGeometryToShape | feature geometry to carnac shape state adapter |
geometrytotext? | IGeometryToText | feature geometry to text shape state adapter |
shape | Shape | carnac shape to visualize a feature instance |
textshape | Text | text shape to visualize a feature annotations |
Ƭ ShapeCallback: (feature: AbstractFeature, shape: Shape, context?: RenderingContext) => void
▸ (feature, shape, context?): void
| Name | Type |
|---|---|
feature | AbstractFeature |
shape | Shape |
Optional context | RenderingContext |
void
Ƭ TextSizeInfo: Object
| Name | Type | Description |
|---|---|---|
field | string | feature attribute field name that specifies the annotation size |
maxdatavalue | number | attribute value maximum limit |
maxsize | number | annotation size (in px) for maxDataValue attribute. The size is calculated dynamically from the attribute value using linear interpolation between minSize and maxSize values. |
mindatavalue | number | attribute value minimum limit |
minsize | number | annotation size (in px) for minDataValue attribute. The size is calculated dynamically from the attribute value using linear interpolation between minSize and maxSize values. |