[API](/solutions/geotoolkit/geotoolkit_js/apis/readme) / [geotoolkit](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit) / [map](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.map) / [features](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.map#features) / [adapters](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.map#adapters) / [Point](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.map#point) / Point

# Class: Point

[adapters](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.map#adapters).[Point](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.map#point).Point

Applies feature geometry's 'x' and 'y' (in Map C.S.) to [AnchoredShape](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.scene.shapes.anchoredshape.anchoredshape) as an anchor

## Implements

- [`IGeometryToShape`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.features.adapters.igeometrytoshape.igeometrytoshape)
- [`IGeometryToText`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.features.adapters.igeometrytotext.igeometrytotext)


## Table of contents

Constructors
- [new Point(options)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.map.features.adapters.point.point.md#new point(options))


Methods
| [apply](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.features.adapters.point.point#apply) | [getClassName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.features.adapters.point.point#getclassname) | [setOptions](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.features.adapters.point.point#setoptions) |
|  --- | --- | --- |
| [getClassName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.features.adapters.point.point#getclassname-1) |


## Contents

Constructors
#### new Point(options)

• **new Point**(`options?`)

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `Optional` `options` | [`Offset`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.map#point#offset) | options |


Methods
#### apply

▸ **apply**(`geometry`, `shape`, `context?`): `void`

Applies feature geometry's 'x' and 'y' to [AnchoredShape](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.scene.shapes.anchoredshape.anchoredshape) as an anchor

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `geometry` | [`Geometry`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.map#point#geometry) | feature geometry |
| `shape` | [`AnchoredShape`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.scene.shapes.anchoredshape.anchoredshape) | shape to set the anchor on |
| `Optional` `context` | [`Transformation`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.util.transformation.transformation) | [`RenderingContext`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.renderer.renderingcontext.renderingcontext) | rendering context or its transformation |


#### Returns

`void`

#### Implementation of

[IGeometryToText](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.features.adapters.igeometrytotext.igeometrytotext).[apply](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.features.adapters.igeometrytotext.igeometrytotext#apply)

#### getClassName

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

#### Returns

`string`

#### setOptions

▸ **setOptions**(`options?`): [`Point`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.features.adapters.point.point)

Sets feature_geometry-to-text_anchor_position offset options. For the new options to take effect on layer, the layer has to be invalidated.

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `Optional` `options` | [`Offset`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.map#point#offset) | options |


#### Returns

[`Point`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.features.adapters.point.point)

this

#### getClassName

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

#### Returns

`string`