用一些地图API突出显示整条街道

用一些地图API突出显示整条街道

本文介绍了用一些地图API突出显示整条街道的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以突出显示在Google / Bing /(任何其他地图提供商)地图整条街道上(从街道开始到结束)?



我知道Google Maps API中存在 Polyline ,但它只是连接两个纬度点,并且没有办法使其自动显示,因此我可以显示任何街道在一些城市。



我也在考虑路线,但许多街道都是2路,没有保证你会标记整个街道,它现在只是用户友好的。

您可能想要查看迈克威廉姆斯的文章,了解如何使用Google Maps API将点和多义线折叠到街道上:




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突出显示整条街道的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 15:01