From c69eab214ffec16923dbe8c49abb47c02c005d98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C5=82osz=20Grocholewski?= <m.grocholewski@atcomp.pl> Date: Thu, 24 Oct 2024 08:22:19 +0200 Subject: [PATCH] fix(vector-map): using state abbreviation instead of name if exists --- .../MapViewerVector/utils/shapes/elements/MapElement.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 025ec2d8..9812f899 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); }); -- GitLab