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:
Quincy Morgan
2020-06-17 12:40:36 -04:00
parent 25f403d23d
commit 1b6e44bc14
3 changed files with 19 additions and 2 deletions
+2
View File
@@ -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