Class: Kamelopard::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 TourPrimitive

#standalone

Attributes inherited from Object

#comment, #kml_id, #master_only

Instance Method Summary collapse

Methods inherited from TourPrimitive

#initialize

Methods inherited from Object

#_alternate_to_kml, #change, #initialize, #master_only?, parse

Constructor Details

This class inherits a constructor from Kamelopard::TourPrimitive

Instance Method Details

#to_kml(elem = nil) ⇒ Object



1867
1868
1869
1870
1871
1872
1873
1874
1875
# File 'lib/kamelopard/classes.rb', line 1867

def to_kml(elem = nil)
    k = XML::Node.new 'gx:TourControl'
    super(k)
    q = XML::Node.new 'gx:playMode'
    q << 'pause'
    k << q
    elem << k unless elem.nil?
    k
end