I've just noticed Google Maps
isn't working in IE 11
, but works completely fine in Chrome
and Firefox
. Is there something obvious that I overlooked to get it to work? You can check for a live version here: link
function initialize() {
var myLatlng = new google.maps.LatLng(51.035113, 3.715104);
var mapOptions = {
zoom: 15,
center: myLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
var map = new google.maps.Map(document.getElementById("map-canvas"), mapOptions);
var marker = new google.maps.Marker({
position: myLatlng,
icon: "img/marker.png"
});
marker.setMap(map);
}
google.maps.event.addDomListener(window, 'load', initialize);
HTML
<div id="map-canvas"></div>