commit bebce087feba88bf40bc110fb510b8e8cba75882
parent 8b7bbbb38aad472e46c589634dc1931e4e331852
Author: Sergej Orlov <wladimirych@gmail.com>
Date: Thu, 24 Aug 2023 09:10:02 +0200
Use retina layer for OpenCycleMap and OSM Outdoors
Fixes #1228
Diffstat:
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/layers.js b/src/layers.js
@@ -477,7 +477,11 @@ class LayerGroupWithOptions extends L.LayerGroup {
title: 'OpenCycleMap',
description: '<a href="https://www.opencyclemap.org/docs/">(Info and key)</a>',
isDefault: false,
- layer: L.tileLayer('https://{s}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png',
+ layer: new RetinaTileLayer(
+ [
+ 'https://{s}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png',
+ 'https://{s}.tile.thunderforest.com/cycle/{z}/{x}/{y}@2x.png',
+ ],
{
code: 'Ocm',
isOverlay: false,
@@ -492,7 +496,11 @@ class LayerGroupWithOptions extends L.LayerGroup {
{
title: 'OSM Outdoors',
isDefault: false,
- layer: L.tileLayer('https://{s}.tile.thunderforest.com/outdoors/{z}/{x}/{y}.png',
+ layer: new RetinaTileLayer(
+ [
+ 'https://{s}.tile.thunderforest.com/outdoors/{z}/{x}/{y}.png',
+ 'https://{s}.tile.thunderforest.com/outdoors/{z}/{x}/{y}@2x.png',
+ ],
{
code: 'Oso',
isOverlay: false,