久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <legend id='deoYA'><style id='deoYA'><dir id='deoYA'><q id='deoYA'></q></dir></style></legend>

  • <i id='deoYA'><tr id='deoYA'><dt id='deoYA'><q id='deoYA'><span id='deoYA'><b id='deoYA'><form id='deoYA'><ins id='deoYA'></ins><ul id='deoYA'></ul><sub id='deoYA'></sub></form><legend id='deoYA'></legend><bdo id='deoYA'><pre id='deoYA'><center id='deoYA'></center></pre></bdo></b><th id='deoYA'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='deoYA'><tfoot id='deoYA'></tfoot><dl id='deoYA'><fieldset id='deoYA'></fieldset></dl></div>

  • <tfoot id='deoYA'></tfoot>

    <small id='deoYA'></small><noframes id='deoYA'>

          <bdo id='deoYA'></bdo><ul id='deoYA'></ul>

        如何將 html 標題(工具提示)添加到 leaflet.js 多邊形

        how to add a html title (tooltip) to a leaflet.js polygon?(如何將 html 標題(工具提示)添加到 leaflet.js 多邊形?)
          <tbody id='vGUV3'></tbody>

          • <bdo id='vGUV3'></bdo><ul id='vGUV3'></ul>

              <small id='vGUV3'></small><noframes id='vGUV3'>

              <tfoot id='vGUV3'></tfoot>
            • <i id='vGUV3'><tr id='vGUV3'><dt id='vGUV3'><q id='vGUV3'><span id='vGUV3'><b id='vGUV3'><form id='vGUV3'><ins id='vGUV3'></ins><ul id='vGUV3'></ul><sub id='vGUV3'></sub></form><legend id='vGUV3'></legend><bdo id='vGUV3'><pre id='vGUV3'><center id='vGUV3'></center></pre></bdo></b><th id='vGUV3'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='vGUV3'><tfoot id='vGUV3'></tfoot><dl id='vGUV3'><fieldset id='vGUV3'></fieldset></dl></div>

              <legend id='vGUV3'><style id='vGUV3'><dir id='vGUV3'><q id='vGUV3'></q></dir></style></legend>
                  本文介紹了如何將 html 標題(工具提示)添加到 leaflet.js 多邊形?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我有一個 leaflet 地圖,我想為我的多邊形添加一個 html 標題(工具提示).如果我使用純 JQuery:

                  I have a leaflet map and I would like to add a html title (tooltip) to my polygon. If I use plain JQuery:

                  $('<title>my tooltip</title>').appendTo()
                  

                  標題被添加到 DOM 但不可見.請參閱此處了解更多詳細信息,但如果我遵循該解決方案,我可以不再使用傳單功能.

                  The title gets added to the DOM but is not visible. See here for more details but if I follow that solution, I can no longer use the leaflet features.

                  我也嘗試了 leaflet.label 插件,但標簽會隨著鼠標指針移動.我只想要在懸停后不久出現在一個位置的標準瀏覽器標題工具提示)

                  I also tried the leaflet.label plugin but the label moves around with the mouse pointer. I just want the standard browser title tooltip that appears in one position shortly after on hover)

                  感謝您的幫助

                  推薦答案

                  Leaflet 1.0.0 有一個新的內置 L.tooltip 類,棄用 Leaflet.label 插件.工具提示指向形狀中心,不隨鼠標移動.

                  Leaflet 1.0.0 has a new built-in L.tooltip class that deprecates the Leaflet.label plugin. The tooltip points at the shape center and does not move with the mouse.

                  L.polygon(coords).bindTooltip("my tooltip").addTo(map);
                  

                  演示:https://jsfiddle.net/3v7hd2vx/91/

                  要解決 OP 關于在多邊形中心顯示工具提示的評論,當多邊形很大并且當前縮放很高時可能會看不見,您可以使用 sticky 選項:

                  To address OP's comment about tooltip being displayed at the polygon center, which can be out of view when the polygon is very big and current zoom is high, you can use the sticky option:

                  L.polygon(coords).bindTooltip("my tooltip", {
                    sticky: true // If true, the tooltip will follow the mouse instead of being fixed at the feature center.
                  }).addTo(map);
                  

                  更新的演示:https://jsfiddle.net/3v7hd2vx/402/

                  這篇關于如何將 html 標題(工具提示)添加到 leaflet.js 多邊形?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Check if a polygon point is inside another in leaflet(檢查一個多邊形點是否在傳單中的另一個內部)
                  Changing leaflet markercluster icon color, inheriting the rest of the default CSS properties(更改傳單標記群集圖標顏色,繼承其余默認 CSS 屬性)
                  Trigger click on leaflet marker(觸發點擊傳單標記)
                  How can I change the default loading tile color in LeafletJS?(如何更改 LeafletJS 中的默認加載磁貼顏色?)
                  Adding Leaflet layer control to sidebar(將 Leaflet 圖層控件添加到側邊欄)
                  Leaflet - get latitude and longitude of a marker inside a pop-up(Leaflet - 在彈出窗口中獲取標記的緯度和經度)
                  <i id='xSBxT'><tr id='xSBxT'><dt id='xSBxT'><q id='xSBxT'><span id='xSBxT'><b id='xSBxT'><form id='xSBxT'><ins id='xSBxT'></ins><ul id='xSBxT'></ul><sub id='xSBxT'></sub></form><legend id='xSBxT'></legend><bdo id='xSBxT'><pre id='xSBxT'><center id='xSBxT'></center></pre></bdo></b><th id='xSBxT'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='xSBxT'><tfoot id='xSBxT'></tfoot><dl id='xSBxT'><fieldset id='xSBxT'></fieldset></dl></div>
                    <tbody id='xSBxT'></tbody>

                          <tfoot id='xSBxT'></tfoot>

                        • <small id='xSBxT'></small><noframes id='xSBxT'>

                          <legend id='xSBxT'><style id='xSBxT'><dir id='xSBxT'><q id='xSBxT'></q></dir></style></legend>
                          • <bdo id='xSBxT'></bdo><ul id='xSBxT'></ul>
                          • 主站蜘蛛池模板: 亚洲视频免费在线播放 | 亚洲一区二区 | 一a一片一级一片啪啪 | 国产精品久久久久久久久久久免费看 | 91欧美激情一区二区三区成人 | 国产综合一区二区 | 精品国产乱码久久久久久88av | 九九九久久国产免费 | 欧美日韩不卡 | 欧美一区二区三区大片 | 久久久这里都是精品 | 一区二区在线不卡 | 欧美国产中文 | 日本中文字幕一区 | 看一级毛片视频 | 日韩欧美中文在线 | 国产成人精品a视频一区www | 看a级黄色毛片 | 久草在线青青草 | 欧美精品 在线观看 | 超碰免费在线观看 | 精品国产一区二区国模嫣然 | 中文成人在线 | 欧美在线观看一区 | 久久精品a级毛片 | 国产精品亚洲片在线播放 | 亚洲91 | 精品日韩一区二区 | 涩涩视频网站在线观看 | 五月激情综合网 | 人人爽人人爽人人片av | 91久久伊人 | 国产精品免费在线 | 中文字幕在线精品 | 国产激情一区二区三区 | 欧美二区在线 | 97精品一区二区 | 日韩在线综合网 | 色网在线看 | 国产一区三区视频 | 欧美一级做性受免费大片免费 |