Add support for retina tiles

Created on 8 March 2016, about 9 years ago
Updated 5 May 2025, 12 days ago

Mapbox does support retina tiles by adding a @2x in the URL, for both v3 and v4 APIs. This has to be detected and enabled via JavaScript.

Leaflet already has built-in support to detect retina in the browser. E.g. (L.Browser.retina ? '@2x' : '')

Reference for Mapbox tiles:

✨ Feature request
Status

Closed: outdated

Version

1.5

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany francoisb

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

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