# HG changeset patch # User Sebastien Jodogne # Date 1788770379 -7200 # Node ID 395d5ccd9ed1fb213e87cb81b8c16b0527b582c7 # Parent 5cd0db97602b4ba3346147028e431bcbfbdfc762 fix rendering of imported arrows diff -r 5cd0db97602b -r 395d5ccd9ed1 ViewerPlugin/WebApplication/viewer.js --- a/ViewerPlugin/WebApplication/viewer.js Fri Sep 04 18:13:14 2026 +0200 +++ b/ViewerPlugin/WebApplication/viewer.js Mon Sep 07 10:39:39 2026 +0200 @@ -925,12 +925,17 @@ this.drawImportedSource = new ol.source.Vector(); this.drawImportedLayer = new ol.layer.Vector({ source: this.drawImportedSource, - style: function(feature) { + style: function(feature, resolution) { var entry = GetImportedLayerById(feature.get('layer-id')); if (!entry || !entry.visible) { return null; } - return CreateLayerStyle(entry.color); + + if (feature.get('type') === 'arrow') { + return CreateArrowStyle(feature, resolution, entry.color); + } else { + return CreateLayerStyle(entry.color); + } } }); this.map.addLayer(this.drawImportedLayer);