-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Copy pathconstants.js
42 lines (32 loc) · 1.17 KB
/
constants.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/**
* Copyright 2012-2018, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var requiredVersion = '0.44.0';
module.exports = {
requiredVersion: requiredVersion,
styleUrlPrefix: 'mapbox://styles/mapbox/',
styleUrlSuffix: 'v9',
controlContainerClassName: 'mapboxgl-control-container',
wrongVersionErrorMsg: [
'Your custom plotly.js bundle is not using the correct mapbox-gl version',
'Please install mapbox-gl@' + requiredVersion + '.'
].join('\n'),
noAccessTokenErrorMsg: [
'Missing Mapbox access token.',
'Mapbox trace type require a Mapbox access token to be registered.',
'For example:',
' Plotly.plot(gd, data, layout, { mapboxAccessToken: \'my-access-token\' });',
'More info here: https://www.mapbox.com/help/define-access-token/'
].join('\n'),
mapOnErrorMsg: 'Mapbox error.',
// a subset of node_modules/mapbox-gl/dist/mapbox-gl.css
styleRules: {
map: 'overflow:hidden;position:relative;',
'missing-css': 'display:none',
}
};