Class: Kamelopard::Overlay
- Includes:
- Icon
- Defined in:
- lib/kamelopard/classes.rb
Overview
Abstract class corresponding to the KML Overlay object
Direct Known Subclasses
Instance Attribute Summary collapse
-
#color ⇒ Object
Returns the value of attribute color.
-
#drawOrder ⇒ Object
Returns the value of attribute drawOrder.
Attributes included from Icon
#h, #href, #httpQuery, #refreshInterval, #refreshMode, #viewBoundScale, #viewFormat, #viewRefreshMode, #viewRefreshTime, #w, #x, #y
Attributes inherited from Feature
#abstractView, #addressDetails, #atom_author, #atom_link, #description, #extendedData, #metadata, #name, #open, #phoneNumber, #region, #snippet, #styleSelector, #styleUrl, #styles, #timeprimitive, #visibility
Attributes included from Snippet
Attributes inherited from Object
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Overlay
constructor
A new instance of Overlay.
- #to_kml(elem) ⇒ Object
Methods included from Icon
Methods inherited from Feature
add_author, #hide, #show, #styles_to_kml, #timespan, #timespan=, #timestamp, #timestamp=
Methods included from Snippet
Methods inherited from Object
Constructor Details
Instance Attribute Details
#color ⇒ Object
Returns the value of attribute color.
1476 1477 1478 |
# File 'lib/kamelopard/classes.rb', line 1476 def color @color end |
#drawOrder ⇒ Object
Returns the value of attribute drawOrder.
1476 1477 1478 |
# File 'lib/kamelopard/classes.rb', line 1476 def drawOrder @drawOrder end |
Instance Method Details
#to_kml(elem) ⇒ Object
1485 1486 1487 1488 1489 1490 1491 1492 1493 |
# File 'lib/kamelopard/classes.rb', line 1485 def to_kml(elem) super Kamelopard.kml_array(elem, [ [ @color, 'color' ], [ @drawOrder, 'drawOrder' ], ]) icon_to_kml(elem) elem end |