diff --git a/src/components/Map/MapViewer/MapViewerVector/utils/shapes/elements/MapElement.ts b/src/components/Map/MapViewer/MapViewerVector/utils/shapes/elements/MapElement.ts index 025ec2d83a1d2068b35dcb627b69c832c45290e6..9812f899054b7cb17f075db28b10290f0bf797d6 100644 --- a/src/components/Map/MapViewer/MapViewerVector/utils/shapes/elements/MapElement.ts +++ b/src/components/Map/MapViewer/MapViewerVector/utils/shapes/elements/MapElement.ts @@ -163,14 +163,14 @@ export default class MapElement extends BaseMultiPolygon { modificationStyle.setText( new Text({ text: modificationText, - font: `${modification.fontSize}px Arial`, + font: `${modification.fontSize}pt Arial`, textAlign: 'center', textBaseline: 'middle', fill: getFill({ color: '#000' }), overflow: true, }), ); - this.polygonsTexts.push(modification.name); + this.polygonsTexts.push(modificationText); } this.styles.push(modificationStyle); });