Make Text options typesafe

This commit is contained in:
Maximilian Krög
2022-07-29 21:18:00 +02:00
parent 9f6ccdfb2d
commit a076899470
5 changed files with 34 additions and 35 deletions
+1
View File
@@ -937,6 +937,7 @@ class KML extends XMLFeature {
*/
function createNameStyleFunction(foundStyle, name) {
const textOffset = [0, 0];
/** @type {CanvasTextAlign} */
let textAlign = 'start';
const imageStyle = foundStyle.getImage();
if (imageStyle) {