如何永久显示标记标签? [英] How to show marker labels permanently?

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

问题描述

在jVectorMap中,我试图找到一种解决方案来永久显示标记标签,但是我做不到.我也没有在文档中找到任何有关它的信息.

In jVectorMap, I tried to find a solution to show the marker labels permanently, but I couldn't make it. I also didn't find anything about it in the documentation.

我只希望最初显示标记标签.有什么建议吗?

I just want the marker labels initially shown. Any suggestions?

推荐答案

没有一种快速或简单的方法.

There isn't a quick or simple one.

jVectorMap显示标签的方式是通过使用div和地图对象的标签属性/对象来更改其位置和文本.

The way jVectorMap displays labels is by using a div and a label property/object for the map object, which changes its position and text.

如果要使用静态永久标签,则必须构造并定位并从头开始显示它们,也可以克隆标签对象并将show()设置为默认值.另外,您还必须找出鼠标悬停在地图上的重叠标签的冲突.

If you want static permanent labels you'll have to construct and position and show them from scratch or you could clone the label object and set show() to be the default. Also, you'd have to code out the conflict of overlapping labels on mouse over map.

这篇关于如何永久显示标记标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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