-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Copy pathindex.js
41 lines (37 loc) · 1.34 KB
/
index.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
'use strict';
var deprecationWarning = [
'*scattermapbox* trace is deprecated!',
'Please consider switching to the *scattermap* trace type and `map` subplots.',
'Learn more at: https://plotly.com/python/maplibre-migration/',
'as well as https://plotly.com/javascript/maplibre-migration/'
].join(' ');
module.exports = {
attributes: require('./attributes'),
supplyDefaults: require('./defaults'),
colorbar: require('../scatter/marker_colorbar'),
formatLabels: require('./format_labels'),
calc: require('../scattergeo/calc'),
plot: require('./plot'),
hoverPoints: require('./hover').hoverPoints,
eventData: require('./event_data'),
selectPoints: require('./select'),
styleOnSelect: function(_, cd) {
if(cd) {
var trace = cd[0].trace;
trace._glTrace.update(cd);
}
},
moduleType: 'trace',
name: 'scattermapbox',
basePlotModule: require('../../plots/mapbox'),
categories: ['mapbox', 'gl', 'symbols', 'showLegend', 'scatter-like'],
meta: {
hrName: 'scatter_mapbox',
description: [
deprecationWarning,
'The data visualized as scatter point, lines or marker symbols',
'on a Mapbox GL geographic map',
'is provided by longitude/latitude pairs in `lon` and `lat`.'
].join(' ')
}
};