I was looking for an easy way out without having to code :) but I have
another option. If I have a kml file, and all I want to do is to
display this kml file in the browser, what's the easiest way to do
that? I have the code that was given to me when I created the key but
I don't know where to insert my kml link and I'm not sure what would
go in the map.setCenter function. I simply want to display the map as
it is in my kml file.
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/
>
<title>Google Maps JavaScript API Example</title>
<script src="
http://maps.google.com/maps?
file=api&v=2&key=ABQIAAAAn2B6HPD0o-
E4L3MciIfY0xSbKo3LndDMr0p4YoX_Y6MrPXQz-xSovOXWk4amiQdWfADt103XX6L1eQ"
type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
function load() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
}
}
//]]>
</script>
</head>
<body onload="load()" onunload="GUnload()">
<div id="map" style="width: 500px; height: 300px"></div>
</body>
</html>