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

    <bdo id='8dd8U'></bdo><ul id='8dd8U'></ul>
    <tfoot id='8dd8U'></tfoot>

    1. <legend id='8dd8U'><style id='8dd8U'><dir id='8dd8U'><q id='8dd8U'></q></dir></style></legend>

    2. <small id='8dd8U'></small><noframes id='8dd8U'>

    3. <i id='8dd8U'><tr id='8dd8U'><dt id='8dd8U'><q id='8dd8U'><span id='8dd8U'><b id='8dd8U'><form id='8dd8U'><ins id='8dd8U'></ins><ul id='8dd8U'></ul><sub id='8dd8U'></sub></form><legend id='8dd8U'></legend><bdo id='8dd8U'><pre id='8dd8U'><center id='8dd8U'></center></pre></bdo></b><th id='8dd8U'></th></span></q></dt></tr></i><div class="vjh7zl5" id='8dd8U'><tfoot id='8dd8U'></tfoot><dl id='8dd8U'><fieldset id='8dd8U'></fieldset></dl></div>

        使用 CSS3 動畫的脈動傳單標記

        Pulsating Leaflet marker using CSS3 animations(使用 CSS3 動畫的脈動傳單標記)

          <tbody id='mS6ar'></tbody>

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

          • <legend id='mS6ar'><style id='mS6ar'><dir id='mS6ar'><q id='mS6ar'></q></dir></style></legend>

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

            1. <tfoot id='mS6ar'></tfoot>
                <bdo id='mS6ar'></bdo><ul id='mS6ar'></ul>
                • 本文介紹了使用 CSS3 動畫的脈動傳單標記的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我想在

                  順便說一句,我在 Windows 7 和 Yosemite 上使用 Chrome 44.x.

                  我在這里創建了一個最小的示例:

                  我還是不明白,為什么我的第一種方法不起作用.

                  I want to create a custom pulsating map marker icon on a Leaflet map. For learning purposes I don't want to use third party plugins.

                  I am using the following CSS code for creating the 'pulsating'-animation:

                  .gps_ring {
                      border: 3px solid #999;
                      -webkit-border-radius: 30px;
                      height: 18px;
                      width: 18px;    
                      -webkit-animation: pulsate 1s ease-out;
                      -webkit-animation-iteration-count: infinite;     
                  }   
                  @-webkit-keyframes pulsate {
                      0% {-webkit-transform: scale(0.1, 0.1); opacity: 0.0;}
                      50% {opacity: 1.0;}
                      100% {-webkit-transform: scale(1.2, 1.2); opacity: 0.0;}
                  }
                  

                  I am using Leaflet's DivIcon in order to change the visualization of a marker (referencing the CSS class above):

                  // Define an icon called cssIcon
                  var cssIcon = L.divIcon({
                      // Specify a class name we can refer to in CSS.
                      className: 'gps_ring'
                  });
                  
                  // Create markers and set their icons to cssIcon
                  L.marker([50.5, 30.5], {icon: cssIcon}).addTo(map);
                  

                  This approach doesn't work at the moment. The animated marker icon always shows up on the top left corner of the map. It seems that the transformation (scale) breaks the current marker location:

                  BTW I am using Chrome 44.x on Windows 7 and Yosemite.

                  I have created a minimal example here:

                  http://jsfiddle.net/christianjunk/q69qx45c/1/

                  What is going wrong? Why does the animation breaks the marker's map position?

                  解決方案

                  After investigating for some more time I found a way to solve the problem:

                  I changed the CSS code slighlty:

                  .css-icon {
                  
                  }
                  
                  .gps_ring { 
                      border: 3px solid #999;
                       -webkit-border-radius: 30px;
                       height: 18px;
                       width: 18px;       
                      -webkit-animation: pulsate 1s ease-out;
                      -webkit-animation-iteration-count: infinite; 
                      /*opacity: 0.0*/
                  }
                  
                  @-webkit-keyframes pulsate {
                          0% {-webkit-transform: scale(0.1, 0.1); opacity: 0.0;}
                          50% {opacity: 1.0;}
                          100% {-webkit-transform: scale(1.2, 1.2); opacity: 0.0;}
                  }
                  

                  And I changed the instantiation of my DivIcon class:

                  // Define an icon called cssIcon
                  var cssIcon = L.divIcon({
                    // Specify a class name we can refer to in CSS.
                    className: 'css-icon',
                    html: '<div class="gps_ring"></div>'
                    // Set marker width and height
                    ,iconSize: [22,22]
                    // ,iconAnchor: [11,11]
                  });
                  

                  The following did the trick: I am now using the inner html to run the CSS animation. This will preserve the marker's location. Also note the iconSize attribute, which has the total size of the icon after the transformation ( 21 px =~ 18px x 1.2). Setting it this way centers the animated circle at the coordinate:

                  Working example: http://jsfiddle.net/christianjunk/waturuoz/

                  I still couldn't figure out, why my first approach wasn't working.

                  這篇關于使用 CSS3 動畫的脈動傳單標記的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 - 在彈出窗口中獲取標記的緯度和經度)

                    <bdo id='CGkty'></bdo><ul id='CGkty'></ul>
                  • <small id='CGkty'></small><noframes id='CGkty'>

                    <tfoot id='CGkty'></tfoot>
                      1. <legend id='CGkty'><style id='CGkty'><dir id='CGkty'><q id='CGkty'></q></dir></style></legend>

                      2. <i id='CGkty'><tr id='CGkty'><dt id='CGkty'><q id='CGkty'><span id='CGkty'><b id='CGkty'><form id='CGkty'><ins id='CGkty'></ins><ul id='CGkty'></ul><sub id='CGkty'></sub></form><legend id='CGkty'></legend><bdo id='CGkty'><pre id='CGkty'><center id='CGkty'></center></pre></bdo></b><th id='CGkty'></th></span></q></dt></tr></i><div class="5fthhx5" id='CGkty'><tfoot id='CGkty'></tfoot><dl id='CGkty'><fieldset id='CGkty'></fieldset></dl></div>

                              <tbody id='CGkty'></tbody>
                          • 主站蜘蛛池模板: 电子海图系统-电梯检验系统-智慧供热系统开发-商品房预售资金监管系统 | 多米诺-多米诺世界纪录团队-多米诺世界-多米诺团队培训-多米诺公关活动-多米诺创意广告-多米诺大型表演-多米诺专业赛事 | 东莞注册公司-代办营业执照-东莞公司注册代理记账-极刻财税 | SRRC认证|CCC认证|CTA申请_IMEI|MAC地址注册-英利检测 | 深圳宣传片制作-企业宣传视频制作-产品视频拍摄-产品动画制作-短视频拍摄制作公司 | 酶联免疫分析仪-多管旋涡混合仪|混合器-莱普特科学仪器(北京)有限公司 | 硅胶布|电磁炉垫片|特氟龙胶带-江苏浩天复合材料有限公司 | 劳动法网-专业的劳动法和劳动争议仲裁服务网 | 球形钽粉_球形钨粉_纳米粉末_难熔金属粉末-广东银纳官网 | ICP备案查询_APP备案查询_小程序备案查询 - 备案巴巴 | 据信,上课带着跳 D 体验-别样的课堂刺激感受引发网友热议 | 电位器_轻触开关_USB连接器_广东精密龙电子科技有限公司 | 电缆隧道在线监测-智慧配电站房-升压站在线监测-江苏久创电气科技有限公司 | 宿松新闻网 宿松网|宿松在线|宿松门户|安徽宿松(直管县)|宿松新闻综合网站|宿松官方新闻发布 | 真空搅拌机-行星搅拌机-双行星动力混合机-广州市番禺区源创化工设备厂 | 全屋整木定制-橱柜,家具定制-四川峨眉山龙马木业有限公司 | IWIS链条代理-ALPS耦合透镜-硅烷预处理剂-上海顶楚电子有限公司 lcd条形屏-液晶长条屏-户外广告屏-条形智能显示屏-深圳市条形智能电子有限公司 | 柴油机_柴油发电机_厂家_品牌-江苏卡得城仕发动机有限公司 | 滚珠丝杆升降机_螺旋升降机_丝杠升降机-德迈传动 | 滚筒烘干机_转筒烘干机_滚筒干燥机_转筒干燥机_回转烘干机_回转干燥机-设备生产厂家 | 手机存放柜,超市储物柜,电子储物柜,自动寄存柜,行李寄存柜,自动存包柜,条码存包柜-上海天琪实业有限公司 | 硅胶管挤出机厂家_硅胶挤出机生产线_硅胶条挤出机_臣泽智能装备 贵州科比特-防雷公司厂家提供贵州防雷工程,防雷检测,防雷接地,防雷设备价格,防雷产品报价服务-贵州防雷检测公司 | 至顶网 | 医养体检包_公卫随访箱_慢病随访包_家签随访包_随访一体机-济南易享医疗科技有限公司 | 小程序开发公司_APP开发多少钱_软件开发定制_微信小程序制作_客户销售管理软件-济南小溪畅流网络科技有限公司 | 蜘蛛车-高空作业平台-升降机-高空作业车租赁-臂式伸缩臂叉装车-登高车出租厂家 - 普雷斯特机械设备(北京)有限公司 | 臻知网大型互动问答社区-你的问题将在这里得到解答!-无锡据风网络科技有限公司 | 空压机网_《压缩机》杂志| 南京蜂窝纸箱_南京木托盘_南京纸托盘-南京博恒包装有限公司 | 爆破器材运输车|烟花爆竹运输车|1-9类危险品厢式运输车|湖北江南专用特种汽车有限公司 | 电杆荷载挠度测试仪-电杆荷载位移-管桩测试仪-北京绿野创能机电设备有限公司 | 苹果售后维修点查询,苹果iPhone授权售后维修服务中心 – 修果网 拼装地板,悬浮地板厂家,悬浮式拼装运动地板-石家庄博超地板科技有限公司 | 南京办公用品网-办公文具用品批发-打印机耗材采购 | 超声波成孔成槽质量检测仪-压浆机-桥梁预应力智能张拉设备-上海硕冠检测设备有限公司 | 首页-浙江橙树网络技术有限公司 石磨面粉机|石磨面粉机械|石磨面粉机组|石磨面粉成套设备-河南成立粮油机械有限公司 | 安徽成考网-安徽成人高考网 | 气密性检测仪_气密性检测设备_防水测试仪_密封测试仪-岳信仪器 | 耐酸碱胶管_耐腐蚀软管总成_化学品输送软管_漯河利通液压科技耐油耐磨喷砂软管|耐腐蚀化学软管 | 低浓度恒温恒湿称量系统,强光光照培养箱-上海三腾仪器有限公司 | 小型气象站_便携式自动气象站_校园气象站-竞道气象设备网 | 全自动在线分板机_铣刀式在线分板机_曲线分板机_PCB分板机-东莞市亿协自动化设备有限公司 |