View Single Post
Posts: 46 | Thanked: 10 times | Joined on Dec 2009
#4
Here, paste this into "notepad" and save as html. save it to N900, open it, bookmark it.

<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Nearest</title>
<script

src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false&amp;key=ABQ IAAAA2_XlMaQ_

vN8gWHQHUb7IwBTKJgbGsdywBV3SqyDqCfcwZ_7XPxQf5WhcFR imOwzsHvDwrNZOfnwoEw"
type="text/javascript"></script>
<script type="text/javascript">
var map;
var geoXml;

function initialize() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(48.400958, 9.994667), 12);
geoXml = new GGeoXml("http://d9t.de/nearest/kml");
map.addOverlay(geoXml);
var customUI = map.getDefaultUI();
customUI.controls.smallzoomcontrol3d = false;
customUI.controls.largemapcontrol3d = true;
customUI.zoom.scrollwheel = true;
customUI.controls.maptypecontrol = false;
customUI.controls.menumaptypecontrol = true;
map.setUI(customUI);
}
}

</script>
</head>

<body style="margin:0px; padding:0px;" onload="initialize()">
<div id="map_canvas" style="width:100%; height:100%"></div>
</body>
</html>
you can change this to link to any kml file on the net. just change the title, link to the kml, and the starting lat/long/zoom level.

Last edited by MaltedVomit; 2010-07-06 at 17:29.
 

The Following User Says Thank You to MaltedVomit For This Useful Post: