I am new in Google map and I need to save the Google Map view into database (long + lat +zoom).
I know MVC but I don’t know how to get Google Map view information (long + Lat +zoom) when it is shown on a view.
Also when I am retrieving data from database, how can I change the view of Google Map in a razor view?
Any help, including some reference to read is very appreciated.
One way that I am thinking of doing this, is to create three hidden inputs that their value is changes when user play with map and changing Google Map view. But I don’t know how to do this using JS and Google Map.
Let’s say you have model Map in your code, smth like:
Place Google Maps script in your view: