html,
body {
    height: 100%;
    margin: 0;
}
#map {
    height: 500px;
    width: 100%;
}