Create 08-data-methods.md
This commit is contained in:
parent
3c43265dcc
commit
00a12cf968
12
docs/reference/08-data-methods.md
Normal file
12
docs/reference/08-data-methods.md
Normal file
@ -0,0 +1,12 @@
|
||||
### Data Methods
|
||||
|
||||
Method | Options | Returns | Description
|
||||
---|---|---|---
|
||||
`setSQL(sql statement)` | `SQL string` | `this` | Change the SQL on the data table (not available with named maps)
|
||||
`error(callback)` | `callback function with a list of errors as argument` | `this` | specifies a callback function to run if there are query errors
|
||||
|
||||
|
||||
**Example:**
|
||||
```js
|
||||
// SQL Example to limit the data used in the Torque map.
|
||||
torqueLayer.setSQL("SELECT * FROM table LIMIT 100");
|
Loading…
Reference in New Issue
Block a user