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

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

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

    <tfoot id='nsOIO'></tfoot>
  • <legend id='nsOIO'><style id='nsOIO'><dir id='nsOIO'><q id='nsOIO'></q></dir></style></legend>
      <bdo id='nsOIO'></bdo><ul id='nsOIO'></ul>

        在 MouseOver 事件上調用 Leaflet Mouseout

        Leaflet Mouseout called on MouseOver event(在 MouseOver 事件上調用 Leaflet Mouseout)
        <tfoot id='vkoCe'></tfoot>
          <tbody id='vkoCe'></tbody>

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

          • <bdo id='vkoCe'></bdo><ul id='vkoCe'></ul>
            <legend id='vkoCe'><style id='vkoCe'><dir id='vkoCe'><q id='vkoCe'></q></dir></style></legend>
            <i id='vkoCe'><tr id='vkoCe'><dt id='vkoCe'><q id='vkoCe'><span id='vkoCe'><b id='vkoCe'><form id='vkoCe'><ins id='vkoCe'></ins><ul id='vkoCe'></ul><sub id='vkoCe'></sub></form><legend id='vkoCe'></legend><bdo id='vkoCe'><pre id='vkoCe'><center id='vkoCe'></center></pre></bdo></b><th id='vkoCe'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='vkoCe'><tfoot id='vkoCe'></tfoot><dl id='vkoCe'><fieldset id='vkoCe'></fieldset></dl></div>
                  本文介紹了在 MouseOver 事件上調用 Leaflet Mouseout的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我有一張傳單地圖,我在其中動態添加標記.

                  I have a leaflet map where I'm dynamically adding markers.

                  當我將鼠標懸停在標記上時以及單擊標記時,我想調用它的彈出窗口.

                  I want to call the popup for a marker when I hover over it in addition to when I click the marker.

                  我的代碼是:

                  function makeMarker(){
                     var Marker = L.marker...
                     Marker.on('mouseover', function(){Marker.bindPopup('HI').openPopup();});
                  
                     Marker.on('mouseout', function(){Marker.closePopup();});
                  }
                  

                  如果我注釋掉 mouseout 行,則會出現彈出窗口,但我必須單擊 elswhere 將其關閉.問題是當我將鼠標移出時,光標在光標懸停在標記上時有點閃爍,沒有任何顯示.我認為彈出窗口正在打開但關閉速度非???,這就是光標閃爍的原因,但我不知道如何解決這個問題

                  If I comment out the mouseout line, then the popup appears but then I have to click elswhere to close it. The problem is when I put in the mouseout, at that point, the cursor kinda flickers when it hovers over the marker and nothing shows. I think that the popup is openning but then closing really fast which is why the cursor flickers but I don't know how to fix this

                  推薦答案

                  彈出窗口實際上是在光標下方加載并從 Marker 中竊取"鼠標,觸發 Marker.mouseout() 事件,從而導致彈出窗口關閉并重新觸發 Marker.mouseover() 事件...循環繼續,這就是您看到閃爍"的原因.

                  The popup is actually loading underneath the cursor and 'stealing' the mouse from the Marker, triggering the Marker.mouseout() event, which causes the popup to close and re-triggers the Marker.mouseover() event... and the cycle continues which is why you see the 'flicker'.

                  我已經看到這種情況取決于縮放級別(通常在縮小時).

                  I have seen this happen depending on the zoom level (usually when zoomed right out).

                  嘗試在彈出選項中添加偏移量以使其不礙事:

                  Try adding an offset into your popup options to get it out of the way:

                  function makeMarker(){
                     var Marker = L.marker...
                     Marker.on('mouseover', function(){Marker.bindPopup('HI', {'offset': L.point(0,-50)}).openPopup();});
                  
                     Marker.on('mouseout', function(){Marker.closePopup();});
                  }
                  

                  這篇關于在 MouseOver 事件上調用 Leaflet Mouseout的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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='QI8N1'><tr id='QI8N1'><dt id='QI8N1'><q id='QI8N1'><span id='QI8N1'><b id='QI8N1'><form id='QI8N1'><ins id='QI8N1'></ins><ul id='QI8N1'></ul><sub id='QI8N1'></sub></form><legend id='QI8N1'></legend><bdo id='QI8N1'><pre id='QI8N1'><center id='QI8N1'></center></pre></bdo></b><th id='QI8N1'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='QI8N1'><tfoot id='QI8N1'></tfoot><dl id='QI8N1'><fieldset id='QI8N1'></fieldset></dl></div>
                1. <small id='QI8N1'></small><noframes id='QI8N1'>

                    <tbody id='QI8N1'></tbody>
                  • <tfoot id='QI8N1'></tfoot>

                        <legend id='QI8N1'><style id='QI8N1'><dir id='QI8N1'><q id='QI8N1'></q></dir></style></legend>
                          • <bdo id='QI8N1'></bdo><ul id='QI8N1'></ul>

                          • 主站蜘蛛池模板: 人人干人人爽 | 91麻豆精品国产91久久久久久久久 | 九一在线 | 95国产精品| 午夜视频网 | 日韩中文字幕一区二区 | 一区二区三区在线 | 一区二区视频在线观看 | 四虎成人精品永久免费av九九 | 色综合天天天天做夜夜夜夜做 | 在线精品观看 | 玖玖视频免费 | 久久久久久91 | 欧美一区二区三区日韩 | 欧洲一级视频 | 成人欧美一区二区三区黑人孕妇 | 中文字幕一区二区视频 | 国产色| 亚洲一区不卡在线 | 日本三级在线 | 亚洲精品在线视频 | 精品国产久 | 欧美一区2区三区4区公司 | 亚洲一区二区在线电影 | 中文字幕 国产 | 成年免费在线观看 | 在线视频 中文字幕 | 涩涩导航| 九九久久国产 | 婷婷久久久久 | 91一区二区三区 | 一区二区三区在线观看免费视频 | 作爱视频免费看 | 高清不卡毛片 | 视频精品一区 | 亚洲巨乳自拍在线视频 | 久久国产精品一区二区 | 久久伊人精品 | 欧美午夜精品久久久久久浪潮 | 国产一区二区三区精品久久久 | 欧美 日韩 国产 成人 |