Im playing around with Django/GeoDjango (and leaflet maps) but my lack of experience in Javascript/AJAX makes me want to check with you guys on this.
Say I want to add a marker with a position and some other information fields (and save it as a new Django model intance).
I want to click on the map, put a marker on the position, and open a form in a modal. Which then already has the position data from the map click. And some empty fields. And if a click a new place it updates itself.
- Should I bind a modal to the map click and then fill in the pointfield in a "hidden" field of some kind?
- Or "POST" the click-point-data to a django-view that catches the point and somehow sends back the form with this point-field filled in?
- Alternative solutions?
Im interested in your opinion on the best way construct this?