Skip to content

Commit df3b628

Browse files
committed
present carto & stamen first - be on par with mapbox-gl variant
1 parent 4158279 commit df3b628

File tree

1 file changed

+6
-21
lines changed

1 file changed

+6
-21
lines changed

src/plots/mapbox/constants.js

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
var requiredVersion = '1.10.1';
44

5-
var OSM = '© <a target="_blank" href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors';
5+
var OSM = '© <a target="_blank" href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>';
66
var carto = '© <a target="_blank" href="https://carto.com/">CARTO</a>';
77
var stamen = '© <a target="_blank" href="https://stamen.com">Stamen Design LLC</a>';
88

@@ -47,10 +47,7 @@ var stylesNonMapbox = {
4747
sources: {
4848
'plotly-carto-positron': {
4949
type: 'raster',
50-
attribution: [
51-
OSM,
52-
carto
53-
].join(', '),
50+
attribution: [carto, OSM].join(' '),
5451
tiles: ['https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png'],
5552
tileSize: 256
5653
}
@@ -69,10 +66,7 @@ var stylesNonMapbox = {
6966
sources: {
7067
'plotly-carto-darkmatter': {
7168
type: 'raster',
72-
attribution: [
73-
OSM,
74-
carto
75-
].join(', '),
69+
attribution: [carto, OSM].join(' '),
7670
tiles: ['https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png'],
7771
tileSize: 256
7872
}
@@ -91,10 +85,7 @@ var stylesNonMapbox = {
9185
sources: {
9286
'plotly-stamen-terrain': {
9387
type: 'raster',
94-
attribution: [
95-
OSM,
96-
stamen
97-
].join(', '),
88+
attribution: [stamen, OSM].join(' '),
9889
tiles: ['https://stamen-tiles.a.ssl.fastly.net/terrain/{z}/{x}/{y}.png'],
9990
tileSize: 256
10091
}
@@ -113,10 +104,7 @@ var stylesNonMapbox = {
113104
sources: {
114105
'plotly-stamen-toner': {
115106
type: 'raster',
116-
attribution: [
117-
OSM,
118-
stamen
119-
].join(', '),
107+
attribution: [stamen, OSM].join(' '),
120108
tiles: ['https://stamen-tiles.a.ssl.fastly.net/toner/{z}/{x}/{y}.png'],
121109
tileSize: 256
122110
}
@@ -135,10 +123,7 @@ var stylesNonMapbox = {
135123
sources: {
136124
'plotly-stamen-watercolor': {
137125
type: 'raster',
138-
attribution: [
139-
OSM,
140-
stamen
141-
].join(', '),
126+
attribution: [stamen, OSM].join(' '),
142127
tiles: ['https://stamen-tiles.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.png'],
143128
tileSize: 256
144129
}

0 commit comments

Comments
 (0)