Skip to content

Commit 4a4bd47

Browse files
committed
declare and reuse stamen attribution string
1 parent 2c8bb80 commit 4a4bd47

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/plots/mapbox/constants.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
var requiredVersion = '1.10.1';
44

55
var OSM = '<a href="https://www.openstreetmap.org/copyright" target="_blank">© OpenStreetMap</a> contributors';
6+
var stamen = 'Map tiles by <a href="https://stamen.com">Stamen Design</a>, under <a href="https://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>';
67

78
var stylesNonMapbox = {
89
'open-street-map': {
@@ -91,7 +92,7 @@ var stylesNonMapbox = {
9192
type: 'raster',
9293
attribution: [
9394
OSM,
94-
'Map tiles by <a href="https://stamen.com">Stamen Design</a>, under <a href="https://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>'
95+
stamen
9596
].join(', '),
9697
tiles: ['https://stamen-tiles.a.ssl.fastly.net/terrain/{z}/{x}/{y}.png'],
9798
tileSize: 256
@@ -113,7 +114,7 @@ var stylesNonMapbox = {
113114
type: 'raster',
114115
attribution: [
115116
OSM,
116-
'Map tiles by <a href="https://stamen.com">Stamen Design</a>, under <a href="https://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>'
117+
stamen
117118
].join(', '),
118119
tiles: ['https://stamen-tiles.a.ssl.fastly.net/toner/{z}/{x}/{y}.png'],
119120
tileSize: 256
@@ -135,7 +136,7 @@ var stylesNonMapbox = {
135136
type: 'raster',
136137
attribution: [
137138
OSM,
138-
'Map tiles by <a href="https://stamen.com">Stamen Design</a>, under <a href="https://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>'
139+
stamen
139140
].join(', '),
140141
tiles: ['https://stamen-tiles.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.png'],
141142
tileSize: 256

0 commit comments

Comments
 (0)