i'm trying to load a google map api with angular. And, i have some problem while loading this one.
Just did everything like they say in the documentation :
function initialize() {
var latlng = new google.maps.LatLng(-34.397, 150.644);
var myOptions = {
zoom: 8,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(window.document.getElementById("map-canvas"), myOptions);
}
google.maps.event.addDomListener(window, "load", initialize);
and in my body :
<body>
<div id="map-canvas"></div>
</body>
But, when refreshing my page I got this error (which is a little bit difficult to understand) :
Uncaught TypeError: Cannot read property 'undefined_changed' of undefined
Does anyone have an idea about what is wrong?
Thanks !