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="zjl88ik" 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="a38qs6b" id='ZKbAc'><tfoot id='ZKbAc'></tfoot><dl id='ZKbAc'><fieldset id='ZKbAc'></fieldset></dl></div>

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

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

                  問題描述

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

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

                  我正在考慮將 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

                  這篇關于具有模糊輪廓的傳單多邊形的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 - 在彈出窗口中獲取標記的緯度和經度)
                    <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="r21osih" 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>
                            主站蜘蛛池模板: 自动记录数据电子台秤,记忆储存重量电子桌称,设定时间记录电子秤-昆山巨天 | 继电器模组-IO端子台-plc连接线-省配线模组厂家-世麦德 | 水环真空泵厂家,2bv真空泵,2be真空泵-淄博真空设备厂 | 全自动包装机_灌装机生产厂家-迈驰包装设备有限公司 | 河南正规膏药生产厂家-膏药贴牌-膏药代加工-修康药业集团官网 | 滁州高低温冲击试验箱厂家_安徽高低温试验箱价格|安徽希尔伯特 | 防火窗_耐火窗_防火门厂家_防火卷帘门-重庆三乐门业有限公司 | 搜木网 - 木业全产业链交易平台,免费搜货、低价买货! | 成都租车_成都租车公司_成都租车网_众行宝| 板式换网器_柱式换网器_自动换网器-郑州海科熔体泵有限公司 | 武汉刮刮奖_刮刮卡印刷厂_为企业提供门票印刷_武汉合格证印刷_现金劵代金券印刷制作 - 武汉泽雅印刷有限公司 | 杭州营业执照代办-公司变更价格-许可证办理流程_杭州福道财务管理咨询有限公司 | 硅PU球场、篮球场地面施工「水性、环保、弹性」硅PU材料生产厂家-广东中星体育公司 | 泰来华顿液氮罐,美国MVE液氮罐,自增压液氮罐,定制液氮生物容器,进口杜瓦瓶-上海京灿精密机械有限公司 | 楼承板-开闭口楼承板-无锡海逵楼承板 | 艾默生变频器,艾默生ct,变频器,ct驱动器,广州艾默生变频器,供水专用变频器,风机变频器,电梯变频器,艾默生变频器代理-广州市盟雄贸易有限公司官方网站-艾默生变频器应用解决方案服务商 | 北京翻译公司_同传翻译_字幕翻译_合同翻译_英语陪同翻译_影视翻译_翻译盖章-译铭信息 | 书法培训-高考书法艺考培训班-山东艺霖书法培训凭实力挺进央美 | 干粉砂浆设备_干混砂浆生产线_腻子粉加工设备_石膏抹灰砂浆生产成套设备厂家_干粉混合设备_砂子烘干机--郑州铭将机械设备有限公司 | 双齿辊破碎机-大型狼牙破碎机视频-对辊破碎机价格/型号图片-金联机械设备生产厂家 | 全温度恒温培养摇床-大容量-立式-远红外二氧化碳培养箱|南荣百科 | 嘉兴恒升声级计-湖南衡仪声级计-杭州爱华多功能声级计-上海邦沃仪器设备有限公司 | 智能终端_RTU_dcm_北斗星空自动化科技 | 板框压滤机-隔膜压滤机-厢式压滤机生产厂家-禹州市君工机械设备有限公司 | 六自由度平台_六自由度运动平台_三自由度摇摆台—南京全控科技 | 大连海岛旅游网>>大连旅游,大连海岛游,旅游景点攻略,海岛旅游官网 | 硫化罐-电加热蒸汽硫化罐生产厂家-山东鑫泰鑫智能装备有限公司 | 视频直播 -摄影摄像-视频拍摄-直播分发 | 华禹护栏|锌钢护栏_阳台护栏_护栏厂家-华禹专注阳台护栏、楼梯栏杆、百叶窗、空调架、基坑护栏、道路护栏等锌钢护栏产品的生产销售。 | 垃圾清运公司_环卫保洁公司_市政道路保洁公司-华富环境 | 包塑丝_高铁绑丝_地暖绑丝_涂塑丝_塑料皮铁丝_河北创筹金属丝网制品有限公司 | 长沙发电机-湖南发电机-柴油发电机供应厂家-长沙明邦智能科技 | 成都亚克力制品,PVC板,双色板雕刻加工,亚克力门牌,亚克力标牌,水晶字雕刻制作-零贰捌广告 | ERP企业管理系统永久免费版_在线ERP系统_OA办公_云版软件官网 | 扫地车厂家-山西洗地机-太原电动扫地车「大同朔州吕梁晋中忻州长治晋城洗地机」山西锦力环保科技有限公司 | HYDAC过滤器,HYDAC滤芯,现货ATOS油泵,ATOS比例阀-东莞市广联自动化科技有限公司 | 庭院灯_太阳能景观灯_草坪灯厂家_仿古壁灯-重庆恒投科技 | 加中寰球移民官网-美国移民公司,移民机构,移民中介,移民咨询,投资移民 | 对夹式止回阀_对夹式蝶形止回阀_对夹式软密封止回阀_超薄型止回阀_不锈钢底阀-温州上炬阀门科技有限公司 | 山东包装,山东印刷厂,济南印刷厂-济南富丽彩印刷有限公司 | 阴离子_阳离子聚丙烯酰胺厂家_聚合氯化铝价格_水处理絮凝剂_巩义市江源净水材料有限公司 |