o
    PÉf“  ã                   @   s.   d dl mZ d dlmZ G dd„ deeƒZdS )é    )Ú
JSCSSMixin)ÚPolyLinec                       s(   e Zd ZdZdgZd‡ fdd„	Z‡  ZS )ÚPolyLineOffseta3  
    Add offset capabilities to the PolyLine class.

    This plugin adds to folium Polylines the ability to be drawn with a
    relative pixel offset, without modifying their actual coordinates. The offset
    value can be either negative or positive, for left- or right-side offset,
    and remains constant across zoom levels.

    See :func:`folium.vector_layers.path_options` for the `Path` options.

    Parameters
    ----------
    locations: list of points (latitude, longitude)
        Latitude and Longitude of line (Northing, Easting)
    popup: str or folium.Popup, default None
        Input text or visualization for object displayed when clicking.
    tooltip: str or folium.Tooltip, optional
        Display a text when hovering over the object.
    offset: int, default 0
        Relative pixel offset to draw a line parallel to an existent one,
        at a fixed distance.
    **kwargs:
        Polyline options. See their Github page for the
        available parameters.

    See https://github.com/bbecquet/Leaflet.PolylineOffset

    Examples
    --------
    >>> plugins.PolyLineOffset(
    ...     [[58, -28], [53, -23]], color="#f00", opacity=1, offset=-5
    ... ).add_to(m)
    >>> plugins.PolyLineOffset(
    ...     [[58, -28], [53, -23]], color="#080", opacity=1, offset=10
    ... ).add_to(m)

    )ÚpolylineoffsetzWhttps://cdn.jsdelivr.net/npm/leaflet-polylineoffset@1.1.1/leaflet.polylineoffset.min.jsNr   c                    s4   t ƒ jd|||dœ|¤Ž d| _| j d|i¡ d S )N)Ú	locationsÚpopupÚtooltipr   Úoffset© )ÚsuperÚ__init__Ú_nameÚoptionsÚupdate)Úselfr   r   r   r	   Úkwargs©Ú	__class__r
   új/home/deployuser/azure_apps/autowriter/venv/lib/python3.10/site-packages/folium/plugins/polyline_offset.pyr   3   s   zPolyLineOffset.__init__)NNr   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú
default_jsr   Ú__classcell__r
   r
   r   r   r      s
    'ÿr   N)Úfolium.elementsr   Úfolium.vector_layersr   r   r
   r
   r
   r   Ú<module>   s    