How to show marker labels permanently?

前端 未结 1 1510
清歌不尽
清歌不尽 2021-01-27 19:40

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 j

相关标签:
1条回答
  • 2021-01-27 20:26

    There isn't a quick or simple one.

    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.

    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.

    0 讨论(0)
提交回复
热议问题