Skip to content

Commit

Permalink
Encode either jpg/webp as jpeg
Browse files Browse the repository at this point in the history
  • Loading branch information
yhahn committed Dec 2, 2015
1 parent 7de5a64 commit 03f479f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Vector.prototype.getTile = function(z, x, y, callback) {
// For xray styles use srcdata tile format.
if (source._xray && vtile._srcdata) {
var type = tiletype.type(vtile._srcdata);
format = type === 'jpg' ? 'jpeg' : 'png8:m=h';
format = /^jpg|webp$/.test(type) ? 'jpeg' : 'png8:m=h';
}

var headers = {};
Expand Down

0 comments on commit 03f479f

Please sign in to comment.