沿着折线显示文本标签 [英] Display Text Label Along a Polyline

查看:98
本文介绍了沿着折线显示文本标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何在Google地图中添加沿着折线边缘输出的文字。我找不到任何关于如何做到这一点的文档,但之前已经看到它。

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.

新的Google地图滑雪广告也会影响到这段文字!
例如: http://goo.gl/maps/pbokL

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

目前,我使用MarkerWithLabel库文件将矩形标签添加到多段线的起点。 http:// google -maps-utility-library-v3.googlecode.com/svn/tags/markerwithlabel/1.1.8/docs/reference.html
该库没有我寻求的功能。

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.

推荐答案

您可以尝试:ELabel.js for Google Maps API V3
https://github.com/erunyon/ELabel

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

这篇关于沿着折线显示文本标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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