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

<legend id='OLmO4'><style id='OLmO4'><dir id='OLmO4'><q id='OLmO4'></q></dir></style></legend>

      1. <small id='OLmO4'></small><noframes id='OLmO4'>

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

          <bdo id='OLmO4'></bdo><ul id='OLmO4'></ul>
        <tfoot id='OLmO4'></tfoot>

        具有模糊輪廓的傳單多邊形

        Leaflet polygon with fuzzy outline(具有模糊輪廓的傳單多邊形)

          <tbody id='ZKbAc'></tbody>
      2. <tfoot id='ZKbAc'></tfoot>

              • <legend id='ZKbAc'><style id='ZKbAc'><dir id='ZKbAc'><q id='ZKbAc'></q></dir></style></legend>
                • <bdo id='ZKbAc'></bdo><ul id='ZKbAc'></ul>

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

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

                  本文介紹了具有模糊輪廓的傳單多邊形的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我正在尋找一種方法來獲得傳單多邊形的模糊/模糊/漸變輪廓.

                  這應(yīng)該有助于使國家/地區(qū)輪廓更加簡單(當(dāng)前,當(dāng)您放大代表國家/地區(qū)的 svg 時,它會變得丑陋/不準(zhǔn)確).

                  我正在考慮將 CSS 屬性附加到與此類似的 svg:

                  I am looking for a way to have a fuzzy/blur/gradient outline of a leaflet polygon.

                  This should help make country outlines more simple (currently, when you zoom in to a svg representing a country, it gets ugly/inaccurate).

                  I was thinking about attaching CSS attributes to the svg similiar to this: http://www.w3schools.com/svg/svg_fegaussianblur.asp But apparently the svg subelement <g> (used for the leaflet polygon) does not accept this.

                  I also had a look at <defs> of svg (see here: http://geoexamples.blogspot.be/2014/01/d3-map-styling-tutorial-ii-giving-style.html) but have no clue in applying this to leaflet.

                  http://leafletjs.com/examples/quick-start-example.html

                  解決方案

                  You would first need to put the actual filter element into the svg element of the map, otherwise assigning a filter to a path or g won't work because the filter will be undefined. So you're going to need to do this in Javascript. But assigning a filter by classname in CSS is as far as i can see impossible because it will only work with the url() function of CSS. That won't fly with the dynamic SVG embedded in Leaflet's overlaypane. You can however assign it with Javascript:

                  // Get the SVG element from the overlayPane
                  var svg = map.getPanes().overlayPane.firstChild,
                      // Create filter element
                      svgFilter = document.createElementNS('http://www.w3.org/2000/svg', 'filter'),
                      // Create blur element
                      svgBlur = document.createElementNS('http://www.w3.org/2000/svg', 'feGaussianBlur');
                  
                  // Set ID attribute of filter
                  svgFilter.setAttribute('id', 'blur');
                  
                  // Give room to blur to prevent clipping
                  svgFilter.setAttribute('x', '-100%');
                  svgFilter.setAttribute('y', '-100%');
                  svgFilter.setAttribute('width', '500%');
                  svgFilter.setAttribute('height', '500%');
                  
                  // Set deviation attribute of blur
                  svgBlur.setAttribute('stdDeviation', 3);
                  
                  // Append blur element to filter element 
                  svgFilter.appendChild(svgBlur);
                  // Append filter element to SVG element
                  svg.appendChild(svgFilter);
                  

                  After that you can use the filter on polygons, linestrings, etc:

                  // Creating a polygon and adding to the map
                  var polygon = L.polygon([[10, 10],[-10,10], [-10,-10],[10,-10]]).addTo(map);
                  
                  // Set filter attribute on the polygon
                  polygon._path.setAttribute('filter', 'url(#blur)');
                  

                  That's it, here's a working example on Plunker: http://plnkr.co/edit/JTNgeXuiBaL8LIbmkVjz?p=preview

                  這篇關(guān)于具有模糊輪廓的傳單多邊形的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  Check if a polygon point is inside another in leaflet(檢查一個多邊形點是否在傳單中的另一個內(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ā)點擊傳單標(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)度)
                    <tbody id='NTd4P'></tbody>

                • <i id='NTd4P'><tr id='NTd4P'><dt id='NTd4P'><q id='NTd4P'><span id='NTd4P'><b id='NTd4P'><form id='NTd4P'><ins id='NTd4P'></ins><ul id='NTd4P'></ul><sub id='NTd4P'></sub></form><legend id='NTd4P'></legend><bdo id='NTd4P'><pre id='NTd4P'><center id='NTd4P'></center></pre></bdo></b><th id='NTd4P'></th></span></q></dt></tr></i><div class="vvtt5j7" id='NTd4P'><tfoot id='NTd4P'></tfoot><dl id='NTd4P'><fieldset id='NTd4P'></fieldset></dl></div>
                • <small id='NTd4P'></small><noframes id='NTd4P'>

                          <tfoot id='NTd4P'></tfoot>
                          <legend id='NTd4P'><style id='NTd4P'><dir id='NTd4P'><q id='NTd4P'></q></dir></style></legend>
                            <bdo id='NTd4P'></bdo><ul id='NTd4P'></ul>
                            主站蜘蛛池模板: 不锈钢监控杆_监控立杆厂家-廊坊耀星光电科技有限公司 | 广州/东莞小字符喷码机-热转印打码机-喷码机厂家-广州瑞润科技 | 头条搜索极速版下载安装免费新版,头条搜索极速版邀请码怎么填写? - 欧远全 | 嘉兴恒升声级计-湖南衡仪声级计-杭州爱华多功能声级计-上海邦沃仪器设备有限公司 | 在线浊度仪_悬浮物污泥浓度计_超声波泥位计_污泥界面仪_泥水界面仪-无锡蓝拓仪表科技有限公司 | 动库网动库商城-体育用品专卖店:羽毛球,乒乓球拍,网球,户外装备,运动鞋,运动包,运动服饰专卖店-正品运动品网上商城动库商城网 - 动库商城 | 交流伺服电机|直流伺服|伺服驱动器|伺服电机-深圳市华科星电气有限公司 | Pos机办理_个人商户免费POS机申请-拉卡拉办理网 | IHDW_TOSOKU_NEMICON_EHDW系列电子手轮,HC1系列电子手轮-上海莆林电子设备有限公司 | 阻燃剂-氢氧化镁-氢氧化铝-沥青阻燃剂-合肥皖燃新材料 | TTCMS自助建站_网站建设_自助建站_免费网站_免费建站_天天向上旗下品牌 | 小型UV打印机-UV平板打印机-大型uv打印机-UV打印机源头厂家 |松普集团 | 361°官方网站| H型钢切割机,相贯线切割机,数控钻床,数控平面钻,钢结构设备,槽钢切割机,角钢切割机,翻转机,拼焊矫一体机 | 北京森语科技有限公司-模型制作专家-展览展示-沙盘模型设计制作-多媒体模型软硬件开发-三维地理信息交互沙盘 | sfp光模块,高速万兆光模块工厂-性价比更高的光纤模块制造商-武汉恒泰通 | 安驭邦官网-双向万能直角铣头,加工中心侧铣头,角度头[厂家直销] 闸阀_截止阀_止回阀「生产厂家」-上海卡比阀门有限公司 | 亿立分板机_曲线_锯片式_走刀_在线式全自动_铣刀_在线V槽分板机-杭州亿协智能装备有限公司 | 淋巴细胞分离液_口腔医疗器材-精欣华医疗器械(无锡)有限公司 | 北京宣传片拍摄_产品宣传片拍摄_宣传片制作公司-现像传媒 | 北京普辉律师事务所官网_北京律师24小时免费咨询|法律咨询 | 非小号行情 - 专业的区块链、数字藏品行情APP、金色财经官网 | 制氮设备-变压吸附制氮设备-制氧设备-杭州聚贤气体设备制造有限公司 | 集菌仪厂家_全封闭_封闭式_智能智能集菌仪厂家-上海郓曹 | 六维力传感器_六分量力传感器_模腔压力传感器-南京数智微传感科技有限公司 | 浙江建筑资质代办_二级房建_市政_电力_安许_劳务资质办理公司 | ★塑料拖链__工程拖链__电缆拖链__钢制拖链 - 【上海闵彬】 | 阳光模拟试验箱_高低温试验箱_高低温冲击试验箱_快速温变试验箱|东莞市赛思检测设备有限公司 | 筒瓦厂家-仿古瓦-寺庙-古建琉璃瓦-宜兴市古典园林建筑陶瓷厂有限公司 | 北京易通慧公司从事北京网站优化,北京网络推广、网站建设一站式服务商-北京网站优化公司 | 砍排机-锯骨机-冻肉切丁机-熟肉切片机-预制菜生产线一站式服务厂商 - 广州市祥九瑞盈机械设备有限公司 | 水热合成反应釜-防爆高压消解罐-西安常仪仪器设备有限公司 | 硅PU球场、篮球场地面施工「水性、环保、弹性」硅PU材料生产厂家-广东中星体育公司 | 工业淬火油烟净化器,北京油烟净化器厂家,热处理油烟净化器-北京众鑫百科 | 武汉高低温试验箱_恒温恒湿试验箱厂家-武汉蓝锐环境科技有限公司 | 直读光谱仪,光谱分析仪,手持式光谱仪,碳硫分析仪,创想仪器官网 | 消泡剂_水处理消泡剂_切削液消泡剂_涂料消泡剂_有机硅消泡剂_广州中万新材料生产厂家 | 筛分机|振动筛分机|气流筛分机|筛分机厂家-新乡市大汉振动机械有限公司 | 播音主持培训-中影人教育播音主持学苑「官网」-中国艺考界的贵族学校 | 江苏农村商业银行招聘网_2024江苏农商行考试指南_江苏农商行校园招聘 | 恒湿机_除湿加湿一体机_恒湿净化消毒一体机厂家-杭州英腾电器有限公司 |