Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ It uses [Leaflet.draw](https://github.com/Leaflet/Leaflet.draw) ([demo](https://

2. Create a new CartoDB dataset. The default dataset comes with the following fields: `{cartodb_id, the_geom, description, name}`
Each row represents one submission from the map with the first field a unique id assigned by CartoDB to each geometry. `the_geom` is the geographic object. `description` is the user input description of the shape, and `name` is the user's name.
3. In the view for the table, click on the "SQL" tab on the write to execute arbitrary SQL.
3. In the view for the table, click on the "SQL" tab on the right to execute arbitrary SQL.
![Custom SQL tab](https://i.stack.imgur.com/HPEHG.png)
4. Copy and paste the contents of `insert_function.sql` ([located here](insert_function.sql)) into the sql pane, and then modify the name of the table to be inserted:
```
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ <h1>Leaflet Draw Collection Tool</h1>

//TODO: Change to your username, insert function on cartodb, and cartodb tablename
var config = {
cartoDBusername : "raphaeld",
cartoDBusername : "gregjd",
cartoDBinsertfunction : "insert_crowd_mapping_data",
cartoDBtablename : "crowdmap_basic",
mapcenter: [42.381899, -71.122499],
Expand Down