commit 0ff218eac60f4d383f4634aef525331173fe1b97
parent 028cbf18c154bb83ee6a668d600a4a20ccec987b
Author: Sergey Orlov <wladimirych@gmail.com>
Date: Wed, 26 May 2021 21:00:10 +0200
add opacity to strava heatmap layers to improve base layer visibility
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/layers.js b/src/layers.js
@@ -702,6 +702,7 @@ class LayerGroupWithOptions extends L.LayerGroup {
shortName: 'strava_all',
retinaOptionsOverrides: [{maxNativeZoom: 16}, {maxNativeZoom: 15}],
attribution: '<a href="https://www.strava.com/heatmap">Strava Global Heatmap</a>',
+ opacity: 0.75,
}
)
},
@@ -729,6 +730,7 @@ class LayerGroupWithOptions extends L.LayerGroup {
shortName: 'strava_run',
retinaOptionsOverrides: [{maxNativeZoom: 16}, {maxNativeZoom: 15}],
attribution: '<a href="https://www.strava.com/heatmap">Strava Global Heatmap</a>',
+ opacity: 0.75,
}
)
},
@@ -756,6 +758,7 @@ class LayerGroupWithOptions extends L.LayerGroup {
shortName: 'strava_ride',
retinaOptionsOverrides: [{maxNativeZoom: 16}, {maxNativeZoom: 15}],
attribution: '<a href="https://www.strava.com/heatmap">Strava Global Heatmap</a>',
+ opacity: 0.75,
}
)
},
@@ -783,6 +786,7 @@ class LayerGroupWithOptions extends L.LayerGroup {
shortName: 'strava_winter',
retinaOptionsOverrides: [{maxNativeZoom: 16}, {maxNativeZoom: 15}],
attribution: '<a href="https://www.strava.com/heatmap">Strava Global Heatmap</a>',
+ opacity: 0.75,
}
)
},