Skip to content

Commit

Permalink
update buckets when base glyph set is loaded, ref mapbox/node-fontnik#17
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemorris committed Mar 11, 2014
1 parent f997282 commit 78f0196
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/ui/source.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@ Source.prototype = Object.create(Evented);

util.extend(Source.prototype, {
_getGlyphs: function() {
return new this.Tile(this, Tile.url(Tile.toID(0,0,0), this.urls).replace(/.gl.pbf$/, '/glyphs.gl.pbf'), 0, function(err) {
return new Tile(this, Tile.url(Tile.toID(0,0,0), this.urls).replace(/.gl.pbf$/, '/glyphs.gl.pbf'), 0, function(err) {
if (err) console.log(err);

// Update buckets with base glyph set
this.map._updateBuckets();
});
},

Expand Down

0 comments on commit 78f0196

Please sign in to comment.