o
    Pf                     @   s>   d dl mZ d dlmZ d dlmZmZ G dd deeZdS )    )Template)
JSCSSMixin)BaseMultiLocationpath_optionsc                       s0   e Zd ZdZedZdgZd fdd	Z  ZS )AntPatha  
    Class for drawing AntPath polyline overlays on a map.

    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.
    **kwargs:
        Polyline and AntPath options. See their Github page for the
        available parameters.

    https://github.com/rubenspgcavalcante/leaflet-ant-path/

    a  
        {% macro script(this, kwargs) %}
            {{ this.get_name() }} = L.polyline.antPath(
              {{ this.locations|tojson }},
              {{ this.options|tojson }}
        ).addTo({{this._parent.get_name()}});
        {% endmacro %}
        )antpathzPhttps://cdn.jsdelivr.net/npm/leaflet-ant-path@1.1.2/dist/leaflet-ant-path.min.jsNc                    s   t  j|||d d| _tdddi|| _| j|dd|dd|dd|d	d
|dddg|dd|dd|dd|ddd	 d S )N)popuptooltipr   lineTpausedFreversehardware_accelerationdelayi  
dash_array
      weight   opacityg      ?colorz#0000FFpulse_colorz#FFFFFF)	r   r   hardwareAccelerationr   	dashArrayr   r   r   
pulseColor )super__init___namer   optionsupdatepop)self	locationsr   r	   kwargs	__class__r   b/home/deployuser/azure_apps/autowriter/venv/lib/python3.10/site-packages/folium/plugins/antpath.pyr   /   s&   







zAntPath.__init__)NN)	__name__
__module____qualname____doc__r   	_template
default_jsr   __classcell__r   r   r$   r&   r      s    r   N)jinja2r   folium.elementsr   folium.vector_layersr   r   r   r   r   r   r&   <module>   s    