Skip to content

Commit

Permalink
updateBuffers => updatePaintArrays
Browse files Browse the repository at this point in the history
(Anticipating #2837)
  • Loading branch information
Anand Thakker committed Jul 7, 2016
1 parent 58839ac commit 83204ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions js/data/bucket.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,11 @@ Bucket.prototype.populateBuffers = function() {
};

/**
* Update the buffers with feature properties, leaving geometries as-is.
* Update paint arrays with the given feature properties, leaving geometries
* as-is.
* @private
*/
Bucket.prototype.updateBuffers = function(propertiesList) {
Bucket.prototype.updatePaintArrays = function(propertiesList) {
this.recalculateStyleLayers();

for (var i = 0; i < propertiesList.length; i++) {
Expand Down
2 changes: 1 addition & 1 deletion js/source/worker_tile.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ WorkerTile.prototype.updateProperties = function(data, layerFamilies, actor, raw
// immediately parse non-symbol buckets (they have no dependencies)
for (var i = otherBuckets.length - 1; i >= 0; i--) {
var properties = data[otherBuckets[i].layer.sourceLayer];
otherBuckets[i].updateBuffers(properties || []);
otherBuckets[i].updatePaintArrays(properties || []);
}

// this will probably be async once we include the symbol stuff
Expand Down

0 comments on commit 83204ce

Please sign in to comment.