body {
  margin: 0;
}

html, body {
  height: 100%;
  width: 100%;
  margin: 0;
}

#mapdiv {
  width: 100%;
  height: 100%;
}

Set height of document to work with doctype
Set height of document to work with doctype
