Google Maps v3路线显示呈现HTML [英] Google Maps v3 Directions Display Render 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屋!