久久久久久久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>
                          • 主站蜘蛛池模板: 国产免费小视频 | www.中文字幕.com| 青青草手机在线视频 | 中文有码在线观看 | 日韩新片王网 | www.日本高清| 国产精品免费看 | 另类ts人妖一区二区三区 | 中文字字幕 | 日本国产在线观看 | 黄色av免费观看 | 日韩黄色一级视频 | 在线视频日本 | 天天干天天干 | 国产乱码久久久久久 | 欧美顶级黄色大片免费 | 午夜免费观看视频 | 日本在线看 | 日韩国产在线播放 | 亚洲视频在线免费观看 | 伊人久久网站 | 色综合天天综合网天天狠天天 | 懂色av一区二区三区 | 国产伦精品一区二区三区88av | 亚洲三级在线 | 日韩中文字幕视频 | 特黄av| 成人动漫在线看 | 中文字幕在线观看免费视频 | 国产日韩视频 | 成人免费在线播放 | 91久久久久国产一区二区 | 国产午夜在线 | 欧洲精品一区二区 | 黄色一区二区三区 | 成年人黄色 | 日韩精品一区在线观看 | 国产乱淫片视频 | 国产精品久久一区 | 国产中文字幕在线观看 | 亚洲观看黄色网 |