コード例 #1
0
    def camera(self):
        """Camera that views the scene, accepts :class:`simplekml.Camera`

        *New in version 1.1.1*
        """
        if self._kml['Camera'] is None:
            self._kml['Camera'] = Camera()
            self._kml['LookAt'] = None
        return self._kml['Camera']
コード例 #2
0
ファイル: tour.py プロジェクト: RBerghout/FlightPrediction
 def camera(self):
     """Camera that views the scene, accepts :class:`simplekml.Camera`"""
     if self._abstractview is None or type(self._abstractview) == LookAt:
         self._abstractview = Camera()
     return self._abstractview