Class: TourControl

Inherits:
TourPrimitive show all
Defined in:
lib/kamelopard/classes.rb

Overview

Corresponds to a KML gx:TourControl object

Instance Attribute Summary

Attributes inherited from KMLObject

#comment, #id

Instance Method Summary collapse

Constructor Details

#initializeTourControl

Returns a new instance of TourControl.



1214
1215
1216
# File 'lib/kamelopard/classes.rb', line 1214

def initialize
    super
end

Instance Method Details

#to_kml(indent = 0) ⇒ Object



1218
1219
1220
1221
1222
# File 'lib/kamelopard/classes.rb', line 1218

def to_kml(indent = 0)
    k = "#{ ' ' * indent }<gx:TourControl id=\"#{ @id }\">\n"
    k << "#{ ' ' * indent }    <gx:playMode>pause</gx:playMode>\n"
    k << "#{ ' ' * indent }</gx:TourControl>\n"
end