
    -Ph3                     6    d dl mZ d dlZ G d de          ZdS )    )BaseLayoutHierarchyTypeNc                   x    e Zd ZdZdZh dZed             Zej        d             Zed             Z	e	j        d             Z	ed             Z
e
j        d	             Z
ed
             Zej        d             Zed             Zej        d             Zed             Zej        d             Zed             Zej        d             Zed             Zej        d             Zed             Zej        d             Zed             Zej        d             Zed             Z	 	 	 	 	 	 	 	 	 	 	 d fd	Z xZS )Maplayoutz
layout.map>
   zoompitchstyleboundscenterdomainlayersbearing
uirevisionlayerdefaultsc                     | d         S )a  
        Sets the bearing angle of the map in degrees counter-clockwise
        from North (map.bearing).

        The 'bearing' property is a number and may be specified as:
          - An int or float

        Returns
        -------
        int|float
        r    selfs    ]/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/plotly/graph_objs/layout/_map.pyr   zMap.bearing   s     I    c                     || d<   d S )Nr   r   r   vals     r   r   zMap.bearing(   s    Yr   c                     | d         S )a_  
        The 'bounds' property is an instance of Bounds
        that may be specified as:
          - An instance of :class:`plotly.graph_objs.layout.map.Bounds`
          - A dict of string/value properties that will be passed
            to the Bounds constructor

        Returns
        -------
        plotly.graph_objs.layout.map.Bounds
        r
   r   r   s    r   r
   z
Map.bounds,        H~r   c                     || d<   d S )Nr
   r   r   s     r   r
   z
Map.bounds;       Xr   c                     | d         S )a_  
        The 'center' property is an instance of Center
        that may be specified as:
          - An instance of :class:`plotly.graph_objs.layout.map.Center`
          - A dict of string/value properties that will be passed
            to the Center constructor

        Returns
        -------
        plotly.graph_objs.layout.map.Center
        r   r   r   s    r   r   z
Map.center?   r   r   c                     || d<   d S )Nr   r   r   s     r   r   z
Map.centerN   r   r   c                     | d         S )a_  
        The 'domain' property is an instance of Domain
        that may be specified as:
          - An instance of :class:`plotly.graph_objs.layout.map.Domain`
          - A dict of string/value properties that will be passed
            to the Domain constructor

        Returns
        -------
        plotly.graph_objs.layout.map.Domain
        r   r   r   s    r   r   z
Map.domainR   r   r   c                     || d<   d S )Nr   r   r   s     r   r   z
Map.domaina   r   r   c                     | d         S )a  
        The 'layers' property is a tuple of instances of
        Layer that may be specified as:
          - A list or tuple of instances of plotly.graph_objs.layout.map.Layer
          - A list or tuple of dicts of string/value properties that
            will be passed to the Layer constructor

        Returns
        -------
        tuple[plotly.graph_objs.layout.map.Layer]
        r   r   r   s    r   r   z
