File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +0
-18
lines changed
Original file line number Diff line number Diff line change @@ -775,24 +775,6 @@ function getStyleObj(val, fullLayout) {
775
775
776
776
if ( constants . stylesMapbox [ val ] ) {
777
777
styleObj . style = constants . stylesMapbox [ val ] ;
778
-
779
- if ( typeof styleObj . style === 'string' ) {
780
- if ( styleObj . style . slice ( - 9 ) === '?api_key=' ) {
781
- // provide api_key for stamen styles
782
- styleObj . style += fullLayout . _mapboxAccessToken ;
783
- }
784
- } else {
785
- var spec = styleObj . style . sources [ 'plotly-' + val ] ;
786
- var tiles = spec ? spec . tiles : undefined ;
787
- if (
788
- tiles &&
789
- tiles [ 0 ] &&
790
- tiles [ 0 ] . slice ( - 9 ) === '?api_key='
791
- ) {
792
- // provide api_key for stamen styles
793
- tiles [ 0 ] += fullLayout . _mapboxAccessToken ;
794
- }
795
- }
796
778
} else {
797
779
styleObj . style = val ;
798
780
}
You can’t perform that action at this time.
0 commit comments