Google Maps v3路线显示呈现HTML [英] Google Maps v3 Directions Display Render HTML

查看:127
本文介绍了Google Maps v3路线显示呈现HTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

路线显示类中是否有方法来呈现路线腿步骤中提供的HTML?有方向Display.setDirections在地图上绘制标记和多段线,但我希望有一些东西能让我看到HTML。这是在API中,我错过了它,或谷歌希望开发人员自己迭代步骤? 这是你在找什么?



http://code.google.com/apis/maps/documentation/javascript/examples/directions-panel.html


Is there a method in the Directions Display class to render the HTML provided in the routes' legs' steps? There's directionsDisplay.setDirections that plots the markers and polyline on the map, but I was hoping for something that would give me the HTML all pretty like. Is this in the API and I'm missing it, or does Google expect the developer to iterate the steps themselves?

解决方案

Is this what you're looking for?

http://code.google.com/apis/maps/documentation/javascript/examples/directions-panel.html

这篇关于Google Maps v3路线显示呈现HTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