radumas / crowdmap-basic Goto Github PK
View Code? Open in Web Editor NEWBasic example of using Leaflet.draw to crowdsource geographies to a CartoDB database
Home Page: https://radumas.info/crowdmap-basic
License: MIT License
Basic example of using Leaflet.draw to crowdsource geographies to a CartoDB database
Home Page: https://radumas.info/crowdmap-basic
License: MIT License
crowdmap-basic
vs crowdmap_basic
I think this an HTTPS issue with the non-https URL of radumas.info
As I found out from the workshop given at Transportation Camp, people might come to the repository without really knowing what github & cartodb are...
Should be a section explaining how to further customize the map, e.g.:
Users should be able to hide already submitted shapes when drawing their own.
Users experiencing issues loading mixed content
Discovered this with some feedback from a fork of this. From mentalhealthawhereness/map#1
I tried inserting a note that read
I'm here...
and the console revealed an error messagePOST https://anditabinas.carto.com/api/v2/sql 400 (Bad Request) (index):206 Problem saving the data
The sql that is being generated here is something like `SELECT insert_data('I'm here');' The issue is in where the sql string to get passed to the Carto sql API is being generated by simple string manipulation https://github.com/mentalhealthawhereness/map/blob/master/index.html#L199-210
A simple fix would be to replace any single-quote with the Postgresql-friendly doubled single quote
SELECT insert_data('I''m here');
(see ex below) but I wonder if there's a.... better way of solving more cases of user-input that could break this. So I asked on StackOverflowsanitized_input = user_input.replace("'", "''")
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.