
    Dhr                     L    S SK Jr  S SKJr  S SKJr  S SKJr   " S S\\5      rg)    )MacroElement)
JSCSSMixin)Template)remove_emptyc                   L   ^  \ rS rSrSrS/rS/r\" S5      rSU 4S jjr	Sr
U =r$ )	GroupedLayerControl   a8  
Create a Layer Control with groups of overlays.

Parameters
----------
groups : dict
      A dictionary where the keys are group names and the values are lists
      of layer objects.
      e.g. {
          "Group 1": [layer1, layer2],
          "Group 2": [layer3, layer4]
        }
exclusive_groups: bool, default True
     Whether to use radio buttons (default) or checkboxes.
     If you want to use both, use two separate instances of this class.
**kwargs
    Additional (possibly inherited) options. See
    https://leafletjs.com/reference.html#control-layers

)z"leaflet.groupedlayercontrol.min.jszkhttps://cdnjs.cloudflare.com/ajax/libs/leaflet-groupedlayercontrol/0.6.1/leaflet.groupedlayercontrol.min.js)z#leaflet.groupedlayercontrol.min.csszlhttps://cdnjs.cloudflare.com/ajax/libs/leaflet-groupedlayercontrol/0.6.1/leaflet.groupedlayercontrol.min.cssa  
        {% macro script(this,kwargs) %}

            L.control.groupedLayers(
                null,
                {
                    {%- for group_name, overlays in this.grouped_overlays.items() %}
                    {{ group_name|tojson }} : {
                        {%- for overlaykey, val in overlays.items() %}
                        {{ overlaykey|tojson }} : {{val}},
                        {%- endfor %}
                    },
                    {%- endfor %}
                },
                {{ this.options|tojavascript }},
            ).addTo({{this._parent.get_name()}});

            {%- for val in this.layers_untoggle %}
            {{ val }}.remove();
            {%- endfor %}

        {% endmacro %}
        c                   > [         TU ]  5         SU l        [        S0 UD6U l        U(       a&  [        UR                  5       5      U R                  S'   [        5       U l        0 U l	        UR                  5        H  u  pE0 U R                  U'   U Hn  nUR                  5       U R                  U   UR                  '   UR                  (       d)  U R                  R                  UR                  5       5        SUl        Mp     U(       d  M  USS   H,  nU R                  R                  UR                  5       5        M.     M     g )Nr   exclusiveGroupsF    )super__init___namer   optionslistkeyssetlayers_untogglegrouped_overlaysitemsget_name
layer_nameshowaddcontrol)selfgroupsexclusive_groupskwargs
group_namesublistelement	__class__s          uC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\folium/plugins/groupedlayercontrol.pyr   GroupedLayerControl.__init__E   s   *
#-f-.26;;=.ADLL*+"u "#)<<>J02D!!*-" $$& %%j1&& ||((,,W-=-=-?@ #( #  &qr{G((,,W-=-=-?@  + $2    )r   r   r   r   )T)__name__
__module____qualname____firstlineno____doc__
default_jsdefault_cssr   	_templater   __static_attributes____classcell__)r$   s   @r%   r   r      s=    ,	
J	
K 	I4A Ar'   r   N)	branca.elementr   folium.elementsr   folium.templater   folium.utilitiesr   r   r   r'   r%   <module>r6      s#    ' & $ )SA*l SAr'   