问题
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