This question already has an answer here:

I have put a map on website using OpenLayers. This map is fetched from geoserver by using wms request. and in the same way, it is drawn some shapes such as point, line etc. using open layers library in this simple project.

My Spatial data(tables) is held on Oracle spatial database. as I mentioned above, these tables are served by geoserver to the web page and are mapped using open layers library.

How can I save new changes on map to related to Database Table When I draw a new shape on this map?

unchanged image(which is fetched via geoserver)

changed image(some shapes is drawn on map that is called changed image)

When it has occurred changes, the second image was created.

marked as duplicate by Ian Turton Nov 29 '17 at 13:07

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.