@@ -111,15 +111,14 @@ SymbolBucket.prototype.shaders = {
111
111
}
112
112
} ;
113
113
114
- SymbolBucket . prototype . addFeatures = function ( collisionTile , stacks , icons ) {
114
+ SymbolBucket . prototype . addFeatures = function ( features , collisionTile , stacks , icons ) {
115
115
var tileSize = 512 * this . overscaling ;
116
116
var tileExtent = 4096 ;
117
117
this . tilePixelRatio = tileExtent / tileSize ;
118
118
this . compareText = { } ;
119
119
this . symbolInstances = [ ] ;
120
120
121
121
var layout = this . layoutProperties ;
122
- var features = this . features ;
123
122
var textFeatures = this . textFeatures ;
124
123
125
124
var horizontalAlign = 0.5 ,
@@ -441,22 +440,22 @@ SymbolBucket.prototype.addSymbols = function(shaderName, quads, scale, keepUprig
441
440
442
441
} ;
443
442
444
- SymbolBucket . prototype . updateIcons = function ( icons ) {
443
+ SymbolBucket . prototype . updateIcons = function ( features , icons ) {
445
444
var iconValue = this . layoutProperties [ 'icon-image' ] ;
446
445
if ( ! iconValue ) return ;
447
446
448
- for ( var i = 0 ; i < this . features . length ; i ++ ) {
449
- var iconName = resolveTokens ( this . features [ i ] . properties , iconValue ) ;
447
+ for ( var i = 0 ; i < features . length ; i ++ ) {
448
+ var iconName = resolveTokens ( features [ i ] . properties , iconValue ) ;
450
449
if ( iconName )
451
450
icons [ iconName ] = true ;
452
451
}
453
452
} ;
454
453
455
- SymbolBucket . prototype . updateFont = function ( stacks ) {
454
+ SymbolBucket . prototype . updateFont = function ( features , stacks ) {
456
455
var fontName = this . layoutProperties [ 'text-font' ] ,
457
456
stack = stacks [ fontName ] = stacks [ fontName ] || { } ;
458
457
459
- this . textFeatures = resolveText ( this . features , this . layoutProperties , stack ) ;
458
+ this . textFeatures = resolveText ( features , this . layoutProperties , stack ) ;
460
459
} ;
461
460
462
461
SymbolBucket . prototype . addToDebugBuffers = function ( collisionTile ) {
0 commit comments