File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -5,18 +5,18 @@ import WorldmapCtrl from './worldmap_ctrl';
5
5
import { ColorModes } from './model' ;
6
6
7
7
const tileServers = {
8
- 'CartoDB Positron' : {
9
- url : 'https://cartodb-basemaps- {s}.global.ssl.fastly.net /light_all/{z}/{x}/{y}.png' ,
8
+ 'CARTO Positron' : {
9
+ url : 'https://{s}.basemaps.cartocdn.com /light_all/{z}/{x}/{y}.png' ,
10
10
attribution :
11
- '© <a href="http ://www.openstreetmap.org/copyright">OpenStreetMap</a> ' +
12
- '© <a href="http ://cartodb .com/attributions">CartoDB </a>' ,
11
+ '© <a href="https ://www.openstreetmap.org/copyright" target="_blank" rel="noopener ">OpenStreetMap</a> ' +
12
+ '© <a href="https ://carto .com/about-carto/" target="_blank" rel="noopener">CARTO </a>' ,
13
13
subdomains : 'abcd' ,
14
14
} ,
15
- 'CartoDB Dark' : {
16
- url : 'https://cartodb-basemaps- {s}.global.ssl.fastly.net /dark_all/{z}/{x}/{y}.png' ,
15
+ 'CARTO Dark' : {
16
+ url : 'https://{s}.basemaps.cartocdn.com /dark_all/{z}/{x}/{y}.png' ,
17
17
attribution :
18
- '© <a href="http ://www.openstreetmap.org/copyright">OpenStreetMap</a> ' +
19
- '© <a href="http ://cartodb .com/attributions">CartoDB </a>' ,
18
+ '© <a href="https ://www.openstreetmap.org/copyright" target="_blank" rel="noopener ">OpenStreetMap</a> ' +
19
+ '© <a href="https ://carto .com/about-carto/" target="_blank" rel="noopener">CARTO </a>' ,
20
20
subdomains : 'abcd' ,
21
21
} ,
22
22
} ;
Original file line number Diff line number Diff line change @@ -197,15 +197,15 @@ export default class WorldmapCtrl extends MetricsPanelCtrl {
197
197
/*
198
198
* Configure the Leaflet map widget.
199
199
*/
200
- this . tileServer = contextSrv . user . lightTheme ? 'CartoDB Positron' : 'CartoDB Dark' ;
200
+ this . tileServer = contextSrv . user . lightTheme ? 'CARTO Positron' : 'CARTO Dark' ;
201
201
this . setMapSaturationClass ( ) ;
202
202
}
203
203
204
204
setMapSaturationClass ( ) {
205
205
/*
206
206
* Configure the Leaflet map widget.
207
207
*/
208
- if ( this . tileServer === 'CartoDB Dark' ) {
208
+ if ( this . tileServer === 'CARTO Dark' ) {
209
209
this . saturationClass = 'map-darken' ;
210
210
} else {
211
211
this . saturationClass = '' ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export function createBasicMap() {
17
17
showZoomControl : true ,
18
18
showAttribution : true ,
19
19
} ,
20
- tileServer : 'CartoDB Positron' ,
20
+ tileServer : 'CARTO Positron' ,
21
21
} ;
22
22
23
23
// This mimics the `ctrl.panel` proxying established
You can’t perform that action at this time.
0 commit comments