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

    <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="qwawimqqmiuu" id='8dd8U'><tfoot id='8dd8U'></tfoot><dl id='8dd8U'><fieldset id='8dd8U'></fieldset></dl></div>

        使用 CSS3 動(dòng)畫的脈動(dòng)傳單標(biāo)記

        Pulsating Leaflet marker using CSS3 animations(使用 CSS3 動(dòng)畫的脈動(dòng)傳單標(biāo)記)

          <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="qwawimqqmiuu" 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 動(dòng)畫的脈動(dòng)傳單標(biāo)記的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我想在

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

                  我在這里創(chuàng)建了一個(gè)最小的示例:

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

                  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.

                  這篇關(guān)于使用 CSS3 動(dòng)畫的脈動(dòng)傳單標(biāo)記的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nè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)度)

                    <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="qwawimqqmiuu" id='CGkty'><tfoot id='CGkty'></tfoot><dl id='CGkty'><fieldset id='CGkty'></fieldset></dl></div>

                              <tbody id='CGkty'></tbody>
                          • 主站蜘蛛池模板: 国产99页| 亚洲一区成人 | 一级片免费 | 久久综合久久鬼 | 特黄aaaaaaaaa真人毛片 | 一级片在线免费观看 | 国产激情视频 | 久久久久久久久国产 | 欧美一级淫片bbb一84 | 欧美国产在线视频 | 日韩欧美第一页 | 久久久久久九九九九 | 三级在线观看 | 狠狠操综合 | 日韩中文字幕视频 | 国产在线欧美 | 黄色免费网站 | 久久久久成人网 | 免费黄色av| 福利在线观看 | 怡红院在线播放 | 一个色综合网 | 国产精品偷乱一区二区三区 | 天天射天天爽 | 国产精品免费一区二区 | 在线中文字幕视频 | 国产理论在线观看 | 国产成人精品免费 | 人人爱人人 | 中文字幕在线一区二区三区 | 四虎影院www | 欧美做受69| 在线观看欧美日韩视频 | 欧美亚洲激情 | 黄色一级视频在线观看 | 色八区 | 亚洲欧美在线视频 | 精品久久久久久久久久久久久久 | 成人黄色在线视频 | 国产精品一区二区免费 | 对白刺激国产子与伦 |