Skip to content

Commit

Permalink
rename "cartodb" styles to "carto"
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinerg committed Jul 19, 2019
1 parent 09343ae commit 19585fb
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
20 changes: 10 additions & 10 deletions src/plots/mapbox/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,40 +55,40 @@ module.exports = {
maxzoom: 22
}]
},
cartodb: {
id: 'cartodb-positron',
'carto-positron': {
id: 'carto-positron',
version: 8,
sources: {
'plotly-cartodb-positron': {
'plotly-carto-positron': {
type: 'raster',
attribution: '<a href="https://carto.com/" target="_blank">© CARTO</a>',
tiles: ['https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png'],
tileSize: 256
}
},
layers: [{
id: 'plotly-cartodb-positron',
id: 'plotly-carto-positron',
type: 'raster',
source: 'plotly-cartodb-positron',
source: 'plotly-carto-positron',
minzoom: 0,
maxzoom: 22
}]
},
'cartodb-dark': {
id: 'cartodb-dark',
'carto-darkmatter': {
id: 'carto-darkmatter',
version: 8,
sources: {
'plotly-cartodb-dark': {
'plotly-carto-darkmatter': {
type: 'raster',
attribution: '<a href="https://carto.com/" target="_blank">© CARTO</a>',
tiles: ['https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png'],
tileSize: 256
}
},
layers: [{
id: 'plotly-cartodb-dark',
id: 'plotly-carto-darkmatter',
type: 'raster',
source: 'plotly-cartodb-dark',
source: 'plotly-carto-darkmatter',
minzoom: 0,
maxzoom: 22
}]
Expand Down
Binary file added test/image/baselines/mapbox_carto-style.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed test/image/baselines/mapbox_cartodb-style.png
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"data": [
{
"type": "scattermapbox",
"name": "cartodb",
"name": "carto-positron",
"lon": [ 10, 20 ],
"lat": [ 20, 10 ]
},
{
"type": "scattermapbox",
"name": "cartodb-dark",
"name": "carto-darkmatter",
"lon": [ 10, 20 ],
"lat": [ 20, 10 ],
"subplot": "mapbox2"
Expand All @@ -24,11 +24,11 @@

"mapbox": {
"domain": {"row": 0, "column": 0},
"style": "cartodb"
"style": "carto-positron"
},
"mapbox2": {
"domain": {"row": 0, "column": 1},
"style": "cartodb-dark"
"style": "carto-darkmatter"
}
}
}

0 comments on commit 19585fb

Please sign in to comment.