deck.gl icon indicating copy to clipboard operation
deck.gl copied to clipboard

[Doc] Wrong information on properties for binary data on GeoJsonLayer

Open SauvageThomas opened this issue 5 months ago • 2 comments

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}]
  }
};

SauvageThomas avatar Jun 24 '25 23:06 SauvageThomas