I'm trying to create a web mapping application that lets users submit data from a map interface to a database existing server-side. I'm wondering if anyone could guide me through the basic design of this client-server architecture. I'm a relative beginner to full-stack web GIS development, so any help is appreciated!
What am I trying to do?
I want to build a webmap that allows the user to do these tasks:
1) draw polygons on the map to choose areas
2) fill out a form on the side panel related to the polygon that was created. User inputs information into form and submits it.
When the form is submitted, the polygon data is automatically submitted with it. This data is then recorded into a table in database existing on a server.
I would also like to retrieve this data from the database and put it back on the map for a separate part of the application.
What ideas do I have so far?
Or is there a way to utilize some tool like GeoServer for this, and not go the GeoJSON route?
And after this step, how do I submit this form and polygon data to the Postgres database? I was thinking of using PHP and PDO
Any ideas or tips on how to go about designing this app?