# HG changeset patch # User Raimund Renkert # Date 1585836744 -7200 # Node ID e688e79a51e8136688186cf7b9ea90c5a31b49f1 # Parent c8d36d585f6fd810f7a2aaf0a1b9104af38d91eb Use ImageLayer instead of TileLayer for FairwayMarks Improves performance when using time slider. diff -r c8d36d585f6f -r e688e79a51e8 client/src/components/layers/layers.js --- a/client/src/components/layers/layers.js Thu Apr 02 16:11:09 2020 +0200 +++ b/client/src/components/layers/layers.js Thu Apr 02 16:12:24 2020 +0200 @@ -742,11 +742,11 @@ source }); })(), - new TileLayer({ + new ImageLayer({ id: "FAIRWAYMARKS", label: "Fairway marks", visible: true, - source: new TileWMS({ + source: new ImageSource({ preload: 0, projection: "EPSG:3857", url: window.location.origin + "/api/internal/wms", @@ -756,7 +756,7 @@ TILED: true, TIME: store.state.application.refreshLayersTime.toISOString() }, - tileLoadFunction: function(tile, src) { + imageLoadFunction: function(tile, src) { HTTP.get(src, { headers: { "X-Gemma-Auth": localStorage.getItem("token")