Skip to content

Commit 19585fb

Browse files
committed
rename "cartodb" styles to "carto"
1 parent 09343ae commit 19585fb

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

src/plots/mapbox/constants.js

+10-10
Original file line numberDiff line numberDiff line change
@@ -55,40 +55,40 @@ module.exports = {
5555
maxzoom: 22
5656
}]
5757
},
58-
cartodb: {
59-
id: 'cartodb-positron',
58+
'carto-positron': {
59+
id: 'carto-positron',
6060
version: 8,
6161
sources: {
62-
'plotly-cartodb-positron': {
62+
'plotly-carto-positron': {
6363
type: 'raster',
6464
attribution: '<a href="https://carto.com/" target="_blank">© CARTO</a>',
6565
tiles: ['https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png'],
6666
tileSize: 256
6767
}
6868
},
6969
layers: [{
70-
id: 'plotly-cartodb-positron',
70+
id: 'plotly-carto-positron',
7171
type: 'raster',
72-
source: 'plotly-cartodb-positron',
72+
source: 'plotly-carto-positron',
7373
minzoom: 0,
7474
maxzoom: 22
7575
}]
7676
},
77-
'cartodb-dark': {
78-
id: 'cartodb-dark',
77+
'carto-darkmatter': {
78+
id: 'carto-darkmatter',
7979
version: 8,
8080
sources: {
81-
'plotly-cartodb-dark': {
81+
'plotly-carto-darkmatter': {
8282
type: 'raster',
8383
attribution: '<a href="https://carto.com/" target="_blank">© CARTO</a>',
8484
tiles: ['https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png'],
8585
tileSize: 256
8686
}
8787
},
8888
layers: [{
89-
id: 'plotly-cartodb-dark',
89+
id: 'plotly-carto-darkmatter',
9090
type: 'raster',
91-
source: 'plotly-cartodb-dark',
91+
source: 'plotly-carto-darkmatter',
9292
minzoom: 0,
9393
maxzoom: 22
9494
}]
71.3 KB
Loading
-70.5 KB
Binary file not shown.

test/image/mocks/mapbox_cartodb-style.json renamed to test/image/mocks/mapbox_carto-style.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
"data": [
33
{
44
"type": "scattermapbox",
5-
"name": "cartodb",
5+
"name": "carto-positron",
66
"lon": [ 10, 20 ],
77
"lat": [ 20, 10 ]
88
},
99
{
1010
"type": "scattermapbox",
11-
"name": "cartodb-dark",
11+
"name": "carto-darkmatter",
1212
"lon": [ 10, 20 ],
1313
"lat": [ 20, 10 ],
1414
"subplot": "mapbox2"
@@ -24,11 +24,11 @@
2424

2525
"mapbox": {
2626
"domain": {"row": 0, "column": 0},
27-
"style": "cartodb"
27+
"style": "carto-positron"
2828
},
2929
"mapbox2": {
3030
"domain": {"row": 0, "column": 1},
31-
"style": "cartodb-dark"
31+
"style": "carto-darkmatter"
3232
}
3333
}
3434
}

0 commit comments

Comments
 (0)