예제 #1
0
 def __init__(self, scale=1, heading=0, icon=None, hotspot=None, **kwargs):
     super(IconStyle, self).__init__(**kwargs)
     if icon is None:
         icon = Icon(href="http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png")
     self._kml["scale"] = scale
     self._kml["heading"] = heading
     self._kml["Icon_"] = icon
     self._kml["hotspot_"] = hotspot
예제 #2
0
    def __init__(self, scale=1, heading=0, icon=None, hotspot=None, **kwargs):
        """
        Creates a iconstyle element.

        Keyword Arguments:
        color (string)      -- string of KML hex value (default None)
        colormode (string)  -- string [ColorMode] constants(default "normal")
        scale (float)       -- size of the icon (default 1)
        heading (float)     -- rotation of the icon (default 0)
        icon ([Icon])       -- the [Icon] (default [Icon])
        hotspot ([Hotspot]) -- the [HotSpot] (default None)

        """
        super(IconStyle, self).__init__(**kwargs)
        if icon is None:
            icon = Icon(href="http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png")
        self._kml["scale"] = scale
        self._kml["heading"] = heading
        self._kml["Icon"] = icon
        self._kml["hotspot_"] = hotspot