国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > JavaScript > 正文

基于openlayers4實現點的擴散效果

2019-11-19 14:29:40
字體:
來源:轉載
供稿:網友

本文實例為大家分享了openlayers4實現點的擴散效果,供大家參考,具體內容如下

<!DOCTYPE html> <html lang="en"> <head>   <meta charset="UTF-8">   <title>Title</title>   <link rel="stylesheet"  rel="external nofollow" type="text/css">    <!-- The line below is only needed for old environments like Internet Explorer and Android 4.x -->    <script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList,URL"></script>    <script src="https://openlayers.org/en/v4.6.4/build/ol.js"></script>   <style>     .css_animation{       height:100px;       width:100px;       border-radius: 50%;       background: rgba(255, 0, 0, 0.9);       transform: scale(0);       animation: myfirst 3s;       animation-iteration-count: infinite;     }     @keyframes myfirst{       to{         transform: scale(2);         background: rgba(0, 0, 0, 0);       }     }    </style> </head> <body>   <div id="map" style="width: 100%;height: 100%"></div>   <script>     var map = new ol.Map({       layers:[new ol.layer.Tile({         source:new ol.source.OSM()       })],       target:'map',       view:new ol.View({         center: [12950000, 4860000],         zoom:7       })     });      var point_div = document.createElement('div');     point_div.className = 'css_animation';     point_overlay = new ol.Overlay({       element:point_div,       positioning:'center-center'     });     map.addOverlay(point_overlay);      point_overlay.setPosition([12950000, 4860000]);   </script> </body> </html> 

以上就是本文的全部內容,希望對大家的學習有所幫助,也希望大家多多支持武林網。

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 奉化市| 即墨市| 张北县| 南宫市| 绍兴市| 漯河市| 房山区| 荣昌县| 名山县| 永福县| 聂荣县| 大足县| 桓仁| 阿合奇县| 宜兰县| 义乌市| 咸宁市| 泽库县| 浮山县| 桃园市| 揭东县| 喀喇沁旗| 墨玉县| 习水县| 灌云县| 类乌齐县| 石城县| 龙山县| 深泽县| 武义县| 庆云县| 双峰县| 麟游县| 同德县| 江川县| 仙桃市| 罗平县| 三河市| 中方县| 中方县| 普安县|