We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25f6b02 commit 292acf8Copy full SHA for 292acf8
1 file changed
src/components/drawing/index.js
@@ -1866,7 +1866,10 @@ function getMarkerAngle(d, trace) {
1866
1867
if (angle === undefined) {
1868
angle = trace.marker.angle;
1869
- if (!angle || Lib.isArrayOrTypedArray(angle)) {
+ // For scattermap traces, `trace.marker.angle` defaults to 'auto',
1870
+ // which is meaningful for the MapLibre code but not for plotly.js itself.
1871
+ // Therefore we need to coerce any non-numeric values to 0 (no rotation).
1872
+ if (!isNumeric(angle) || Lib.isArrayOrTypedArray(angle)) {
1873
angle = 0;
1874
}
1875
0 commit comments