Skip to content

Commit

Permalink
MVTLayer binary prop documentation update
Browse files Browse the repository at this point in the history
  • Loading branch information
felixpalmer committed May 26, 2021
1 parent 26635d3 commit ab663b6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/api-reference/geo-layers/mvt-layer.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,13 @@ On top of the [default options](/docs/api-reference/core/layer.md#loadoptions),

##### `binary` (Boolean, optional)

* Default: false
* Default: true

Use tile data in [binary format](https://github.com/visgl/loaders.gl/blob/master/modules/gis/docs/api-reference/geojson-to-binary.md) to improve performance. It removes the need for serialization and deserialization of data transferred by the worker back to the main process.
Use tile data in [binary format](https://github.com/visgl/loaders.gl/blob/master/modules/gis/docs/api-reference/geojson-to-binary.md) to improve performance (2-3x faster on large datasets). It removes the need for serialization and deserialization of data transferred by the worker back to the main process.

Remarks:

- It requires using `GeoJsonLayer` in the `renderSubLayers` callback.
- In binary format, there are some rendering issues with polygons or multipolygons which contain holes (the holes won't appear as expected), we're working to fix it for the next release.

### Callbacks

Expand Down

0 comments on commit ab663b6

Please sign in to comment.