Display Text Label Along a Polyline

为君一笑 提交于 2019-12-21 06:30:04

问题


I am wondering how one might add text that outputs along the edge of a polyline in Google Maps. I can't find any documentation on how to do this, yet have seen it done before.

Also the new Google Maps ski runs have this text affect! example: http://goo.gl/maps/pbokL

Currently I use the MarkerWithLabel libary to add rectangular labels to the start of a polyline. http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerwithlabel/1.1.8/docs/reference.html This library doesn't have the functionality I seek.


回答1:


You could try: ELabel.js for Google Maps API V3 https://github.com/erunyon/ELabel



来源:https://stackoverflow.com/questions/16089543/display-text-label-along-a-polyline

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!