From c2c5fa51e1ff3e72c100def118708e04865cf1b4 Mon Sep 17 00:00:00 2001 From: Cees Voesenek Date: Tue, 10 Dec 2024 15:17:08 +0100 Subject: [PATCH] Fetch WMS with 4x downsampled resolution for animated vectors --- src/components/wms/AnimatedStreamlineRasterLayer.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/wms/AnimatedStreamlineRasterLayer.vue b/src/components/wms/AnimatedStreamlineRasterLayer.vue index 640132577..adc2324d0 100644 --- a/src/components/wms/AnimatedStreamlineRasterLayer.vue +++ b/src/components/wms/AnimatedStreamlineRasterLayer.vue @@ -101,7 +101,10 @@ addUpdateWatcher( function addLayer(): void { if (!props.layerOptions || !props.streamlineOptions) return - const options = mergeOptions(props.layerOptions, props.streamlineOptions) + const options: WMSStreamlineLayerOptions = { + ...mergeOptions(props.layerOptions, props.streamlineOptions), + downsampleFactorWMS: 4, + } // Create and initialise new streamline layer. layer = new WMSStreamlineLayer(layerId, options)