Support for automatic retina tiles

Created on 28 November 2023, about 1 year ago
Updated 2 January 2024, 12 months ago

Problem/Motivation

Leaflet supports autodetection of retina Tiles, by simply providing an extra {r}variable in the url template:
https://{s}.somedomain.com/blabla/{z}/{x}/{y}{r}.png
https://leafletjs.com/reference.html#tilelayer

This is enough to get the supported tileservers to retrieve the retina/high-resolution tiles, like the ThundeForest ones (https://www.thunderforest.com/tutorials/leaflet/#retina-tiles).

Steps to reproduce

Proposed resolution

Adding the extra {r} to the generic template URL.
Changing the the detectRetina parameter doesn't seem required.
This works well for Thunderforest and it doesn't affect the non-supported tile providers (although some are currently broken due to outdated URLs)

Remaining tasks

TBC

User interface changes

NA

API changes

NA

Data model changes

NA

📌 Task
Status

Fixed

Version

2.1

Component

Code

Created by

🇦🇺Australia elgandoz Canberra

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024