@@ -105,18 +105,19 @@ module.exports = function convert(gd, calcTrace) {
105
105
} ) ;
106
106
107
107
if ( 'angle' in trace . marker ) {
108
- Lib . extendFlat ( symbol . layout , {
109
- 'icon-rotation-alignment' : 'map' ,
110
- 'icon-rotate' : {
111
- type : 'identity' , property : 'angle'
108
+ Lib . extendFlat ( symbol . layout , {
112
109
// unfortunately cant use {angle} do to this issue:
113
110
// https://github.com/mapbox/mapbox-gl-js/issues/873
114
- } } )
111
+ 'icon-rotate' : {
112
+ type : 'identity' , property : 'angle'
113
+ } ,
114
+ 'icon-rotation-alignment' : 'map'
115
+ } ) ;
115
116
}
116
117
117
118
if ( 'allowoverlap' in trace . marker ) {
118
119
Lib . extendFlat ( symbol . layout ,
119
- { 'icon-allow-overlap' : trace . marker . allowoverlap } )
120
+ { 'icon-allow-overlap' : trace . marker . allowoverlap } ) ;
120
121
}
121
122
122
123
@@ -262,7 +263,7 @@ function makeSymbolGeoJSON(calcTrace, gd) {
262
263
blankFillFunc ;
263
264
264
265
var fillAngle = ( angle ) ?
265
- getFillFunc ( angle ) :
266
+ getFillFunc ( angle ) :
266
267
blankFillFunc ;
267
268
268
269
var fillText = subTypes . hasText ( trace ) ?
@@ -319,7 +320,7 @@ function getFillFunc(attr) {
319
320
if ( Lib . isArrayOrTypedArray ( attr ) ) {
320
321
return function ( i ) { return attr [ i ] ; } ;
321
322
} else if ( attr ) {
322
- return function ( i ) { return attr ; } ;
323
+ return function ( ) { return attr ; } ;
323
324
} else {
324
325
return blankFillFunc ;
325
326
}
0 commit comments