Map.layerse   r   r   c                     || d<   d S )Nr   r   r   s     r   r   z
Map.layerst   r   r   c                     | d         S )a  
        When used in a template (as
        layout.template.layout.map.layerdefaults), sets the default
        property values to use for elements of layout.map.layers

        The 'layerdefaults' property is an instance of Layer
        that may be specified as:
          - An instance of :class:`plotly.graph_objs.layout.map.Layer`
          - A dict of string/value properties that will be passed
            to the Layer constructor

        Returns
        -------
        plotly.graph_objs.layout.map.Layer
        r   r   r   s    r   r   zMap.layerdefaultsx   s    " O$$r   c                     || d<   d S )Nr   r   r   s     r   r   zMap.layerdefaults   s     #_r   c                     | d         S )a  
        Sets the pitch angle of the map (in degrees, where 0 means
        perpendicular to the surface of the map) (map.pitch).

        The 'pitch' property is a number and may be specified as:
          - An int or float

        Returns
        -------
        int|float
        r   r   r   s    r   r   z	Map.pitch   s     G}r   c                     || d<   d S )Nr   r   r   s     r   r   z	Map.pitch       Wr   c                     | d         S )at  
        Defines the map layers that are rendered by default below the
        trace layers defined in `data`, which are themselves by default
        rendered below the layers defined in `layout.map.layers`.
        These layers can be defined either explicitly as a Map Style
        object which can contain multiple layer definitions that load
        data from any public or private Tile Map Service (TMS or XYZ)
        or Web Map Service (WMS) or implicitly by using one of the
        built-in style objects which use WMSes or by using a custom
        style URL  Map Style objects are of the form described in the
        MapLibre GL JS documentation available at
        https://maplibre.org/maplibre-style-spec/  The built-in
        plotly.js styles objects are: basic, carto-darkmatter, carto-
        darkmatter-nolabels, carto-positron, carto-positron-nolabels,
        carto-voyager, carto-voyager-nolabels, dark, light, open-
        street-map, outdoors, satellite, satellite-streets, streets,
        white-bg.

        The 'style' property accepts values of any type

        Returns
        -------
        Any
        r	   r   r   s    r   r	   z	Map.style   s    4 G}r   c                     || d<   d S )Nr	   r   r   s     r   r	   z	Map.style   r(   r   c                     | d         S )a  
        Controls persistence of user-driven changes in the view:
        `center`, `zoom`, `bearing`, `pitch`. Defaults to
        `layout.uirevision`.

        The 'uirevision' property accepts values of any type

        Returns
        -------
        Any
        r   r   r   s    r   r   zMap.uirevision   s     L!!r   c                     || d<   d S )Nr   r   r   s     r   r   zMap.uirevision   s     \r   c                     | d         S )z
        Sets the zoom level of the map (map.zoom).

        The 'zoom' property is a number and may be specified as:
          - An int or float

        Returns
        -------
        int|float
        r   r   r   s    r   r   zMap.zoom   s     F|r   c                     || d<   d S )Nr   r   r   s     r   r   zMap.zoom   s    Vr   c                     dS )Na	          bearing
            Sets the bearing angle of the map in degrees counter-
            clockwise from North (map.bearing).
        bounds
            :class:`plotly.graph_objects.layout.map.Bounds`
            instance or dict with compatible properties
        center
            :class:`plotly.graph_objects.layout.map.Center`
            instance or dict with compatible properties
        domain
            :class:`plotly.graph_objects.layout.map.Domain`
            instance or dict with compatible properties
        layers
            A tuple of
            :class:`plotly.graph_objects.layout.map.Layer`
            instances or dicts with compatible properties
        layerdefaults
            When used in a template (as
            layout.template.layout.map.layerdefaults), sets the
            default property values to use for elements of
            layout.map.layers
        pitch
            Sets the pitch angle of the map (in degrees, where 0
            means perpendicular to the surface of the map)
            (map.pitch).
        style
            Defines the map layers that are rendered by default
            below the trace layers defined in `data`, which are
            themselves by default rendered below the layers defined
            in `layout.map.layers`.  These layers can be defined
            either explicitly as a Map Style object which can
            contain multiple layer definitions that load data from
            any public or private Tile Map Service (TMS or XYZ) or
            Web Map Service (WMS) or implicitly by using one of the
            built-in style objects which use WMSes or by using a
            custom style URL  Map Style objects are of the form
            described in the MapLibre GL JS documentation available
            at https://maplibre.org/maplibre-style-spec/  The
            built-in plotly.js styles objects are: basic, carto-
            darkmatter, carto-darkmatter-nolabels, carto-positron,
            carto-positron-nolabels, carto-voyager, carto-voyager-
            nolabels, dark, light, open-street-map, outdoors,
            satellite, satellite-streets, streets, white-bg.
        uirevision
            Controls persistence of user-driven changes in the
            view: `center`, `zoom`, `bearing`, `pitch`. Defaults to
            `layout.uirevision`.
        zoom
            Sets the zoom level of the map (map.zoom).
        r   r   s    r   _prop_descriptionszMap._prop_descriptions   s    2 2r   Nc           	         t                                          d           d|v r|d         | _        dS |i }nct          || j                  r|                                }n9t          |t                    rt          j        |          }nt          d          |
                    dd          | _        |
                    dd          | _        |                     d	||           |                     d
