Skip to content

Commit 3ea7436

Browse files
committed
set mapbox crendentials in test dashboard and image test index
1 parent 3e79f0d commit 3ea7436

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

devtools/test_dashboard/devtools.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
var Fuse = require('fuse.js');
66
var mocks = require('../../build/test_dashboard_mocks.json');
7+
var credentials = require('../../build/credentials.json');
78

89
// put d3 in window scope
910
var d3 = window.d3 = Plotly.d3;
@@ -14,8 +15,15 @@ var Tabs = {
1415
// Set plot config options
1516
setPlotConfig: function() {
1617
Plotly.setPlotConfig({
18+
1719
// use local topojson files
1820
topojsonURL: '../../dist/topojson/',
21+
22+
// register mapbox access token
23+
// run `npm run preset` if you haven't yet
24+
mapboxAccessToken: credentials.MAPBOX_ACCESS_TOKEN,
25+
26+
// show all logs in console
1927
logging: 2
2028
});
2129
},

test/image/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<script type="text/javascript" src="../plotly.js/dist/extras/mathjax/MathJax.js?config=TeX-AMS-MML_SVG"></script>
66
<script type="text/javascript" src="../plotly.js/build/plotly.js" charset="utf-8"></script>
77
<script type="text/javascript" src="../plotly.js/dist/plotly-geo-assets.js" charset="utf-8"></script>
8+
<script type="text/javascript" src="../plotly.js/build/set_plot_config.js"></script>
89
<script type="text/javascript" src="./main.js"></script>
910
</body>
1011
</html>

0 commit comments

Comments
 (0)