I did one not long ago... and remember having to strip down the info required - all I did was settle for a latitude and longitude - so my final code looked like this:
Code:
<script type="text/javascript">
//<![CDATA[
function load() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(-28.167140,153.538000, 0.010510,0.000000), 16);
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
map.openInfoWindow(map.getCenter(),
}
}
//]]>
</script>
The only setting I really need is this one
Code:
map.setCenter(new GLatLng(-28.167140,153.538000, 0.010510,0.000000), 16);
which sets the zoom and area I want in the center of the map - the rest is all the various controllers you can add.
So I think if you just look for one setting in your KML and go from there, you should be OK
Bookmarks