fix line color handling, closes #21

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

No files matched your search

@@ -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 {