Hi, I'm using some simple direction to public a map location but is not working. I took that from an exercise of the book professional Ajax second edition chapter 10. Could somebody help me to find the error, I'll really appreciate it. This is the code:
<script type="text/javascript"
src="https://maps.googleapis.com/maps/api/
js?key={mygMapKey}">
</script>
<script type="text/javascript">
var oMap = new GMap2(document.getElementById("map-canvas"));
oMap.setCenter(new GLatLng(18.491666,-69.872360),8);
oMap.openInfoWindow(oMap.getCenter(),
document.createTextNode("Center of the Map"));
</script>