title: error:InvalidValueError: setCenter: not a LatLng or LatLngLiteral: in property lat: not a number
body: <pre><code>function initAutocomplete() {
      var lat=document.getElementById('lat').value;
      var lng=document.getElementById('lng').value;
      console.log(lat);
      console.log(lng);
  
  
      var map = new google.maps.Map(document.getElementById('map'), {
        center: {lat:lat, lng:lng},
        zoom: 13,
        mapTypeId: 'roadmap'
      });}
  </code></pre>
  
  <p>it gives me the following error : </p>
  
  <blockquote>
    <p>error:InvalidValueError: setCenter: not a LatLng or LatLngLiteral: in
    property lat: not a number</p>
  </blockquote>