||           |                     d||           |                     d||           |                     d||           |                     d||           |                     d||           |                     d||	           |                     d||
           |                     d||            | j        di t          |fi | d| _        dS )a
  
        Construct a new Map object

        Parameters
        ----------
        arg
            dict of properties compatible with this constructor or
            an instance of :class:`plotly.graph_objs.layout.Map`
        bearing
            Sets the bearing angle of the map in degrees counter-
            clockwise from North (map.bearing).
        bounds
            :class:`plotly.graph_objects.layout.map.Bounds`
            instance or dict with compatible properties
        center
            :class:`plotly.graph_objects.layout.map.Center`
            instance or dict with compatible properties
        domain
            :class:`plotly.graph_objects.layout.map.Domain`
            instance or dict with compatible properties
        layers
            A tuple of
            :class:`plotly.graph_objects.layout.map.Layer`
            instances or dicts with compatible properties
        layerdefaults
            When used in a template (as
            layout.template.layout.map.layerdefaults), sets the
            default property values to use for elements of
            layout.map.layers
        pitch
            Sets the pitch angle of the map (in degrees, where 0
            means perpendicular to the surface of the map)
            (map.pitch).
        style
            Defines the map layers that are rendered by default
            below the trace layers defined in `data`, which are
            themselves by default rendered below the layers defined
            in `layout.map.layers`.  These layers can be defined
            either explicitly as a Map Style object which can
            contain multiple layer definitions that load data from
            any public or private Tile Map Service (TMS or XYZ) or
            Web Map Service (WMS) or implicitly by using one of the
            built-in style objects which use WMSes or by using a
            custom style URL  Map Style objects are of the form
            described in the MapLibre GL JS documentation available
            at https://maplibre.org/maplibre-style-spec/  The
            built-in plotly.js styles objects are: basic, carto-
            darkmatter, carto-darkmatter-nolabels, carto-positron,
            carto-positron-nolabels, carto-voyager, carto-voyager-
            nolabels, dark, light, open-street-map, outdoors,
            satellite, satellite-streets, streets, white-bg.
        uirevision
            Controls persistence of user-driven changes in the
            view: `center`, `zoom`, `bearing`, `pitch`. Defaults to
            `layout.uirevision`.
        zoom
            Sets the zoom level of the map (map.zoom).

        Returns
        -------
        Map
        map_parentNzThe first argument to the plotly.graph_objs.layout.Map
constructor must be a dict or
an instance of :class:`plotly.graph_objs.layout.Map`skip_invalidF	_validateTr   r
   r   r   r   r   r   r	   r   r   r   )super__init__r3   
isinstance	__class__to_plotly_jsondict_copycopy
ValueErrorpop_skip_invalidr5   _set_property_process_kwargs)r   argr   r
   r   r   r   r   r   r	   r   r   kwargsr9   s                r   r7   zMap.__init__  s   Z 	!),DLF;CCT^,, 
	$$&&CCT"" 	*S//CC8   $ZZ>>K669c73338S&1118S&1118S&1118S&111?C???7C///7C///<j99963---33tC22622333"r   )NNNNNNNNNNN)__name__
__module____qualname___parent_path_str	_path_str_valid_propspropertyr   setterr
   r   r   r   r   r   r	   r   r   r0   r7   __classcell__)r9   s   @r   r   r      s       I  L   X ^  ^   X ]  ]   X ]  ]   X ]  ]   X ]  ] % % X%$ $ $ $   X \  \   X6 \  \ " " X" ! ! !   X 
[  [ 3 3 X3n n# n# n# n# n# n# n# n# n# n#r   r   )plotly.basedatatypesr   _BaseLayoutHierarchyTyper=   r<   r   r   r   r   <module>rP      se    U T T T T T    C# C# C# C# C#
" C# C# C# C# C#r   