[API](/solutions/geotoolkit/geotoolkit_js/apis/readme) / [geotoolkit](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit) / [schematics](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.schematics) / [labeling](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.schematics#labeling) / [LabelData](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.schematics#labeldata) / LabelData

# Class: LabelData

[labeling](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.schematics#labeling).[LabelData](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.schematics#labeldata).LabelData

Label data structure to use by a LabelingStrategy.

## Table of contents

Constructors
- [new LabelData(params)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.schematics.labeling.labeldata.labeldata.md#new labeldata(params))


Accessors
| [anchorType](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.labeling.labeldata.labeldata#anchortype) | [node](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.labeling.labeldata.labeldata#node) | [nodeInfo](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.labeling.labeldata.labeldata#nodeinfo) |
|  --- | --- | --- |
| [xConnector](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.labeling.labeldata.labeldata#xconnector) | [xLabel](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.labeling.labeldata.labeldata#xlabel) | [yConnector](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.labeling.labeldata.labeldata#yconnector) |
| [yLabel](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.labeling.labeldata.labeldata#ylabel) |


Methods
| [getClassName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.labeling.labeldata.labeldata#getclassname) | [getProperties](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.labeling.labeldata.labeldata#getproperties) | [setProperties](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.labeling.labeldata.labeldata#setproperties) |
|  --- | --- | --- |
| [getClassName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.labeling.labeldata.labeldata#getclassname-1) |


Css Properties
| Name  | Type  | Description |
|  --- | --- | --- |
| `anchortype` | [`AnchorType`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.util#anchortype#anchortype) | Anchor type |
| `node` | [`ComponentNode`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.scene-2.componentnode.componentnode#css-props) | Component node to label |
| `node-automodellimitsmode` | `boolean` | Auto model limits mode |
| `node-bounds` | [`Rect`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.util.rect.rect#css-props) | Define position of the group in the parent |
| `node-bounds-height` | `number` | Height |
| `node-bounds-readonly` | `boolean` | Readonly |
| `node-bounds-width` | `number` | Width |
| `node-bounds-x` | `number` | Left |
| `node-bounds-y` | `number` | Top |
| `node-clipping` | `boolean` | Enable clipping, this does not consider the clipstyle, it is related to bounds-clipping |
| `node-clipstyle` | [`ClipStyle`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.attributes.clipstyle.clipstyle#css-props) | Clipping style |
| `node-clipstyle-evenodd` | `boolean` | True if evenodd mode is on (&#x27;nonzero&#x27; mode otherwise) |
| `node-clipstyle-geometry` | [`GraphicsPath`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.renderer.graphicspath.graphicspath#css-props) | Clipping geometry |
| `node-clipstyle-geometry-bounds` | [`Rect`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.util.rect.rect#css-props) | Bounds |
| `node-clipstyle` | [`GraphicsPath`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.renderer.graphicspath.graphicspath#css-props) | Clipping style |
| `node-contentorientation` | [`Orientation`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.util#orientation#orientation) | Content orientation |
| `node-cssclass` | `string` | The css class name of this node |
| `node-csscursor` | `string` | CSS cursor associated with node |
| `node-cssstyle` | `string` | CSS style to be applied to inserted elements |
| `node-description` | `string` | Element description |
| `node-fillstyle` | `string` | Fill style |
| `node-fillstyle` | [`FillStyle`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.attributes.fillstyle.fillstyle#css-props) | Fill style |
| `node-fillstyle-color` | `string` | Color in CSS form |
| `node-fillstyle-evenoddmode` | `boolean` | Even-odd fill mode |
| `node-fillstyle-fillpattern` | [`Pattern`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.attributes.pattern.pattern#css-props) | Pattern |
| `node-fillstyle-fillpattern-containername` | `string` | An optional container name, which creates an image pattern. This
parameter is used for serialization if you want to save are reference to pattern instead of the pattern itself |
| `node-fillstyle-fillpattern-patternname` | `string` | Name of this pattern for indexing |
| `node-fillstyle-fillpattern-scalable` | `boolean` | Flag that sets scalability of the pattern
coordinates, or relative to the shape it is filling (It is not supported) |
| `node-fillstyle-foreground` | `string` | Foreground color |
| `node-fillstyle-pattern` | [`Pattern`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.attributes.pattern.pattern#css-props) | Pattern |
| `node-horizontalflip` | `boolean` | Horizontal axis goes from right to left |
| `node-id` | `string | number` | Id of the node, its a unique identifier |
| `node-infinity` | `boolean` | Mode to render outside the model limits |
| `node-layoutstyle` | [`LayoutStyle`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.layout.layoutstyle.layoutstyle#css-props) | Layout style to be used for parent layout |
| `node-layoutstyle-constraint` | [`SizeConstraint`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.layout#sizeconstraint#sizeconstraint) | Layout constrains |
| `node-layoutstyle-flexgrow` | `number` | Number specifying how much the item will grow relative to the rest of the items inside the same container |
| `node-layoutstyle-flexshrink` | `number` | Number specifying how much the item will shrink relative to the rest of the items inside the same container |
| `node-layoutstyle-float` | `string` | Float position |
| `node-layoutstyle-position` | `string` | Layout position |
| `node-layoutstyle-size` | `number | string` | Layout size |
| `node-linestyle` | `string` | Line style |
| `node-linestyle` | [`LineStyle`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.attributes.linestyle.linestyle#css-props) | Line style |
| `node-linestyle-color` | `string` | Color in CSS form |
| `node-linestyle-fill` | `string` | Optional fill style to be used to fill lines generated with this style |
| `node-linestyle-fill` | [`FillStyle`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.attributes.fillstyle.fillstyle#css-props) | Optional fill style to be used to fill lines generated with this style |
| `node-linestyle-linecap` | [`CapStyle`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.attributes.linestyle#capstyle) | The line cap style |
| `node-linestyle-linedashoffset` | `number` | Line dash offset of dashed line |
| `node-linestyle-linejoin` | [`JoinStyle`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.attributes.linestyle#joinstyle) | The line join style |
| `node-linestyle-pixelsnapmode` | `boolean` | Pixel Snap Mode, default( |
| `node-linestyle-scalable` | `boolean` | True if width should depend on transformation |
| `node-linestyle-unit` | `string` | Optional unit for the width |
| `node-linestyle-width` | `number | string` | The line thickness |
| `node-localtransform` | [`Transformation`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.util.transformation.transformation#css-props) | Local transformation |
| `node-localtransform-dx` | `number` | X axis translation |
| `node-localtransform-dy` | `number` | Y axis translation |
| `node-localtransform-xx` | `number` | X scale |
| `node-localtransform-xy` | `number` | Xy skew |
| `node-localtransform-yx` | `number` | Yx skew |
| `node-localtransform-yy` | `number` | Y scale |
| `node-margins` | `number | string` | It has properties for specifying the margins for each side |
| `node-modellimits` | [`Rect`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.util.rect.rect#css-props) | Define inner model coordinates of the group |
| `node-name` | `string` | Name of the node. It is often used for debugging purposes or to simplify queries |
| `node-opacity` | `number` | Node opacity (from 0 to 1). If it is undefined or null it inherits property from the parent.
It changes globalAlpha on the rendering context |
| `node-opacityblendmode` | [`BlendMode`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.util#blendmode#blendmode) | Node opacity mode to blend it |
| `node-padding` | `number | string` | It has properties for specifying the padding for each side |
| `node-pickingchildren` | `boolean` | Enable picking children |
| `node-rectbounds` | [`Rect`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.util.rect.rect#css-props) | Geometry bounds |
| `node-scalescrollstrategy` | [`ScaleScrollStrategy`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.scene.scalescrollstrategy.scalescrollstrategy#css-props) | Scale scroll strategy |
| `node-scalescrollstrategy-enabled` | `boolean` | Enable flag |
| `node-selectable` | `boolean` | Selectable node, a boolean to determine if selection should consider this node |
| `node-tag` | `any` | Custom information associated with node. It is a user object which can be used by client code to store information or attach an application object to the shape |
| `node-transform` | `string` | Additional CSS transformation applied to node or &#x27;none&#x27; |
| `node-transform` | [`Transformation`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.util.transformation.transformation#css-props) | Additional CSS transformation applied to node or &#x27;none&#x27; |
| `node-verticalflip` | `boolean` | Vertical axis goes from bottom to top |
| `node-viewcache` | `boolean` | View cache to cache child nodes |
| `node-visible` | `boolean` | Visibility of the node, a boolean to determine if the node should be rendered or not |
| `node-z-index` | `number` | Define node z-index |
| `nodeindex` | `number` | The node virtual index |
| `nodeinfo` | `string` | The node information |
| `xlabel` | `number` | Label x-position |
| `ylabel` | `number` | Label y-position |


## Contents

Constructors
#### new LabelData(params)

• **new LabelData**(`params?`)

#### Parameters

| Name  | Type  |
|  --- | --- |
| `Optional` `params` | [`Options`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.schematics#labeldata#options) |


Accessors
#### anchorType

• `get` **anchorType**(): [`AnchorType`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.util#anchortype)

**`Deprecated`**

since 4.0. Use getProperties instead.

**`Name`**

module:geotoolkit/schematics/labeling/LabelData~LabelData#anchorType

#### Returns

[`AnchorType`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.util#anchortype)

• `set` **anchorType**(`value`): `void`

**`Deprecated`**

since 4.0. Use getProperties instead.

**`Name`**

module:geotoolkit/schematics/labeling/LabelData~LabelData#anchorType

#### Parameters

| Name  | Type  |
|  --- | --- |
| `value` | [`AnchorType`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.util#anchortype) |


#### Returns

`void`

#### node

• `get` **node**(): [`ComponentNode`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.scene-2.componentnode.componentnode)

**`Deprecated`**

since 4.0. Use getProperties instead.

**`Name`**

module:geotoolkit/schematics/labeling/LabelData~LabelData#node

#### Returns

[`ComponentNode`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.scene-2.componentnode.componentnode)

• `set` **node**(`value`): `void`

**`Deprecated`**

since 4.0. Use getProperties instead.

**`Name`**

module:geotoolkit/schematics/labeling/LabelData~LabelData#node

#### Parameters

| Name  | Type  |
|  --- | --- |
| `value` | [`ComponentNode`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.scene-2.componentnode.componentnode) |


#### Returns

`void`

#### nodeInfo

• `get` **nodeInfo**(): `string`

**`Deprecated`**

since 4.0. Use getProperties instead.

**`Name`**

module:geotoolkit/schematics/labeling/LabelData~LabelData#nodeInfo

#### Returns

`string`

• `set` **nodeInfo**(`value`): `void`

**`Deprecated`**

since 4.0. Use getProperties instead.

**`Name`**

module:geotoolkit/schematics/labeling/LabelData~LabelData#nodeInfo

#### Parameters

| Name  | Type  |
|  --- | --- |
| `value` | `string` |


#### Returns

`void`

#### xConnector

• `get` **xConnector**(): `any`[]

**`Deprecated`**

since 4.0. Use getProperties instead.

**`Name`**

module:geotoolkit/schematics/labeling/LabelData~LabelData#xConnector

#### Returns

`any`[]

• `set` **xConnector**(`value`): `void`

**`Deprecated`**

since 4.0. Use getProperties instead.

**`Name`**

module:geotoolkit/schematics/labeling/LabelData~LabelData#xConnector

#### Parameters

| Name  | Type  |
|  --- | --- |
| `value` | `any`[] |


#### Returns

`void`

#### xLabel

• `get` **xLabel**(): `number`

**`Deprecated`**

since 4.0. Use getProperties instead.

**`Name`**

module:geotoolkit/schematics/labeling/LabelData~LabelData#xLabel

#### Returns

`number`

• `set` **xLabel**(`value`): `void`

**`Deprecated`**

since 4.0. Use getProperties instead.

**`Name`**

module:geotoolkit/schematics/labeling/LabelData~LabelData#xLabel

#### Parameters

| Name  | Type  |
|  --- | --- |
| `value` | `number` |


#### Returns

`void`

#### yConnector

• `get` **yConnector**(): `any`[]

**`Deprecated`**

since 4.0. Use getProperties instead.

**`Name`**

module:geotoolkit/schematics/labeling/LabelData~LabelData#yConnector

#### Returns

`any`[]

• `set` **yConnector**(`value`): `void`

**`Deprecated`**

since 4.0. Use getProperties instead.

**`Name`**

module:geotoolkit/schematics/labeling/LabelData~LabelData#yConnector

#### Parameters

| Name  | Type  |
|  --- | --- |
| `value` | `any`[] |


#### Returns

`void`

#### yLabel

• `get` **yLabel**(): `number`

**`Deprecated`**

since 4.0. Use getProperties instead.

**`Name`**

module:geotoolkit/schematics/labeling/LabelData~LabelData#yLabel

#### Returns

`number`

• `set` **yLabel**(`value`): `void`

**`Deprecated`**

since 4.0. Use getProperties instead.

**`Name`**

module:geotoolkit/schematics/labeling/LabelData~LabelData#yLabel

#### Parameters

| Name  | Type  |
|  --- | --- |
| `value` | `number` |


#### Returns

`void`

Methods
#### getClassName

▸ **getClassName**(): `string`

#### Returns

`string`

#### getProperties

▸ **getProperties**(): `Required`<[`Options`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.schematics#labeldata#options)&gt;

#### Returns

`Required`<[`Options`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.schematics#labeldata#options)&gt;

options to initialize the strategy

#### setProperties

▸ **setProperties**(`properties?`): [`LabelData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.labeling.labeldata.labeldata)

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `Optional` `properties` | [`Options`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.schematics#labeldata#options) | options to initialize the strategy |


#### Returns

[`LabelData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.labeling.labeldata.labeldata)

#### getClassName

▸ `Static` **getClassName**(): `string`

#### Returns

`string`