fix line color handling, closes #21

This commit is contained in:
vcoppe
2024-07-22 18:27:53 +02:00
parent ba091d3d9d
commit b3a06ea6ae
3 changed files with 33 additions and 6 deletions

View File

@@ -98,9 +98,9 @@ export class GPXLayer {
return;
}
if (file._data.style && file._data.style.color && this.layerColor !== file._data.style.color) {
if (file._data.style && file._data.style.color && this.layerColor !== `#${file._data.style.color}`) {
decrementColor(this.layerColor);
this.layerColor = file._data.style.color;
this.layerColor = `#${file._data.style.color}`;
}
try {