Class: KML::Placemark
- Defined in:
- lib/kml/placemark.rb
Instance Attribute Summary collapse
-
#geometry ⇒ Object
Returns the value of attribute geometry.
Attributes inherited from Container
Attributes inherited from Feature
#address, #address_details, #description, #look_at, #metadata, #name, #phone_number, #region, #snippet, #style_selector, #style_url, #time_primitive
Attributes inherited from Object
Instance Method Summary collapse
Methods inherited from Feature
#open, #open=, #open?, #visibility, #visibility=, #visibility?
Methods inherited from Object
Constructor Details
This class inherits a constructor from KML::Object
Instance Attribute Details
#geometry ⇒ Object
Returns the value of attribute geometry.
27 28 29 |
# File 'lib/kml/placemark.rb', line 27 def geometry @geometry end |
Instance Method Details
#render(xm = Builder::XmlMarkup.new(:indent => 2)) ⇒ Object
29 30 31 32 33 34 35 36 |
# File 'lib/kml/placemark.rb', line 29 def render(xm=Builder::XmlMarkup.new(:indent => 2)) xm.Placemark { super features.each { |f| f.render(xm) } plain_children.each { |c| xm << c } geometry.render(xm) unless geometry.nil? } end |