# Class DxfToGeoJsonTextMapper

The DxfToGeoJsonTextMapper class processes DXF text-related entities (TEXT, MTEXT, ATTDEF) and converts them into corresponding GeoJSON or graphics layers. It manages text content, rotation, positioning, and labeling details.

#####
Index

### Constructors

constructor

### Properties

dxfContext

### Methods

AnnotationToGeoJSON
getMaximumFontSize
processAttDef
processMText
processText

##
Constructors

### constructor

- new DxfToGeoJsonTextMapper(dxfContext): DxfToGeoJsonTextMapper

- Initializes a new instance of the DxfToGeoJsonTextMapper.

  #### Parameters

  - dxfContext: IDxfJsonComponentContext

    The shared DXF conversion context.

  #### Returns DxfToGeoJsonTextMapper

##
Properties

### dxfContext

dxfContext: IDxfJsonComponentContext

Shared DXF context containing references to renderer objects, spatial references, and feature collections.

##
Methods

### AnnotationToGeoJSON

- AnnotationToGeoJSON(): void

- Converts all processed text features (TEXT, MTEXT, ATTDEF) into a GraphicsLayer for map annotation visualization.

  #### Returns void

### getMaximumFontSize

- getMaximumFontSize(graphics): number

- #### Parameters

  - graphics: Graphic[]

  #### Returns number

### processAttDef

- processAttDef(entity): Promise<void>

- Processes a DXF ATTDEF (attribute definition) entity and converts it into a text-based GeoJSON point feature with block, tag, and rotation properties.

  #### Parameters

  - entity: IAttDefEntity

    The DXF ATTDEF entity to process.

  #### Returns Promise<void>

### processMText

- processMText(entity): Promise<void>

- Processes a DXF MTEXT entity (multi-line text) and converts it into a cleaned and formatted GeoJSON point feature.

  #### Parameters

  - entity: IMTextEntity

    The DXF MTEXT entity to process.

  #### Returns Promise<void>

### processText

- processText(entity): Promise<void>

- Processes a DXF TEXT entity and converts it into a GeoJSON point feature with text attributes such as rotation and height.

  #### Parameters

  - entity: ITextEntityExtended

    The DXF TEXT entity to process.

  #### Returns Promise<void>