mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-14 13:18:15 +02:00
Support {@2x} and {r} as parameters for high-res custom TMS tiles (close #7712)
Use retina tiles for the locator overlay on supported displays
This commit is contained in:
@@ -123,6 +123,8 @@ sources.concat(keep).forEach(source => {
|
||||
im.tileSize = 512;
|
||||
} else if (source.id === 'mtbmap-no') {
|
||||
im.tileSize = 512;
|
||||
} else if (source.id === 'mapbox_locator_overlay') {
|
||||
im.template = im.template.replace('{y}', '{y}{@2x}');
|
||||
}
|
||||
|
||||
// Some WMS sources are supported, check projection
|
||||
|
||||
Reference in New Issue
Block a user