久久久久久久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的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

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

                  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)看到這種情況取決于縮放級(jí)別(通常在縮小時(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的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(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>

                          • 主站蜘蛛池模板: 亚洲欧美在线播放 | av片网站| 中文字幕精品一区久久久久 | 国产黄色一区 | 99热国产在线 | 成人在线视频观看 | 国产乱码一区二区三区 | 免费看a级片 | 亚洲精品久久久久久久久久久 | 一道本在线 | 欧美少妇视频 | 三上悠亚一区 | 欧美国产一区二区 | 中文字幕一区二区三区在线观看 | 国产精品久久午夜夜伦鲁鲁 | 三级视频在线观看 | 色综合99 | 国产日韩免费 | 天天干天天色天天射 | 日韩久久精品 | 亚洲成人日韩 | 精品久久影院 | 中文字幕高清 | 久操精品| 神马午夜久久 | 在线观看黄色片 | 国产精品免费人成网站酒店 | 成人免费看片视频 | 精品亚洲一区二区 | 国产欧美在线播放 | 日韩欧美自拍 | av老司机在线观看 | 欧美精品二区三区四区免费看视频 | 男人的天堂久久 | 中文字幕日韩视频 | 美女久久久久 | 天天操夜夜 | 性史性dvd影片农村毛片 | 久久免费国产 | 亚洲免费视频一区 | 日本成片网 |