Hi,
I'm trying to make a basic Google Maps component. I put the link to the Google Maps source in the head section of my component and I can see that it gets placed in the head section of the Montage "page". I put the map initialization code inside the component section of the component's body.
But when the app loads I get an error in the console:
[Error] TypeError: 'undefined' is not an object (evaluating 'google.maps.event.addDomListener')
global code (localhost, line 20)
replaceChild
value
_prepareForDraw
value
value
_drawIfNeeded
_drawIfNeeded
_drawIfNeeded
_drawIfNeeded
drawIfNeeded
_drawTree
It seems that for some reason the Google Maps script never gets executed.
Any idea on how I can fix this?
Thank in advance.