Skip to content

Commit

Permalink
Use pbf module instead of protobuf.js. Fixes mapbox#201
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcw committed Feb 10, 2014
1 parent 6b58d3d commit 7376bf6
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 124 deletions.
2 changes: 1 addition & 1 deletion bin/point-in-polygon.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
var assert = require('assert');
var Protobuf = require('../js/format/protobuf.js');
var Protobuf = require('pbf');
var VectorTile = require('../js/format/vectortile.js');
var VectorTileFeature = require('../js/format/vectortilefeature.js');
var rbush = require('../js/lib/rbush.js');
Expand Down
4 changes: 2 additions & 2 deletions bin/show.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env node
var Protobuf = require('../js/protobuf.js');
var Protobuf = require('pbf');
var VectorTile = require('../js/vectortile.js');


Expand Down Expand Up @@ -84,4 +84,4 @@ zlib.inflate(data, function(err, data) {
}
}

});
});
4 changes: 2 additions & 2 deletions bin/stats-type.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env node
var Protobuf = require('../js/protobuf.js');
var Protobuf = require('pbf');
var VectorTile = require('../js/vectortile.js');


Expand Down Expand Up @@ -38,4 +38,4 @@ zlib.inflate(data, function(err, data) {

console.warn(stats.road);

});
});
2 changes: 1 addition & 1 deletion bin/stats.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env node
var Protobuf = require('../js/protobuf.js');
var Protobuf = require('pbf');
var VectorTile = require('../js/vectortile.js');
var VectorTileFeature = require('../js/vectortilefeature.js');

Expand Down
116 changes: 0 additions & 116 deletions js/format/protobuf.js

This file was deleted.

2 changes: 1 addition & 1 deletion js/worker/workertile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var Geometry = require('../geometry/geometry.js');
var Bucket = require('../geometry/bucket.js');
var FeatureTree = require('../geometry/featuretree.js');
var util = require('../util/util.js');
var Protobuf = require('../format/protobuf.js');
var Protobuf = require('pbf');
var VectorTile = require('../format/vectortile.js');
var VectorTileFeature = require('../format/vectortilefeature.js');
var Placement = require('../text/placement.js');
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dependencies": {
"geojson-rewind": "~0.1.0",
"rbush": "~1.3.2",
"ieee754": "~1.1.2"
"pbf": "0.0.1"
},
"devDependencies": {
"expect.js": "~0.2.0",
Expand Down

0 comments on commit 7376bf6

Please sign in to comment.