<tfoot id='0xQER'></tfoot>
    <bdo id='0xQER'></bdo><ul id='0xQER'></ul>
  • <small id='0xQER'></small><noframes id='0xQER'>

      <legend id='0xQER'><style id='0xQER'><dir id='0xQER'><q id='0xQER'></q></dir></style></legend>
    1. <i id='0xQER'><tr id='0xQER'><dt id='0xQER'><q id='0xQER'><span id='0xQER'><b id='0xQER'><form id='0xQER'><ins id='0xQER'></ins><ul id='0xQER'></ul><sub id='0xQER'></sub></form><legend id='0xQER'></legend><bdo id='0xQER'><pre id='0xQER'><center id='0xQER'></center></pre></bdo></b><th id='0xQER'></th></span></q></dt></tr></i><div id='0xQER'><tfoot id='0xQER'></tfoot><dl id='0xQER'><fieldset id='0xQER'></fieldset></dl></div>

      1. 使用复选框而不是单选按钮来控制传单层?

        时间:2023-08-09
          • <legend id='oMDpL'><style id='oMDpL'><dir id='oMDpL'><q id='oMDpL'></q></dir></style></legend>

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

          • <i id='oMDpL'><tr id='oMDpL'><dt id='oMDpL'><q id='oMDpL'><span id='oMDpL'><b id='oMDpL'><form id='oMDpL'><ins id='oMDpL'></ins><ul id='oMDpL'></ul><sub id='oMDpL'></sub></form><legend id='oMDpL'></legend><bdo id='oMDpL'><pre id='oMDpL'><center id='oMDpL'></center></pre></bdo></b><th id='oMDpL'></th></span></q></dt></tr></i><div id='oMDpL'><tfoot id='oMDpL'></tfoot><dl id='oMDpL'><fieldset id='oMDpL'></fieldset></dl></div>
              <tbody id='oMDpL'></tbody>
          • <tfoot id='oMDpL'></tfoot>

                <bdo id='oMDpL'></bdo><ul id='oMDpL'></ul>

                1. 本文介绍了使用复选框而不是单选按钮来控制传单层?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  有没有一种简单的方法来制作 传单层控件(L.control.layers) 使用复选框而不是单选按钮?

                  Is there an easy way to make a leaflet layers control (L.control.layers) use checkboxes rather than radio buttons?

                  我有多个 WMS 切片图层,我希望能够在地图上同时拥有多个图层.就上下文而言,WMS 切片图层包括水深测量和等高线(地形线),因此将两者同时可视化会提供更多信息,而不是仅仅让一些线漂浮在海洋中.

                  I have multiple WMS tile layers, and I'd like to be able to have more than one on the map at the same time. For context, the WMS tile layers include bathymetry and contours (topo lines), so it'd be more informative to visualize both at the same time, rather than just having some lines floating in the ocean.

                  在 传单示例中,它说图层控件足够聪明"可以知道分配单选按钮和复选框,但最好有更多自定义控件.

                  In the leaflet example it says the layers control is "smart enough" to know which to assign radio buttons and which checkboxes, but it'd be nice to have more customized control.

                  相关代码:

                  L.control.layers(WMS, null, {collapsed: false}).addTo(map);
                  其中 WMS 是多个 L.tileLayer.wms 层.

                  推荐答案

                  将您的 WMS 作为第二个参数(即作为叠加层)而不是 L.control 的第一个(底图)传递.layers.

                  Pass your WMS as the 2nd argument (i.e. as overlays) instead of the 1st (basemaps) of L.control.layers.

                  叠加使用复选框,而底图使用单选按钮.

                  Overlays use check boxes, whereas basemaps use radio buttons.

                  这篇关于使用复选框而不是单选按钮来控制传单层?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何使用 Leaflet.draw 从多边形中获取区域字符串 下一篇:全球地图图块在缩放级别 19 后消失

                  相关文章

                  最新文章

                2. <i id='rsTiC'><tr id='rsTiC'><dt id='rsTiC'><q id='rsTiC'><span id='rsTiC'><b id='rsTiC'><form id='rsTiC'><ins id='rsTiC'></ins><ul id='rsTiC'></ul><sub id='rsTiC'></sub></form><legend id='rsTiC'></legend><bdo id='rsTiC'><pre id='rsTiC'><center id='rsTiC'></center></pre></bdo></b><th id='rsTiC'></th></span></q></dt></tr></i><div id='rsTiC'><tfoot id='rsTiC'></tfoot><dl id='rsTiC'><fieldset id='rsTiC'></fieldset></dl></div>
                  <legend id='rsTiC'><style id='rsTiC'><dir id='rsTiC'><q id='rsTiC'></q></dir></style></legend>
                3. <tfoot id='rsTiC'></tfoot>
                4. <small id='rsTiC'></small><noframes id='rsTiC'>

                    <bdo id='rsTiC'></bdo><ul id='rsTiC'></ul>