Open map centered on US

by b9chris

HTML

<script src="https://maps.googleapis.com/maps/api/js"></script>
<div id=map>hi</div>

CSS

html { height: 100%; }
body {
    padding: 0;
    margin: 0;
    height: 100%;
}
#map {
    width: 100%; height: 100%;
}

JavaScript

var mapOptions = {
    center: new google.maps.LatLng(39, -95),
    zoom: 3
};
var map = new google.maps.Map(document.getElementById("map"), mapOptions);