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

  • <legend id='dxBYc'><style id='dxBYc'><dir id='dxBYc'><q id='dxBYc'></q></dir></style></legend>

    <tfoot id='dxBYc'></tfoot>

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

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

        動態更改傳單中多邊形的顏色?

        Dynamically change the color of a polygon in leaflet?(動態更改傳單中多邊形的顏色?)

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

              • <bdo id='uSp3T'></bdo><ul id='uSp3T'></ul>
                <tfoot id='uSp3T'></tfoot>

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

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

                  問題描述

                  對于熟悉 Leaflet 的人,您知道動態更改多邊形顏色的方法嗎?例如,以這樣定義的圓為例:

                  For anyone who is familiar with Leaflet, do you know a way to dynamically change a polygon's color? For example, take a circle defined like this:

                  window.circle = L.circle([51.508, -0.11], 500, {
                  color: 'red',
                  fillColor: '#ffffff',
                      fillOpacity: 0.5
                  }).addTo(map);
                  

                  然后,在用戶單擊界面上某處的按鈕后(例如),我想像這樣更改圓圈的顏色:

                  Then later, after a user clicks a button somewhere on an interface (for example), I want to change the color of the circle like this:

                  window.circle.options.fillColor = "#dddddd";
                  

                  代碼更改了 window.circle.options.fillColor 的值,但更改不會反映在地圖上多邊形顏色的更改中.我四處尋找,但沒有找到任何東西.有什么想法嗎?

                  The code changes the value for window.circle.options.fillColor, but the change is not reflected by a change to the color of the polygon on the map. I've searched around but haven't found anything. Any ideas?

                  謝謝.

                  推薦答案

                  L.Circle extends L.Path (http://leafletjs.com/reference.html#path),有方法 setStyle( <Path options> object ),你可以將新樣式應用為 window.circle.setStyle({fillColor: '#dddddd'});

                  L.Circle extends L.Path (http://leafletjs.com/reference.html#path), that have method setStyle( <Path options> object ), and you can apply new style as window.circle.setStyle({fillColor: '#dddddd'});

                  這篇關于動態更改傳單中多邊形的顏色?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 中的默認加載磁貼顏色?)
                  Add external geojson to leaflet layer(將外部geojson添加到傳單層)
                  Adding Leaflet layer control to sidebar(將 Leaflet 圖層控件添加到側邊欄)
                  <tfoot id='Prdgf'></tfoot>

                • <small id='Prdgf'></small><noframes id='Prdgf'>

                    <tbody id='Prdgf'></tbody>
                    <bdo id='Prdgf'></bdo><ul id='Prdgf'></ul>

                      • <legend id='Prdgf'><style id='Prdgf'><dir id='Prdgf'><q id='Prdgf'></q></dir></style></legend>
                            <i id='Prdgf'><tr id='Prdgf'><dt id='Prdgf'><q id='Prdgf'><span id='Prdgf'><b id='Prdgf'><form id='Prdgf'><ins id='Prdgf'></ins><ul id='Prdgf'></ul><sub id='Prdgf'></sub></form><legend id='Prdgf'></legend><bdo id='Prdgf'><pre id='Prdgf'><center id='Prdgf'></center></pre></bdo></b><th id='Prdgf'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Prdgf'><tfoot id='Prdgf'></tfoot><dl id='Prdgf'><fieldset id='Prdgf'></fieldset></dl></div>

                            主站蜘蛛池模板: 精品国产区 | 成人性生交大片 | 欧美成人精品欧美一级 | 国产毛片毛片 | 九九热精品在线 | 日韩欧美国产成人一区二区 | 久久久久久国产精品mv | 欧美日韩久| 成年人免费网站 | 五月天激情综合网 | 密乳av| 超碰免费观看 | 综合久久一区 | 久久久这里都是精品 | 成人av播放 | 日韩精品成人一区二区三区视频 | 一级毛片免费看 | 日韩一 | 国产在线精品一区二区三区 | 婷婷免费视频 | 成人av网站在线观看 | 日韩不卡在线观看 | 在线观看成人精品 | 四虎成人精品永久免费av九九 | 日韩成人免费视频 | 综合精品久久久 | 国产精品久久九九 | 欧美日韩在线播放 | 中文字幕伊人 | 精品产国自在拍 | 九九热热九九 | 中文字幕亚洲视频 | 国产精品一区二区在线 | 狠狠操av| 国产精品区二区三区日本 | 亚洲成人综合社区 | 久久综合九色综合欧美狠狠 | av网站在线免费观看 | 97av视频在线| 亚洲高清免费 | 99久久免费精品国产男女高不卡 |