Skip to content

Commit

Permalink
docs: Correct sublayer name in CompositeLayer docs (#8955)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixpalmer authored and Pessimistress committed Jun 20, 2024
1 parent e03095d commit b69e828
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api-reference/core/composite-layer.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Inherits from all [Base Layer](./layer.md) properties.

Key is the id of a sublayer and value is an object used to override the props of the sublayer. For a list of ids rendered by each composite layer, consult the *Sub Layers* section in each layer's documentation.

Example: make only the point features in a GeoJsonLayer respond to hover and click
Example: make only the [point features](../layers/geojson-layer#sub-layers) in a GeoJsonLayer respond to hover and click

```ts
import {GeoJsonLayer} from '@deck.gl/layers';
Expand All @@ -35,7 +35,7 @@ const layer = new GeoJsonLayer({
// ...
pickable: false,
_subLayerProps: {
points: {
'points-circle': {
pickable: true
}
}
Expand Down

0 comments on commit b69e828

Please sign in to comment.