我正在使用角度 JS 和 ng-map。是否可以通过使用 map.directionsRenderers[0].directions.routes[0].overview_path 来获取距离
问问题
275 次
1 回答
-1
您可以使用此代码来获取距离。
<p>APPROX DISTANCES: {{map.directionsRenderers[0].directions.routes[0].legs[0].distance.text}}</p>
要了解更多信息,请点击以下链接: https ://developers.google.com/maps/documentation/javascript/examples/directions-simple
于 2016-11-02T09:58:08.607 回答