27. Mai 2010 11:10
28. Mai 2010 07:43
28. Mai 2010 11:18
<html>
<head>
<title>Test</title>
<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAIBlfPcR43RwgLRxQKjAy2xRzxUU7HWfUhvWvbguoaaquJfPF1RQR1WAEgPwjeFfjvNmou0qqiz48MA" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
var map;
var directions;
function load() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map"));
directions = new GDirections(map, document.getElementById("directions")); //map, document.getElementById("directions")
setDirections("Paderborn, Haidhügel 15", "Paderborn, Detmolder Straße");
//Hier Ausgabe veranlassen
GEvent.addListener(directions, "load", function() {
alert( directions.getDistance().meters); //object->meters
});
}
}
function setDirections(fromAddress, toAddress) {
directions.load("from: " + fromAddress + " to: " + toAddress);
}
//]]>
</script>
</head>
<body onload="load()" onunload="GUnload()">
<div id="map"></div>
<div id="directions"></div>
</body>
</html>
var url = "http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAIBlfPcR43RwgLRxQKjAy2xRzxUU7HWfUhvWvbguoaaquJfPF1RQR1WAEgPwjeFfjvNmou0qqiz48MA";
var scriptElement = document.createElement("<script src'" + url + "' language='javascript'>");
document.getElementsByTagName("head")[0].insertAdjacentElement("beforeEnd",scriptElement);
var map;
var directions;
map = new GMap2(null);
directions = new GDirections(null);
setDirections("Paderborn, Haidhügel 15", "Paderborn, Detmolder Straße");
GEvent.addListener(directions, "load", function() {
alert( directions.getDistance().meters);
});
31. Mai 2010 16:12
1. Juni 2010 17:21
2. Juni 2010 07:53