摘要: function NavigationTool() { var mode = google.maps.DirectionsTravelMode.DRIVING; //谷歌地图路线指引的模式 var directionsDisplay = new google.maps.DirectionsRenderer(); //地图路线显示对象 var directionsService = new google.maps.DirectionsService(); //地图路线服务对象 var directionsVisible = false; //是否显示路线 directionsDisplay.se 阅读全文
posted @ 2012-05-04 17:48 Sam.山子 阅读(3964) 评论(0) 推荐(0) 编辑
摘要: var bounds = new google.maps.LatLngBounds();var i;// The Bermuda Trianglevar polygonCoords = [ new google.maps.LatLng(25.774252, -80.190262), new google.maps.LatLng(18.466465, -66.118292), new google.maps.LatLng(32.321384, -64.757370), new google.maps.LatLng(25.774252, -80.190262)];for (i = 0; i... 阅读全文
posted @ 2012-05-04 15:23 Sam.山子 阅读(2239) 评论(0) 推荐(0) 编辑