I am trying to implement google maps in an application where I specify height and width wrt to percentage. In chrome and firefox it's working but when I try the same in IE the map area is grey. Can some one suggest how can I fix it.
<!DOCTYPE html>
<html>
<body>
<h1>My First Google Map</h1>
<div id="googleMap" style="width:100%;height:500%"></div>
<script>
function myMap() {
var mapProp= {
center:new google.maps.LatLng(51.508742,-0.120850),
zoom:5,
};
var map=new google.maps.Map(document.getElementById("googleMap"),mapProp);
}
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=api_key&callback=myMap"></script>
</body>
</html>