
    \i                     V    S r SSKJr   " S S\5      r " S S\5      r " S S\5      rg	)
a  
Copyright 2011-2018 Kyle Lancaster | 2019 Patrick Eisoldt

Simplekml is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

    )Kmlablec                     ^  \ rS rSrSr        SU 4S jjr\S 5       r\S 5       r\R                  S 5       r\S 5       r
\
R                  S 5       r
\S	 5       r\R                  S
 5       r\S 5       r\R                  S 5       r\S 5       r\R                  S 5       r\S 5       r\R                  S 5       r\S 5       r\R                  S 5       r\S 5       r\R                  S 5       rU 4S jrSrU =r$ )Link   a  
Specifies the location of:
  * KML files fetched by network links
  * Model files

The arguments are the same as the properties.

Usage::

    import simplekml
    kml = simplekml.Kml()
    netlink = kml.newnetworklink(name="Network Link")
    netlink.link.href = "http://simplekml.googlecode.com/hg/samples/samples.kml"
    netlink.link.viewrefreshmode = simplekml.ViewRefreshMode.onrequest
    kml.save("Link.kml")
c	                 
  > [         [        U ]  5         XR                  S'   X R                  S'   X0R                  S'   X@R                  S'   XPR                  S'   X`R                  S'   XpR                  S'   XR                  S'   g )	NhrefrefreshModerefreshIntervalviewRefreshModeviewRefreshTimeviewBoundScale
viewFormat	httpQuery)superr   __init___kml)
selfr   refreshmoderefreshintervalviewrefreshmodeviewrefreshtimeviewboundscale
viewformat	httpquery	__class__s
            Q/var/www/html/kml_chatgpt/mouzaenv/lib/python3.13/site-packages/simplekml/icon.pyr   Link.__init__'   sv     	dD"$ 		&#.		- '6		#$'6		#$'6		#$&4		"#",		,!*		+    c                     U R                   $ )zThe id string.)_idr   s    r   idLink.id:   s     xxr   c                      U R                   S   $ )zTarget url, accepts string.r   r   r!   s    r   r   	Link.href?        yy  r   c                      XR                   S'   g Nr   r%   r   r   s     r   r   r&   D        		&r   c                      U R                   S   $ )zLType of refresh, accepts string of :class:`simplekml.RefreshMode` constants.r	   r%   r!   s    r   r   Link.refreshmodeH   s     yy''r   c                      XR                   S'   g )Nr	   r%   )r   r   s     r   r   r-   M   s    #.		- r   c                      U R                   S   $ )z&Time between refreshed, accepts float.r
   r%   r!   s    r   r   Link.refreshintervalQ        yy*++r   c                      XR                   S'   g )Nr
   r%   )r   r   s     r   r   r0   V       '6		#$r   c                      U R                   S   $ )zNCamera specific refresh, accepts :class:`simplekml.ViewRefreshMode` constants.r   r%   r!   s    r   r   Link.viewrefreshmodeZ   r1   r   c                      XR                   S'   g )Nr   r%   )r   r   s     r   r   r5   _   r3   r   c                      U R                   S   $ )z,Camera specific refresh time, accepts float.r   r%   r!   s    r   r   Link.viewrefreshtimec   r1   r   c                      XR                   S'   g )Nr   r%   )r   r   s     r   r   r8   h   r3   r   c                      U R                   S   $ )z-Extent to request from server, accepts float.r   r%   r!   s    r   r   Link.viewboundscalel   s     yy)**r   c                      XR                   S'   g )Nr   r%   )r   r   s     r   r   r;   q   s    &4		"#r   c                      U R                   S   $ )z+Format of the query string, accepts string.r   r%   r!   s    r   r   Link.viewformatu   s     yy&&r   c                      XR                   S'   g )Nr   r%   )r   r   s     r   r   r>   z   s    ",		,r   c                      U R                   S   $ )z@Extra information to append to the query string, accepts string.r   r%   r!   s    r   r   Link.httpquery~   s     yy%%r   c                      XR                   S'   g )Nr   r%   )r   r   s     r   r   rA      s    !*		+r   c                    > SR                  U R                  5      [        [        U ]  5       SR                  U R                  5      /nSR                  U5      $ )Nz<Link id="{0}">z</Link> formatr    r   r   __str__joinr   bufr   s     r   rG   Link.__str__   K     ''1T4(*)+ wws|r    ) NNNNNNN)__name__
