Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter friendly fixture, 062 #102

Merged
merged 4 commits into from
Sep 23, 2019
Merged

Filter friendly fixture, 062 #102

merged 4 commits into from
Sep 23, 2019

Conversation

mapsam
Copy link
Contributor

@mapsam mapsam commented Sep 23, 2019

New fixture 062 with five point features all with filter-friendly attributes (integers and strings).

🍷 Pairs well with mapbox/vtquery#110

cc @CyanRook @mapbox/maps-api

@@ -3,17 +3,21 @@
### Table of Contents
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't mind the markdown changes, I used a new version of documentation.js, which led to the diff.

@@ -37,5 +37,5 @@ module.exports = function(json, proto, opts) {
const mvt = Compile(proto_schema);
const pbf = new Pbf();
mvt.Tile.write(json, pbf);
return new Buffer(pbf.finish());
return new Buffer.from(pbf.finish());
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Buffer() has been deprecated, recommended usage is Buffer.from()

@mapsam mapsam merged commit ef28445 into master Sep 23, 2019
@mapsam mapsam deleted the filter-friendly-fixture branch September 23, 2019 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants