deck.gl
deck.gl copied to clipboard
[Doc] Wrong information on properties for binary data on GeoJsonLayer
Link
https://deck.gl/docs/api-reference/layers/geojson-layer#properties-and-numeric-properties
Description
In the doc it says "Both properties and numericProps are specified per-feature."
That's not the case, it's per vertex.
Also, the examples contain a lot of non valid code (missing 'new' keyword, closing parenthesis, ...).
For instance:
const binary: BinaryPointFeature = {
shape: 'binary-feature-collection',
points: {
positions: {value: Float32Array([1,23, 4.56]), size: 2},
properties: [{name: 'London'}],
numericProps: {
population: {value: Float32Array([10000000], size: 1}
},
featureIds: {value: Uint16Array([0]), size: 1},
globalFeatureIds: {value: Uint16Array([0]), size: 1},
fields: [{id: 123}]
}
};