22
33var requiredVersion = '1.10.1' ;
44
5- var OSM = '© <a target="_blank" href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>' ;
6- var Carto = '© <a target="_blank" href="https://carto.com/">Carto</a>' ;
7- var Stamen = '© <a target="_blank" href="https://stamen.com">Stamen Design LLC</a>' ;
5+ var OSM = '© <a target="_blank" href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors' ;
6+ var carto = [
7+ '© <a target="_blank" href="https://carto.com/">Carto</a>' ,
8+ OSM
9+ ] . join ( ' ' ) ;
10+
11+ var stamenTerrainOrToner = [
12+ 'Map tiles by <a target="_blank" href="https://stamen.com">Stamen Design</a>' ,
13+ 'under <a target="_blank" href="https://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>' ,
14+ '|' ,
15+ 'Data by <a target="_blank" href="https://openstreetmap.org">OpenStreetMap</a> contributors' ,
16+ 'under <a target="_blank" href="https://www.openstreetmap.org/copyright">ODbL</a>'
17+ ] . join ( ' ' ) ;
18+
19+ var stamenWaterColor = [
20+ 'Map tiles by <a target="_blank" href="https://stamen.com">Stamen Design</a>' ,
21+ 'under <a target="_blank" href="https://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>' ,
22+ '|' ,
23+ 'Data by <a target="_blank" href="https://openstreetmap.org">OpenStreetMap</a> contributors' ,
24+ 'under <a target="_blank" href="https://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>'
25+ ] . join ( ' ' ) ;
826
927var stylesNonMapbox = {
1028 'open-street-map' : {
@@ -47,7 +65,7 @@ var stylesNonMapbox = {
4765 sources : {
4866 'plotly-carto-positron' : {
4967 type : 'raster' ,
50- attribution : [ Carto , OSM ] . join ( ' ' ) ,
68+ attribution : carto ,
5169 tiles : [ 'https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png' ] ,
5270 tileSize : 256
5371 }
@@ -66,7 +84,7 @@ var stylesNonMapbox = {
6684 sources : {
6785 'plotly-carto-darkmatter' : {
6886 type : 'raster' ,
69- attribution : [ Carto , OSM ] . join ( ' ' ) ,
87+ attribution : carto ,
7088 tiles : [ 'https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png' ] ,
7189 tileSize : 256
7290 }
@@ -85,7 +103,7 @@ var stylesNonMapbox = {
85103 sources : {
86104 'plotly-stamen-terrain' : {
87105 type : 'raster' ,
88- attribution : [ Stamen , OSM ] . join ( ' ' ) ,
106+ attribution : stamenTerrainOrToner ,
89107 tiles : [ 'https://stamen-tiles.a.ssl.fastly.net/terrain/{z}/{x}/{y}.png' ] ,
90108 tileSize : 256
91109 }
@@ -104,7 +122,7 @@ var stylesNonMapbox = {
104122 sources : {
105123 'plotly-stamen-toner' : {
106124 type : 'raster' ,
107- attribution : [ Stamen , OSM ] . join ( ' ' ) ,
125+ attribution : stamenTerrainOrToner ,
108126 tiles : [ 'https://stamen-tiles.a.ssl.fastly.net/toner/{z}/{x}/{y}.png' ] ,
109127 tileSize : 256
110128 }
@@ -123,7 +141,7 @@ var stylesNonMapbox = {
123141 sources : {
124142 'plotly-stamen-watercolor' : {
125143 type : 'raster' ,
126- attribution : [ Stamen , OSM ] . join ( ' ' ) ,
144+ attribution : stamenWaterColor ,
127145 tiles : [ 'https://stamen-tiles.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.png' ] ,
128146 tileSize : 256
129147 }
0 commit comments