Skip to content

Commit

Permalink
Fix issue #5516: layers with multiple SDF icons wouldn't load.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisLoer committed Oct 27, 2017
1 parent b00d7e0 commit e505df9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/symbol/symbol_layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function performSymbolLayout(bucket: SymbolBucket,
bucket.layers[0].getLayoutValue('icon-anchor', {zoom: bucket.zoom}, feature));
if (bucket.sdfIcons === undefined) {
bucket.sdfIcons = image.sdf;
} else if (this.sdfIcons !== image.sdf) {
} else if (bucket.sdfIcons !== image.sdf) {
util.warnOnce('Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer');
}
if (image.pixelRatio !== bucket.pixelRatio) {
Expand Down

0 comments on commit e505df9

Please sign in to comment.