Allowing users to add data to marker that they create on Leaflet map? The Next CEO of Stack OverflowAdding comments using leaflet drawHow to update data in Leaflet Control?Submit a form from within a leaflet popup?Leaflet Draw on Mobile - creating a markerLeaflet map - custom markers from CSV and referring to CSV / GeoJSON marker properties?Submit form information from a leaflet popup to MySQL tableHow to edit an existing layer using leaflet?Leaflet.draw: add attributes and save to fileGeoJSON add and format line features to a Leaflet map?How to get the exact Circle that user has drawn using Leaflet.draw.Circle?
How can I separate the number from the unit in argument?
Is it possible to make a 9x9 table fit within the default margins?
Do I need to write [sic] when including a quotation with a number less than 10 that isn't written out?
Why can't we say "I have been having a dog"?
Find the majority element, which appears more than half the time
Upgrading From a 9 Speed Sora Derailleur?
Does Germany produce more waste than the US?
Is it possible to create a QR code using text?
What difference does it make matching a word with/without a trailing whitespace?
Prodigo = pro + ago?
logical reads on global temp table, but not on session-level temp table
How exploitable/balanced is this homebrew spell: Spell Permanency?
Planeswalker Ability and Death Timing
Why did early computer designers eschew integers?
How can I prove that a state of equilibrium is unstable?
My ex-girlfriend uses my Apple ID to login to her iPad, do I have to give her my Apple ID password to reset it?
How to compactly explain secondary and tertiary characters without resorting to stereotypes?
Arrows in tikz Markov chain diagram overlap
Is it "common practice in Fourier transform spectroscopy to multiply the measured interferogram by an apodizing function"? If so, why?
Can a PhD from a non-TU9 German university become a professor in a TU9 university?
Why was Sir Cadogan fired?
My boss doesn't want me to have a side project
Gödel's incompleteness theorems - what are the religious implications?
Read/write a pipe-delimited file line by line with some simple text manipulation
Allowing users to add data to marker that they create on Leaflet map?
The Next CEO of Stack OverflowAdding comments using leaflet drawHow to update data in Leaflet Control?Submit a form from within a leaflet popup?Leaflet Draw on Mobile - creating a markerLeaflet map - custom markers from CSV and referring to CSV / GeoJSON marker properties?Submit form information from a leaflet popup to MySQL tableHow to edit an existing layer using leaflet?Leaflet.draw: add attributes and save to fileGeoJSON add and format line features to a Leaflet map?How to get the exact Circle that user has drawn using Leaflet.draw.Circle?
I have created a basic web map and implemented leaflet.draw functionality to it. What I would like to do is allow anyone that visits the web map to use the draw tools to add a marker (point) and when they add that marker a popup would appear allowing them to fill in per-determined fields that pertain to that point, this data would then be saved to an existing geojson file.
Is there a leaflet plugin / some other js wizardy out there that can make this happen?
leaflet leaflet-draw
add a comment |
I have created a basic web map and implemented leaflet.draw functionality to it. What I would like to do is allow anyone that visits the web map to use the draw tools to add a marker (point) and when they add that marker a popup would appear allowing them to fill in per-determined fields that pertain to that point, this data would then be saved to an existing geojson file.
Is there a leaflet plugin / some other js wizardy out there that can make this happen?
leaflet leaflet-draw
add a comment |
I have created a basic web map and implemented leaflet.draw functionality to it. What I would like to do is allow anyone that visits the web map to use the draw tools to add a marker (point) and when they add that marker a popup would appear allowing them to fill in per-determined fields that pertain to that point, this data would then be saved to an existing geojson file.
Is there a leaflet plugin / some other js wizardy out there that can make this happen?
leaflet leaflet-draw
I have created a basic web map and implemented leaflet.draw functionality to it. What I would like to do is allow anyone that visits the web map to use the draw tools to add a marker (point) and when they add that marker a popup would appear allowing them to fill in per-determined fields that pertain to that point, this data would then be saved to an existing geojson file.
Is there a leaflet plugin / some other js wizardy out there that can make this happen?
leaflet leaflet-draw
leaflet leaflet-draw
edited 2 days ago
PolyGeo♦
53.8k1781245
53.8k1781245
asked 2 days ago
EvanEvan
11
11
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You need to research this better, this question has been asked before. You have two issues, when someone visits your site the data is downloaded to your browser, any edits would be client side and not on the server. If you could write to a file and post it to the server, you would have issues of multiple people editing at once and not being in sync. Just imagine someone deleting all the data and posting the empty file back or posting a file with a virus. This concept is a bad idea.
The preferred way is to have a database on a server that you can update records, this requires the web Database and web Services or REST services to serve the data and your page to display it. You would then use an AJAX call to post your updates to the database. Popular methods would be to use PHP, NODE, Python, or others to create the services you need to communicate with your database.
Instead of a popup you could use a sidebar and have the HTML input and buttons coded to insert the data to a new record. Grab the X,Y coords from the mouse click and you have everything for your database.
This answer is very general but your question was not specific and there was no code to troubleshoot. For now this should help you focus your Google searches.
add a comment |
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "79"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f317249%2fallowing-users-to-add-data-to-marker-that-they-create-on-leaflet-map%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You need to research this better, this question has been asked before. You have two issues, when someone visits your site the data is downloaded to your browser, any edits would be client side and not on the server. If you could write to a file and post it to the server, you would have issues of multiple people editing at once and not being in sync. Just imagine someone deleting all the data and posting the empty file back or posting a file with a virus. This concept is a bad idea.
The preferred way is to have a database on a server that you can update records, this requires the web Database and web Services or REST services to serve the data and your page to display it. You would then use an AJAX call to post your updates to the database. Popular methods would be to use PHP, NODE, Python, or others to create the services you need to communicate with your database.
Instead of a popup you could use a sidebar and have the HTML input and buttons coded to insert the data to a new record. Grab the X,Y coords from the mouse click and you have everything for your database.
This answer is very general but your question was not specific and there was no code to troubleshoot. For now this should help you focus your Google searches.
add a comment |
You need to research this better, this question has been asked before. You have two issues, when someone visits your site the data is downloaded to your browser, any edits would be client side and not on the server. If you could write to a file and post it to the server, you would have issues of multiple people editing at once and not being in sync. Just imagine someone deleting all the data and posting the empty file back or posting a file with a virus. This concept is a bad idea.
The preferred way is to have a database on a server that you can update records, this requires the web Database and web Services or REST services to serve the data and your page to display it. You would then use an AJAX call to post your updates to the database. Popular methods would be to use PHP, NODE, Python, or others to create the services you need to communicate with your database.
Instead of a popup you could use a sidebar and have the HTML input and buttons coded to insert the data to a new record. Grab the X,Y coords from the mouse click and you have everything for your database.
This answer is very general but your question was not specific and there was no code to troubleshoot. For now this should help you focus your Google searches.
add a comment |
You need to research this better, this question has been asked before. You have two issues, when someone visits your site the data is downloaded to your browser, any edits would be client side and not on the server. If you could write to a file and post it to the server, you would have issues of multiple people editing at once and not being in sync. Just imagine someone deleting all the data and posting the empty file back or posting a file with a virus. This concept is a bad idea.
The preferred way is to have a database on a server that you can update records, this requires the web Database and web Services or REST services to serve the data and your page to display it. You would then use an AJAX call to post your updates to the database. Popular methods would be to use PHP, NODE, Python, or others to create the services you need to communicate with your database.
Instead of a popup you could use a sidebar and have the HTML input and buttons coded to insert the data to a new record. Grab the X,Y coords from the mouse click and you have everything for your database.
This answer is very general but your question was not specific and there was no code to troubleshoot. For now this should help you focus your Google searches.
You need to research this better, this question has been asked before. You have two issues, when someone visits your site the data is downloaded to your browser, any edits would be client side and not on the server. If you could write to a file and post it to the server, you would have issues of multiple people editing at once and not being in sync. Just imagine someone deleting all the data and posting the empty file back or posting a file with a virus. This concept is a bad idea.
The preferred way is to have a database on a server that you can update records, this requires the web Database and web Services or REST services to serve the data and your page to display it. You would then use an AJAX call to post your updates to the database. Popular methods would be to use PHP, NODE, Python, or others to create the services you need to communicate with your database.
Instead of a popup you could use a sidebar and have the HTML input and buttons coded to insert the data to a new record. Grab the X,Y coords from the mouse click and you have everything for your database.
This answer is very general but your question was not specific and there was no code to troubleshoot. For now this should help you focus your Google searches.
answered 13 hours ago
Bill ChappellBill Chappell
2,7761816
2,7761816
add a comment |
add a comment |
Thanks for contributing an answer to Geographic Information Systems Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f317249%2fallowing-users-to-add-data-to-marker-that-they-create-on-leaflet-map%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown