pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

  • <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="qxmhuvf" 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="gf3pgqc" id='vkoCe'><tfoot id='vkoCe'></tfoot><dl id='vkoCe'><fieldset id='vkoCe'></fieldset></dl></div>
                  本文介紹了在 MouseOver 事件上調(diào)用 Leaflet Mouseout的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問題描述

                  我有一張傳單地圖,我在其中動(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)閉.問題是當(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)看到這種情況取決于縮放級(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),旨在幫助大家更快的解決問題,如果有圖片或者內(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="hpzj3wy" 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>

                          • 主站蜘蛛池模板: POS机办理_个人pos机免费领取-银联pos机申请首页| 顶空进样器-吹扫捕集仪-热脱附仪-二次热解吸仪-北京华盛谱信仪器 | 垃圾清运公司_环卫保洁公司_市政道路保洁公司-华富环境 | 苗木价格-苗木批发-沭阳苗木基地-沭阳花木-长之鸿园林苗木场 | 识禅_对禅的了解,从这里开始| 周易算网-八字测算网 - 周易算网-宝宝起名取名测名字周易八字测算网 | 细沙回收机-尾矿干排脱水筛设备-泥石分离机-建筑垃圾分拣机厂家-青州冠诚重工机械有限公司 | 西安文都考研官网_西安考研辅导班_考研培训机构_西安在职考研培训 | 紫外线老化试验箱_uv紫外线老化试验箱价格|型号|厂家-正航仪器设备 | 南京精锋制刀有限公司-纵剪机刀片_滚剪机刀片_合金刀片厂家 | 小型UV打印机-UV平板打印机-大型uv打印机-UV打印机源头厂家 |松普集团 | 电杆荷载挠度测试仪-电杆荷载位移-管桩测试仪-北京绿野创能机电设备有限公司 | 微水泥_硅藻泥_艺术涂料_艺术漆_艺术漆加盟-青岛泥之韵环保壁材 武汉EPS线条_EPS装饰线条_EPS构件_湖北博欧EPS线条厂家 | 【365公司转让网】公司求购|转让|资质买卖_股权转让交易平台 | 密封圈_泛塞封_格莱圈-[东莞市国昊密封圈科技有限公司]专注密封圈定制生产厂家 | 低压载波电能表-单相导轨式电能表-华邦电力科技股份有限公司-智能物联网综合管理平台 | 阿米巴企业经营-阿米巴咨询管理-阿米巴企业培训-广东键锋企业管理咨询有限公司 | pbootcms网站模板|织梦模板|网站源码|jquery建站特效-html5模板网 | 丹佛斯压力传感器,WISE温度传感器,WISE压力开关,丹佛斯温度开关-上海力笙工业设备有限公司 | 安全阀_弹簧式安全阀_美标安全阀_工业冷冻安全阀厂家-中国·阿司米阀门有限公司 | 撕碎机_轮胎破碎机_粉碎机_回收生产线厂家_东莞华达机械有限公司 | led太阳能路灯厂家价格_风光互补庭院灯_农村市政工程路灯-中山华可路灯品牌 | 谷歌关键词优化-外贸网站优化-Google SEO小语种推广-思亿欧外贸快车 | 保定市泰宏机械制造厂-河北铸件厂-铸造厂-铸件加工-河北大件加工 | 重庆LED显示屏_显示屏安装公司_重庆LED显示屏批发-彩光科技公司 重庆钣金加工厂家首页-专业定做监控电视墙_操作台 | 淘趣英语网 - 在线英语学习,零基础英语学习网站 | 成都思迪机电技术研究所-四川成都思迪编码器 | 红酒招商加盟-葡萄酒加盟-进口红酒代理-青岛枞木酒业有限公司 | 防水套管厂家_刚性防水套管_柔性防水套管_不锈钢防水套管-郑州中泰管道 | 焊接烟尘净化器__焊烟除尘设备_打磨工作台_喷漆废气治理设备 -催化燃烧设备 _天津路博蓝天环保科技有限公司 | 铆钉机|旋铆机|东莞旋铆机厂家|鸿佰专业生产气压/油压/自动铆钉机 | ?水马注水围挡_塑料注水围挡_防撞桶-常州瑞轩水马注水围挡有限公司 | 臻知网大型互动问答社区-你的问题将在这里得到解答!-无锡据风网络科技有限公司 | 赛默飞Thermo veritiproPCR仪|ProFlex3 x 32PCR系统|Countess3细胞计数仪|371|3111二氧化碳培养箱|Mirco17R|Mirco21R离心机|仟诺生物 | 储能预警-储能消防系统-电池舱自动灭火装置-四川千页科技股份有限公司官网 | 大学食堂装修设计_公司餐厅效果图_工厂食堂改造_迈普装饰 | 优考试_免费在线考试系统_培训考试系统_题库系统_组卷答题系统_匡优考试 | 生物风-销售载体,基因,质粒,ATCC细胞,ATCC菌株等,欢迎购买-百风生物 | 点焊机-缝焊机-闪光对焊机-电阻焊设备生产厂家-上海骏腾发智能设备有限公司 | 编织人生 - 权威手工编织网站,编织爱好者学习毛衣编织的门户网站,织毛衣就上编织人生网-编织人生 | 全国国际学校排名_国际学校招生入学及学费-学校大全网 |