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 Object

#comment, #kml_id

Instance Method Summary collapse

Methods inherited from TourPrimitive

#initialize

Methods inherited from Object

#change, #initialize

Constructor Details

This class inherits a constructor from Kamelopard::TourPrimitive

Instance Method Details

#to_kml(elem = nil) ⇒ Object



1387
1388
1389
1390
1391
1392
1393
1394
1395
# File 'lib/kamelopard/classes.rb', line 1387

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