Skip to content

Commit

Permalink
docs: pick methods belong to Deck, not DeckGL (#2675)
Browse files Browse the repository at this point in the history
  • Loading branch information
mccalluc authored and tsherif committed Feb 14, 2019
1 parent 5dff0b2 commit ef1a8b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/get-started/interactivity.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class App extends React.Component {

## Calling the Picking Engine Directly

The picking engine is exposed through the [`DeckGL.pickObject`](/docs/api-reference/react/deckgl.md) and [`DeckGL.pickObjects`](/docs/api-reference/react/deckgl.md) methods. These methods allow you to query what layers and objects within those layers are under a specific point or within a specified rectangle. They return `Picking Info` objects as described below.
The picking engine is exposed through the [`Deck.pickObject`](/docs/api-reference/deck.md) and [`Deck.pickObjects`](/docs/api-reference/deck.md) methods. These methods allow you to query what layers and objects within those layers are under a specific point or within a specified rectangle. They return `Picking Info` objects as described below.

`pickObject` allows an application to define its own event handling. When it comes to how to actually do event handling in a browser, there are many options. In a React application, perhaps the simplest is to just use React's "synthetic" event handling together with `pickObject`:

Expand Down

0 comments on commit ef1a8b0

Please sign in to comment.