File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -89,13 +89,13 @@ module.exports = overrideAll({
89
89
} ,
90
90
angle : {
91
91
valType : 'number' ,
92
- dflt : null ,
92
+ dflt : 'auto' ,
93
93
role : 'style' ,
94
94
arrayOk : true ,
95
95
description : [
96
- 'Sets the marker rotation , in degrees clockwise.' ,
97
- 'When it is not defined or using null (i.e. default), ' ,
98
- 'no rotation would be applied in perspective views .'
96
+ 'Sets the marker orientation from true North , in degrees clockwise.' ,
97
+ 'When using the *auto* default, no rotation would be applied ' ,
98
+ 'in perspective views which is different from using a zero angle .'
99
99
] . join ( ' ' )
100
100
} ,
101
101
allowoverlap : {
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ module.exports = function convert(gd, calcTrace) {
104
104
'icon-size' : trace . marker . size / 10
105
105
} ) ;
106
106
107
- if ( 'angle' in trace . marker ) {
107
+ if ( 'angle' in trace . marker && trace . marker . angle !== 'auto' ) {
108
108
Lib . extendFlat ( symbol . layout , {
109
109
// unfortunately cant use {angle} do to this issue:
110
110
// https://github.com/mapbox/mapbox-gl-js/issues/873
@@ -258,7 +258,7 @@ function makeSymbolGeoJSON(calcTrace, gd) {
258
258
getFillFunc ( symbol ) :
259
259
blankFillFunc ;
260
260
261
- var fillAngle = ( angle ) ?
261
+ var fillAngle = ( angle !== 'auto' ) ?
262
262
getFillFunc ( angle , true ) :
263
263
blankFillFunc ;
264
264
You can’t perform that action at this time.
0 commit comments