Saving a value from Javascript on Drupal form submit
Is this map that you created already in place? Were/are you utilizing it on the user's edit info page or somewhere else on the site? 

You may want to consider instead using something like Geofield: https://www.drupal.org/project/geofield 

This would allow user map input (on an OpenLayers map) via a new field that you can attach to the User entity (or any fieldable entity) and would collect the data into a "Drupal" way, freeing you up to focus on how to display the information, as opposed to doing a custom POST action using JS to your Drupal site, which could be time-consuming.

If you are looking to do this in JavaScript, you may want to consider the Services module, which would allow you to access your site's CRUD actions, therefore editing the information on a User's profile, but this means that you'd have to have to include a field to collect this information on the User entity anyways, at which point having a Geofield may be useful to you.