Skip to content
Snippets Groups Projects
Commit c69eab21 authored by Miłosz Grocholewski's avatar Miłosz Grocholewski
Browse files

fix(vector-map): using state abbreviation instead of name if exists

parent 465f16fb
No related branches found
No related tags found
1 merge request!272fix(vector-map): using state abbreviation instead of name if exists
Pipeline #96792 passed
...@@ -163,14 +163,14 @@ export default class MapElement extends BaseMultiPolygon { ...@@ -163,14 +163,14 @@ export default class MapElement extends BaseMultiPolygon {
modificationStyle.setText( modificationStyle.setText(
new Text({ new Text({
text: modificationText, text: modificationText,
font: `${modification.fontSize}px Arial`, font: `${modification.fontSize}pt Arial`,
textAlign: 'center', textAlign: 'center',
textBaseline: 'middle', textBaseline: 'middle',
fill: getFill({ color: '#000' }), fill: getFill({ color: '#000' }),
overflow: true, overflow: true,
}), }),
); );
this.polygonsTexts.push(modification.name); this.polygonsTexts.push(modificationText);
} }
this.styles.push(modificationStyle); this.styles.push(modificationStyle);
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment