开发者

Google Maps V3: Markers only on streets?

User should be able to place markers on a google map but only on stree开发者_开发问答ts. Is this possible?


Google is your friend:

http://econym.org.uk/gmap/snap.htm

The basics of the solution is to ask for directions from the marker to itself. Google will return directions via streets, which will happen to be a single point on the nearest street.

Update the marker location accordingly.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