
    Dh                     X    S SK Jr  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)	TileLayer)Template)remove_emptyc                   f   ^  \ rS rSrSr\" S5      rS/rS/r             SU 4S jjr	Sr
U =r$ )	MiniMap	   a  Add a minimap (locator) to an existing map.

Uses the Leaflet plugin by Norkart under BSD 2-Clause "Simplified" License.
https://github.com/Norkart/Leaflet-MiniMap

Parameters
----------
tile_layer : folium TileLayer object or str, default None
    Provide a folium TileLayer object or the wanted tiles as string.
    If not provided it will use the default of 'TileLayer', currently
    OpenStreetMap.
position : str, default 'bottomright'
    The standard Control position parameter for the widget.
width : int, default 150
    The width of the minimap in pixels.
height : int, default 150
    The height of the minimap in pixels.
collapsed_width : int, default 25
    The width of the toggle marker and the minimap when collapsed in pixels.
collapsed_height : int, default 25
    The height of the toggle marker and the minimap when collapsed
zoom_level_offset : int, default -5
    The offset applied to the zoom in the minimap compared to the zoom of
    the main map. Can be positive or negative.
zoom_level_fixed : int, default None
    Overrides the offset to apply a fixed zoom level to the minimap
    regardless of the main map zoom.
    Set it to any valid zoom level, if unset zoom_level_offset is used
    instead.
center_fixed : bool, default False
    Applies a fixed position to the minimap regardless of the main map's
    view / position. Prevents panning the minimap, but does allow zooming
    (both in the minimap and the main map).
    If the minimap is zoomed, it will always zoom around the centerFixed
    point. You can pass in a LatLng-equivalent object.
zoom_animation : bool, default False
    Sets whether the minimap should have an animated zoom.
    (Will cause it to lag a bit after the movement of the main map.)
toggle_display : bool, default False
    Sets whether the minimap should have a button to minimise it.
auto_toggle_display : bool, default False
    Sets whether the minimap should hide automatically
    if the parent map bounds does not fit within the minimap bounds.
    Especially useful when 'zoomLevelFixed' is set.
minimized : bool, default False
    Sets whether the minimap should start in a minimized position.

Examples
--------
>>> MiniMap(position="bottomleft")
a  
        {% macro script(this, kwargs) %}
            var {{ this.tile_layer.get_name() }} = L.tileLayer(
                {{ this.tile_layer.tiles|tojson }},
                {{ this.tile_layer.options|tojson }}
            );
            var {{ this.get_name() }} = new L.Control.MiniMap(
                {{ this.tile_layer.get_name() }},
                {{ this.options|tojavascript }}
            );
            {{ this._parent.get_name() }}.addControl({{ this.get_name() }});
        {% endmacro %}
    )Control_MiniMap_jszOhttps://cdnjs.cloudflare.com/ajax/libs/leaflet-minimap/3.6.1/Control.MiniMap.js)Control_MiniMap_csszPhttps://cdnjs.cloudflare.com/ajax/libs/leaflet-minimap/3.6.1/Control.MiniMap.cssc                    > [         TU ]  5         SU l        Uc  [        5       U l        O,[        U[        5      (       a  Xl        O[        U5      U l        [        SUUUUUUUU	U
UUUS.UD6U l        g )Nr	   )positionwidthheightcollapsed_widthcollapsed_heightzoom_level_offsetzoom_level_fixedcenter_fixedzoom_animationtoggle_displayauto_toggle_display	minimized )super__init___namer   
tile_layer
isinstancer   options)selfr   r   r   r   r   r   r   r   r   r   r   r   r   kwargs	__class__s                  iC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\folium/plugins/minimap.pyr   MiniMap.__init__[   s    " 	
'kDO
I..(O'
3DO# 
+-/-%)) 3
 
    )r   r    r   )Nbottomright   r(      r)   NFFFFF)__name__
__module____qualname____firstlineno____doc__r   	_template
default_jsdefault_cssr   __static_attributes____classcell__)r#   s   @r$   r	   r	   	   se    2h 	I"	
J	
K !)
 )
r&   r	   N)branca.elementr   folium.elementsr   folium.raster_layersr   folium.templater   folium.utilitiesr   r	   r   r&   r$   <module>r:      s$    ' & * $ ){
j, {
r&   