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

<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="qwawimqqmiuu" 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="qwawimqqmiuu" 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="qwawimqqmiuu" 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>
                            主站蜘蛛池模板: 欧美一区二区在线播放 | 欧美多人在线 | 男女视频在线看 | 日本欧美国产 | 日韩一区二区在线视频 | 99re视频在线 | 欧美精品久久久久久久久久 | 精品久久久久久久人人人人传媒 | 91精品久久久久久久久99蜜臂 | 99精品热视频 | 91一区二区 | 国产一区二区在线视频 | 亚洲天堂免费 | 91精品国产91久久久久久不卞 | 国产精品久久久久久av公交车 | 色www精品视频在线观看 | 国产欧美日韩一区二区三区在线 | av天天看 | 成人小视频在线观看 | 国产第一页在线播放 | 欧美一区二区三区久久精品视 | 亚洲福利片 | 国产一级片免费在线观看 | 亚洲一区二区电影在线观看 | 中文字幕在线精品 | 在线看日韩 | 91视频三区 | 日批av | 粉嫩粉嫩芽的虎白女18在线视频 | 日日噜噜夜夜爽爽狠狠 | 成人天堂| 免费在线观看成人 | 日韩不卡视频在线观看 | 超碰在线久 | 国产精品久久国产精品 | 欧州一区二区三区 | 丝袜毛片 | 日本亚洲精品成人欧美一区 | 欧美精品乱码久久久久久按摩 | 亚洲精品视频在线播放 | 国产成人99久久亚洲综合精品 |