File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -488,7 +488,7 @@ export default class Layer extends Component {
488
488
489
489
// calculateInstancePickingColors always generates the same sequence.
490
490
// pickingColorCache saves the largest generated sequence for reuse
491
- const cacheSize = pickingColorCache . length / 3 ;
491
+ const cacheSize = Math . floor ( pickingColorCache . length / 3 ) ;
492
492
493
493
// Record when using the picking buffer cache, so that layers can always point at the most recently allocated cache
494
494
this . internalState . usesPickingColorCache = true ;
@@ -507,7 +507,7 @@ export default class Layer extends Component {
507
507
} ) ;
508
508
509
509
// If the attribute is larger than the cache, resize the cache and populate the missing chunk
510
- const newCacheSize = pickingColorCache . length / 3 ;
510
+ const newCacheSize = Math . floor ( pickingColorCache . length / 3 ) ;
511
511
const pickingColor = [ ] ;
512
512
for ( let i = cacheSize ; i < newCacheSize ; i ++ ) {
513
513
this . encodePickingColor ( i , pickingColor ) ;
You can’t perform that action at this time.
0 commit comments