Skip to content

Commit

Permalink
Update README.md (#83)
Browse files Browse the repository at this point in the history
Making documentation clearer about how to use geobuf on the client side
  • Loading branch information
Spaxe authored and mourner committed Aug 23, 2017
1 parent 9fcb207 commit 68303ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ In Node@4.5.0 or later, you can use `Buffer.from` to convert back to a buffer.
var geojson = geobuf.decode(new Pbf(data));
```

Given a [Pbf](https://github.com/mapbox/pbf) object with Geobuf data, return a GeoJSON object.
Given a [Pbf](https://github.com/mapbox/pbf) object with Geobuf data, return a GeoJSON object. When loading Geobuf data over `XMLHttpRequest`, you need to set `responseType` to [`arraybuffer`](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseType).


## Install
Expand Down

0 comments on commit 68303ad

Please sign in to comment.