我有这样的代码:
var directionsService = new google.maps.DirectionsService();
var directionsDisplay = new google.maps.DirectionsRenderer({ 'map': map });
var request = {
origin:'42.0045384 21.4112488',
destination:'41.997056 21.435871',
travelMode: google.maps.TravelMode.DRIVI
我想让用户介绍坐标自己(或她自己)。以下代码起作用:
<head>
<script src="http://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false" type="text/javascript"></script>
<script type="text/javascript" >
var geocoder;
var map;
function paintCoordsInMap()