src/js/app.js
// Creates the map and sets a comfortable center point
Creates the map and sets a comfortable center point
Creates the map and sets a comfortable center point
function initMap(){
  map = new google.maps.Map(document.getElementById("map"), {
  disableDefaultUI: true});
  window.mapBounds = new google.maps.LatLngBounds();
  var infoWindow = new google.maps.InfoWindow();
  google.maps.event.addDomListener(window, "resize", function() {
    map.fitBounds(mapBounds);
  });
  ko.applyBindings(new listViewModel());
}
function initMap ( ) { map = new google . maps . Map ( document . getElementById ( "map" ) , { disableDefaultUI : true } ) ; window . mapBounds = new google . maps . LatLngBounds ( ) ; var infoWindow = new google . maps . InfoWindow ( ) ; google . maps . event . addDomListener ( window , "resize" , function ( ) { map . fitBounds ( mapBounds ) ; } ) ; ko . applyBindings ( new listViewModel ( ) ) ; }
Creates the map and sets a comfortable center point
Creates the map and sets a comfortable center point
//event listener to handle window resize