title: Generate Google Maps with dynamic values of latitude and longitude in javaScript
body: <p>I am gone through many tutorials and the Google Developer site, but everywhere the way to create Google Maps with a particular latitude/longitude are given.e.g.</p>
  
  <pre><code>function initialize() {
      var mapOptions = {
          center: {
              lat: -34.397,
              lng: 150.644
          },
          zoom: 8
      };
      var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);
  }
  
  google.maps.event.addDomListener(window, 'load', initialize);
  </code></pre>
  
  <p>Does anyone know the JavaScript code to create the map based on dynamic values lat/long? I mean not specific values like -34.397 etc. To the function initialize I will pass the latitude and longitude arguments and generate the map. Can anyone please tell me how to do it? </p>