o
    PÉf}  ã                   @   sF   d dl mZ d dlmZ d dlmZ d dlmZ G dd„ deeƒZdS )é    )ÚMacroElement)ÚTemplate)Ú
JSCSSMixin)Úparse_optionsc                       s>   e Zd ZdZedƒZdgZdgZ				d‡ fd	d
„	Z‡  Z	S )Ú
Fullscreenar  
    Adds a fullscreen button to your map.

    Parameters
    ----------
    position : str
        change the position of the button can be:
        'topleft', 'topright', 'bottomright' or 'bottomleft'
        default: 'topleft'
    title : str
        change the title of the button,
        default: 'Full Screen'
    title_cancel : str
        change the title of the button when fullscreen is on,
        default: 'Exit Full Screen'
    force_separate_button : bool, default False
        force separate button to detach from zoom buttons,

    See https://github.com/brunob/leaflet.fullscreen for more information.
    zÇ
        {% macro script(this, kwargs) %}
            L.control.fullscreen(
                {{ this.options|tojson }}
            ).addTo({{this._parent.get_name()}});
        {% endmacro %}
        )zControl.Fullscreen.jszOhttps://cdn.jsdelivr.net/npm/leaflet.fullscreen@3.0.0/Control.FullScreen.min.js)zControl.FullScreen.csszLhttps://cdn.jsdelivr.net/npm/leaflet.fullscreen@3.0.0/Control.FullScreen.cssÚtopleftúFull ScreenúExit Full ScreenFc                    s.   t ƒ  ¡  d| _td||||dœ|¤Ž| _d S )Nr   )ÚpositionÚtitleÚtitle_cancelÚforce_separate_button© )ÚsuperÚ__init__Ú_namer   Úoptions)Úselfr
   r   r   r   Úkwargs©Ú	__class__r   úe/home/deployuser/azure_apps/autowriter/venv/lib/python3.10/site-packages/folium/plugins/fullscreen.pyr   5   s   
üûzFullscreen.__init__)r   r   r	   F)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ú	_templateÚ
default_jsÚdefault_cssr   Ú__classcell__r   r   r   r   r      s    ÿÿÿ	ûr   N)	Úbranca.elementr   Újinja2r   Úfolium.elementsr   Úfolium.utilitiesr   r   r   r   r   r   Ú<module>   s
    