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 805270c

Browse filesBrowse files
committed
fix open sans font
1 parent 9982cf9 commit 805270c
Copy full SHA for 805270c

File tree

Expand file treeCollapse file tree

2 files changed

+12
-1
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+12
-1
lines changed

‎src/plots/mapbox/mapbox.js

Copy file name to clipboardExpand all lines: src/plots/mapbox/mapbox.js
+12Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,18 @@ proto.createMap = function(calcData, fullLayout, resolve, reject) {
104104
compact: true
105105
}));
106106

107+
map.setTransformRequest((url, resourceType)=>{
108+
109+
console.log(url)
110+
111+
url = url.replace('https://fonts.openmaptiles.org/Open Sans Extrabold', 'https://fonts.openmaptiles.org/Open Sans Extra Bold')
112+
url = url.replace('https://fonts.openmaptiles.org/Open Sans Regular,Arial Unicode MS Regular', 'https://fonts.openmaptiles.org/Open Sans Regular')
113+
return {
114+
url: url
115+
}
116+
117+
})
118+
107119

108120
// make sure canvas does not inherit left and top css
109121
map._canvas.style.left = '0px';

‎test/image/make_baseline.py

Copy file name to clipboardExpand all lines: test/image/make_baseline.py
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@
9595
'mapbox_osm-style',
9696
'mapbox_stamen-style',
9797
'mapbox_custom-style', # Figure out why needed this in https://github.com/plotly/plotly.js/pull/6610
98-
'mapbox_geojson-attributes',
9998
'mapbox_layers'
10099
]
101100
allNames = [a for a in allNames if a not in blacklist]

0 commit comments

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