So I am building a HTML page, in which i need a Google Map and a simple form which consists of two fields latitude and longitude.
You can use api documentation of google maps
https://developers.google.com/maps/documentation/javascript/reference#Map
In your condition you should use set map method: