我在數據庫中有緯度和經度,我想在ASP.NET中使用Bing或Google Maps繪製路線。任何人都可以引導我走向一些示例或網頁鏈接,以瞭解如何做到這一點?Bing或Google MAPS繪製路線
0
A
回答
1
0
繪製一個折線(連接可以通過緯度和經度所定義的幾個點簡單的線),見折線對象上的引用: https://developers.google.com/maps/documentation/javascript/reference#Polyline
在documentation,也有一個example
相關問題
- 1. Google Maps API:使用多段線的點繪製路線
- 2. 用google maps api同時繪製兩條路線
- 3. 無法爲android v2的google maps api繪製正確的路線
- 4. Google Maps V3會一直繪製相同的路線嗎?
- 5. 在GMSMapView(Google Maps iOS SDK)上繪製路線
- 6. 繪製2個位置之間的路線Google Maps API Android V2
- 7. 移動標記時重新繪製Google Maps API路線?
- 8. 如何使用bing maps api繪製道路?
- 9. React-google-maps渲染路線
- 10. Google Maps API最快路線
- 11. 用Google Maps繪製「走廊」
- 12. 在Google地圖上繪製路線
- 13. Google API指令 - 繪製路線無效
- 14. Android,Google地圖上的繪製路線
- 15. 繪製巴士路線到Google地圖
- 16. 如何使用Google Maps Waypoint重繪路線
- 17. 如何從我的位置在Google Maps API V2中繪製路線
- 18. 在WP7上與Bing地圖繪製路線
- 19. 只在繪製的Cricle或周界內繪製標記Google Maps v2 Android
- 20. Google Maps API v3多段線沒有繪製
- 21. 我可以在Google Maps Android中繪製彎曲的虛線嗎?
- 22. Google maps api v2獲取路線
- 23. Google Maps SDK不返回路線
- 24. 路線沒有顯示Google Maps API V3
- 25. Google Maps API v3中的路線距離
- 26. JavaScript - Google Maps API:調整路線距離
- 27. 在Google Maps API V3中繪製標記
- 28. java.util.ConcurrentModificationException繪製路線
- 29. Google Maps API與Multimap/Bing地圖API
- 30. Google Maps API路線沿路線的白色瓷磚
你有多少個座標?你有完整的路線還是隻有航點?如果你有完整的路線你想使用折線,如果只是航點,你需要一個方向服務。 – geocodezip 2012-07-16 12:07:14
我有10行(經度和經度對),它們是有序的,我想從第一點(第一行:緯度,經度)到下一點(第二行:經度,緯度)畫一條線.... .last點(第10行:經度,緯度)。可能嗎? – 2012-07-16 12:22:51
是的,這是可能的(至少在Google Maps API中)。但是,你想讓「路線」沿着道路走,還是要「像烏鴉一樣」直線? – geocodezip 2012-07-16 12:30:11