久久久久久久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>

                            主站蜘蛛池模板: 在线观看www视频 | 亚洲精品视频在线 | 999久久久 | 久久久久久久97 | 亚洲精品白浆高清久久久久久 | 久久精品a级毛片 | 久久精品亚洲精品国产欧美 | 你懂的av | 亚洲精品一区二区在线观看 | www.99re| 国产精品观看 | 国产精品久久久久久久久久三级 | 国产视频2021 | 成人天堂噜噜噜 | 欧美一级精品片在线看 | 九九热在线观看视频 | 国产精品视频一二三区 | 久久久国产视频 | 91久久精品日日躁夜夜躁国产 | 五月婷亚洲 | 亚洲成人99| 午夜三级视频 | 欧美成人a∨高清免费观看 老司机午夜性大片 | 成人性生交大片免费看中文带字幕 | www.国产91| 手机在线一区二区三区 | 国产精品a免费一区久久电影 | 青青草社区 | 国产精品69毛片高清亚洲 | 国产精品视频一区二区三区不卡 | 高清人人天天夜夜曰狠狠狠狠 | 浴室洗澡偷拍一区二区 | 欧美午夜精品久久久久久浪潮 | 午夜影院视频 | 色综合久久88色综合天天 | 亚洲成人一区 | 国产99久久精品一区二区300 | 天堂精品| 伊人伊成久久人综合网站 | 欧洲一级黄 | 免费一区二区 |