Class: Kamelopard::ScreenOverlay
- Defined in:
- lib/kamelopard/classes.rb
Overview
Corresponds to KML’s ScreenOverlay object
Instance Attribute Summary collapse
-
#balloonVisibility ⇒ Object
Returns the value of attribute balloonVisibility.
-
#overlayXY ⇒ Object
Returns the value of attribute overlayXY.
-
#rotation ⇒ Object
Returns the value of attribute rotation.
-
#rotationXY ⇒ Object
Returns the value of attribute rotationXY.
-
#screenXY ⇒ Object
Returns the value of attribute screenXY.
-
#size ⇒ Object
Returns the value of attribute size.
Attributes inherited from Overlay
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
#comment, #kml_id, #master_only
Instance Method Summary collapse
Methods inherited from Overlay
Methods included from Icon
Methods inherited from Feature
add_author, #extended_data_to_kml, #hide, #initialize, #show, #styles_to_kml, #timespan, #timespan=, #timestamp, #timestamp=
Methods included from Snippet
Methods inherited from Object
#_alternate_to_kml, #change, #initialize, #master_only?
Constructor Details
This class inherits a constructor from Kamelopard::Overlay
Instance Attribute Details
#balloonVisibility ⇒ Object
Returns the value of attribute balloonVisibility.
1869 1870 1871 |
# File 'lib/kamelopard/classes.rb', line 1869 def balloonVisibility @balloonVisibility end |
#overlayXY ⇒ Object
Returns the value of attribute overlayXY.
1869 1870 1871 |
# File 'lib/kamelopard/classes.rb', line 1869 def @overlayXY end |
#rotation ⇒ Object
Returns the value of attribute rotation.
1869 1870 1871 |
# File 'lib/kamelopard/classes.rb', line 1869 def rotation @rotation end |
#rotationXY ⇒ Object
Returns the value of attribute rotationXY.
1869 1870 1871 |
# File 'lib/kamelopard/classes.rb', line 1869 def rotationXY @rotationXY end |
#screenXY ⇒ Object
Returns the value of attribute screenXY.
1869 1870 1871 |
# File 'lib/kamelopard/classes.rb', line 1869 def screenXY @screenXY end |
#size ⇒ Object
Returns the value of attribute size.
1869 1870 1871 |
# File 'lib/kamelopard/classes.rb', line 1869 def size @size end |
Instance Method Details
#to_kml(elem = nil) ⇒ Object
1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 |
# File 'lib/kamelopard/classes.rb', line 1871 def to_kml(elem = nil) k = XML::Node.new 'ScreenOverlay' super k @overlayXY.to_kml('overlayXY', k) unless @overlayXY.nil? @screenXY.to_kml('screenXY', k) unless @screenXY.nil? @rotationXY.to_kml('rotationXY', k) unless @rotationXY.nil? @size.to_kml('size', k) unless @size.nil? if ! @rotation.nil? then d = XML::Node.new 'rotation' d << @rotation.to_s k << d end if ! @balloonVisibility.nil? then x = XML::Node.new 'gx:balloonVisibility' x << ( @balloonVisibility ? 1 : 0 ) k << x end elem << k unless elem.nil? k end |