var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(52.524950, 13.370082), 13);
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.setMapType(G_SATELLITE_MAP);
I finally got the hang of it. Now you should be able to embed it at will.
Although there is a little troublesome thing. The reason is that you have to use html tags for line breaks and paragraphs. If you don’t, the script won’t work. But thanks to this, I’ve come to understand very well how JavaScript, Ajax, and Google MAP API work.
Now, let’s get down to business, the Google Earth API.