Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0e3ac61

Browse filesBrowse files
committed
cleanup style loading
1 parent 1ebdb38 commit 0e3ac61
Copy full SHA for 0e3ac61

File tree

Expand file treeCollapse file tree

1 file changed

+0
-18
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-18
lines changed

‎src/plots/mapbox/mapbox.js

Copy file name to clipboardExpand all lines: src/plots/mapbox/mapbox.js
-18Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -775,24 +775,6 @@ function getStyleObj(val, fullLayout) {
775775

776776
if(constants.stylesMapbox[val]) {
777777
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-
}
796778
} else {
797779
styleObj.style = val;
798780
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.