__module____qualname____firstlineno____doc__r   propertyr"   r   setterr   r   r   r   r   r   r   rG   __static_attributes____classcell__r   s   @r   r   r      s   $ !!%!%!% $ +&   ! ! 
[[! ! ( ( / / , , 7 7 , , 7 7 , , 7 7 + + 5 5 ' ' - - & & + + r   r   c                     ^  \ rS rSrSr    SU 4S jjr\S 5       r\R                  S 5       r\S 5       r	\	R                  S 5       r	\S 5       r
\
R                  S	 5       r
\S
 5       r\R                  S 5       rU 4S jrSrU =r$ )Icon   ag  Defines an image associated with an Icon style or overlay.

The arguments are the same as the properties.

Usage::

    import simplekml
    kml = simplekml.Kml()
    pnt = kml.newpoint(name='A Point')
    pnt.coords = [(1.0, 2.0)]
    pnt.style.iconstyle.icon.href = 'http://maps.google.com/mapfiles/kml/shapes/placemark_circle.png'
    kml.save("Icon.kml")
c                    > [         [        U ]
  " S0 UD6  XR                  S'   X R                  S'   X0R                  S'   X@R                  S'   g )Ngx:xgx:ygx:wgx:hrM   )r   rZ   r   r   )r   gxxgxygxwgxhkwargsr   s         r   r   Icon.__init__   sG     	dD",V,		&		&		&		&r   c                      U R                   S   $ )z(x position of icon palette, accpets int.r]   r%   r!   s    r   ra   Icon.gxx   r'   r   c                      XR                   S'   g )Nr]   r%   )r   ra   s     r   ra   rh          		&r   c                      U R                   S   $ )z(y position of icon palette, accpets int.r^   r%   r!   s    r   rb   Icon.gxy   r'   r   c                      XR                   S'   g )Nr^   r%   )r   rb   s     r   rb   rl      rj   r   c                      U R                   S   $ )z#Width of icon palette, accpets int.r_   r%   r!   s    r   rc   Icon.gxw   r'   r   c                      XR                   S'   g )Nr_   r%   )r   rc   s     r   rc   ro      rj   r   c                      U R                   S   $ )z$Height of icon palette, accpets int.r`   r%   r!   s    r   rd   Icon.gxh   r'   r   c                      XR                   S'   g )Nr`   r%   )r   rd   s     r   rd   rr      rj   r   c                    > SR                  U R                  5      [        [        U ]  5       SR                  U R                  5      /nSR                  U5      $ )Nz<Icon id="{0}">z</Icon>rD   rE   rI   s     r   rG   Icon.__str__   rL   r   rM   )NNNN)rO   rP   rQ   rR   rS   r   rT   ra   rU   rb   rc   rd   rG   rV   rW   rX   s   @r   rZ   rZ      s     	
  ! ! 	ZZ    ! ! 	ZZ    ! ! 	ZZ    ! ! 	ZZ    r   rZ   c                      ^  \ rS rSrSrS	U 4S jjr\S 5       r\R                  S 5       r\S 5       r	\	R                  S 5       r	Sr
U =r$ )
ItemIcon   au  con used in the List view that reflects the state of a Folder or Link fetch.

The arguments are the same as the properties.

Usage::

    import simplekml
    kml = simplekml.Kml()
    pnt = kml.newpoint(name='A Point')
    pnt.coords = [(1.0, 2.0)]
    pnt.style.liststyle.itemicon.href = 'http://maps.google.com/mapfiles/kml/shapes/info.png'
    kml.save('ItemIcon.kml')
c                 b   > [         [        U ]  5         X R                  S'   XR                  S'   g )Nr   state)r   rw   r   r   )r   rz   r   r   s      r   r   ItemIcon.__init__   s(    h&( 		&"		'r   c                      U R                   S   $ )z?URL of the image used in List View for Feature, accepts string.r   r%   r!   s    r   r   ItemIcon.href   r'   r   c                      XR                   S'   g r)   r%   r*   s     r   r   r}      r+   r   c                      U R                   S   $ )zRCurrent state of the link, accepts string from :class:`simplekml.State` constants.rz   r%   r!   s    r   rz   ItemIcon.state   s     yy!!r   c                      XR                   S'   g )Nrz   r%   )r   rz   s     r   rz   r      s    "		'r   rM   )NN)rO   rP   rQ   rR   rS   r   rT   r   rU   rz   rV   rW   rX   s   @r   rw   rw      se    #
 ! ! 
[[! ! " " \\# #r   rw   N)rS   simplekml.baser   r   rZ   rw   rM   r   r   <module>r      s9   $ #v7 vrC4 CN$#w $#r   