Skip to content

Commit 243680b

Browse files
committed
changing mapbox icon angle default to 0 + minor code edit
1 parent f9eb48b commit 243680b

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/traces/scattermapbox/attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ module.exports = overrideAll({
8989
},
9090
angle: {
9191
valType: 'number',
92-
dflt: null,
92+
dflt: 0,
9393
role: 'style',
9494
arrayOk: true,
9595
description: [

src/traces/scattermapbox/convert.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,7 @@ module.exports = function convert(gd, calcTrace) {
115115
});
116116
}
117117

118-
if('allowoverlap' in trace.marker) {
119-
Lib.extendFlat(symbol.layout,
120-
{'icon-allow-overlap': trace.marker.allowoverlap});
121-
}
122-
118+
symbol.layout['icon-allow-overlap'] = trace.marker.allowoverlap;
123119

124120
Lib.extendFlat(symbol.paint, {
125121
'icon-opacity': trace.opacity * trace.marker.opacity,

0 commit comments

Comments
 (0)