问题描述
有什么方法可以突出显示在Google / Bing /(任何其他地图提供商)地图整条街道上(从街道开始到结束)?
我知道Google Maps API中存在 Polyline ,但它只是连接两个纬度点,并且没有办法使其自动显示,因此我可以显示任何街道在一些城市。
我也在考虑路线,但许多街道都是2路,没有保证你会标记整个街道,它现在只是用户友好的。
Is there any way to highlight/display on Google/Bing/(any other map provider) Maps whole street (from the beginning of the street to the end of)?
I know the existence of Polyline in Google Maps API, but it's just connecting two latitude points, and there is no way of making it automatic so I could display any street in some city.
Also I was thinking about Directions, but many street are 2 way, there is no guarante that you will mark whole street and it's just now user friendly. Example
You may want to check Mike Williams' article on how to snap points and polylines to streets with the Google Maps API:
Especially this example:
这篇关于用一些地图API突出显示整条街道的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!