Was muss ich denn in meinem Javascript verändern um ne straßenanbindung zu erstellen?
mein Javascript:
//<![CDATA[
//globals
var bounds = new GLatLngBounds();
function initMap() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById(„map“));
var title = „&:stuck_out_tongue_winking_eye:2_CUST_STREET_ADDRESS1.“;
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
var point = new GLatLng(&:stuck_out_tongue_winking_eye:1_LOCATION.);
var point = new GLatLng($v(‚P2_LATITUDE‘),$v(‚P2_LONGTITUDE‘));
bounds.extend(point);
map.setCenter(point);
map.setZoom(map.getBoundsZoomLevel(bounds)-4);
var marker = new GMarker(point);
map.addOverlay(marker);
marker.openInfoWindowHtml(’<div class=„tiny“>’ +
title.replace(/~/g,"<br />") + ‚</div>‘);
}
}
//]]>
var map;
var directionsPanel;
var directions;
function initialize() {
map = new GMap2(document.getElementById(„map_canvas“));
map.setCenter(new GLatLng(42.351505,-71.094455), 15);
directionsPanel = document.getElementById(„route“);
directions = new GDirections(map, directionsPanel);
directions.load(„from: 500 Memorial Drive, Cambridge, MA to: 4 Yawkey Way, Boston, MA 02215 (Fenway Park)“);
}