久久久久久久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 事件上調(diào)用 Leaflet Mouseout

        Leaflet Mouseout called on MouseOver event(在 MouseOver 事件上調(diào)用 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 事件上調(diào)用 Leaflet Mouseout的處理方法,對大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我有一張傳單地圖,我在其中動態(tài)添加標(biāo)記.

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

                  當(dāng)我將鼠標(biāo)懸停在標(biāo)記上時(shí)以及單擊標(biāo)記時(shí),我想調(diào)用它的彈出窗口.

                  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 行,則會出現(xiàn)彈出窗口,但我必須單擊 elswhere 將其關(guān)閉.問題是當(dāng)我將鼠標(biāo)移出時(shí),光標(biāo)在光標(biāo)懸停在標(biāo)記上時(shí)有點(diǎn)閃爍,沒有任何顯示.我認(rèn)為彈出窗口正在打開但關(guān)閉速度非??欤@就是光標(biāo)閃爍的原因,但我不知道如何解決這個(gè)問題

                  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

                  推薦答案

                  彈出窗口實(shí)際上是在光標(biāo)下方加載并從 Marker 中竊取"鼠標(biāo),觸發(fā) Marker.mouseout() 事件,從而導(dǎo)致彈出窗口關(guān)閉并重新觸發(fā) Marker.mouseover() 事件...循環(huán)繼續(xù),這就是您看到閃爍"的原因.

                  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'.

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

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

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

                  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();});
                  }
                  

                  這篇關(guān)于在 MouseOver 事件上調(diào)用 Leaflet Mouseout的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  Check if a polygon point is inside another in leaflet(檢查一個(gè)多邊形點(diǎn)是否在傳單中的另一個(gè)內(nèi)部)
                  Changing leaflet markercluster icon color, inheriting the rest of the default CSS properties(更改傳單標(biāo)記群集圖標(biāo)顏色,繼承其余默認(rèn) CSS 屬性)
                  Trigger click on leaflet marker(觸發(fā)點(diǎn)擊傳單標(biāo)記)
                  How can I change the default loading tile color in LeafletJS?(如何更改 LeafletJS 中的默認(rèn)加載磁貼顏色?)
                  Adding Leaflet layer control to sidebar(將 Leaflet 圖層控件添加到側(cè)邊欄)
                  Leaflet - get latitude and longitude of a marker inside a pop-up(Leaflet - 在彈出窗口中獲取標(biāo)記的緯度和經(jīng)度)

                  <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>

                          • 主站蜘蛛池模板: 日韩中文字幕 | 99国产精品视频免费观看一公开 | 欧美黑人一区 | 在线观看中文字幕视频 | 久久久久久久国产 | www.成人久久| 天天影视色综合 | 亚洲国产成人精品女人久久久 | 亚洲伦理自拍 | 国内在线视频 | 日本三级网站在线观看 | 1级毛片 | 在线一级片 | 中文字幕 在线观看 | 精品av天堂毛片久久久借种 | 91视视频在线观看入口直接观看 | 国产一区二区精品在线观看 | 亚洲欧美成人影院 | 国产福利在线 | 色婷婷精品 | 中文字幕不卡视频在线观看 | 高清成人av | 中文字幕在线视频一区二区三区 | 精品少妇一区二区三区日产乱码 | 成人免费视频网站在线观看 | 91国内精精品久久久久久婷婷 | 99精品国产在热久久 | 天堂中文av | av官网在线| 天堂精品视频 | 欧美精品一区二区三区在线 | 91色综合 | 狠狠爱视频 | 九九热精品视频 | 国产一级在线 | 国产成人在线视频播放 | av毛片| 日韩有码在线观看 | 国产成人精品免高潮在线观看 | 日韩视频免费 | 色综合色综合色综合 |