mirror of
https://github.com/smittix/intercept.git
synced 2026-04-24 06:40:00 -07:00
Set cyan-tinted map tiles as default
This commit is contained in:
@@ -8,7 +8,7 @@ const Settings = {
|
||||
'offline.enabled': false,
|
||||
'offline.assets_source': 'cdn',
|
||||
'offline.fonts_source': 'cdn',
|
||||
'offline.tile_provider': 'cartodb_dark',
|
||||
'offline.tile_provider': 'cartodb_dark_cyan',
|
||||
'offline.tile_server_url': ''
|
||||
},
|
||||
|
||||
@@ -24,6 +24,14 @@ const Settings = {
|
||||
attribution: '© <a href="https://www.openstreetmap.org/copyright">OSM</a> © <a href="https://carto.com/">CARTO</a>',
|
||||
subdomains: 'abcd'
|
||||
},
|
||||
cartodb_dark_cyan: {
|
||||
url: 'https://cartodb-basemaps-{s}.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png',
|
||||
attribution: '© <a href="https://www.openstreetmap.org/copyright">OSM</a> © <a href="https://carto.com/">CARTO</a>',
|
||||
subdomains: 'abcd',
|
||||
options: {
|
||||
className: 'tile-layer-cyan'
|
||||
}
|
||||
},
|
||||
cartodb_light: {
|
||||
url: 'https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png',
|
||||
attribution: '© <a href="https://www.openstreetmap.org/copyright">OSM</a> © <a href="https://carto.com/">CARTO</a>',
|
||||
@@ -213,7 +221,8 @@ const Settings = {
|
||||
const config = this.getTileConfig();
|
||||
const options = {
|
||||
attribution: config.attribution,
|
||||
maxZoom: 19
|
||||
maxZoom: 19,
|
||||
...(config.options || {})
|
||||
};
|
||||
if (config.subdomains) {
|
||||
options.subdomains = config.subdomains;
|
||||
@@ -351,7 +360,8 @@ const Settings = {
|
||||
// Add new tile layer
|
||||
const options = {
|
||||
attribution: config.attribution,
|
||||
maxZoom: 19
|
||||
maxZoom: 19,
|
||||
...(config.options || {})
|
||||
};
|
||||
if (config.subdomains) {
|
||||
options.subdomains = config.subdomains;
|
||||
|
||||
Reference in New Issue
Block a user