Module: Kamelopard::Icon
Overview
Corresponds to the KML Icon object
Instance Attribute Summary collapse
-
#h ⇒ Object
Returns the value of attribute h.
-
#href ⇒ Object
Returns the value of attribute href.
-
#httpQuery ⇒ Object
Returns the value of attribute httpQuery.
-
#refreshInterval ⇒ Object
Returns the value of attribute refreshInterval.
-
#refreshMode ⇒ Object
Returns the value of attribute refreshMode.
-
#viewBoundScale ⇒ Object
Returns the value of attribute viewBoundScale.
-
#viewFormat ⇒ Object
Returns the value of attribute viewFormat.
-
#viewRefreshMode ⇒ Object
Returns the value of attribute viewRefreshMode.
-
#viewRefreshTime ⇒ Object
Returns the value of attribute viewRefreshTime.
-
#w ⇒ Object
Returns the value of attribute w.
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
Instance Method Summary collapse
Instance Attribute Details
#h ⇒ Object
Returns the value of attribute h.
1304 1305 1306 |
# File 'lib/kamelopard/classes.rb', line 1304 def h @h end |
#href ⇒ Object
Returns the value of attribute href.
1304 1305 1306 |
# File 'lib/kamelopard/classes.rb', line 1304 def href @href end |
#httpQuery ⇒ Object
Returns the value of attribute httpQuery.
1304 1305 1306 |
# File 'lib/kamelopard/classes.rb', line 1304 def httpQuery @httpQuery end |
#refreshInterval ⇒ Object
Returns the value of attribute refreshInterval.
1304 1305 1306 |
# File 'lib/kamelopard/classes.rb', line 1304 def refreshInterval @refreshInterval end |
#refreshMode ⇒ Object
Returns the value of attribute refreshMode.
1304 1305 1306 |
# File 'lib/kamelopard/classes.rb', line 1304 def refreshMode @refreshMode end |
#viewBoundScale ⇒ Object
Returns the value of attribute viewBoundScale.
1304 1305 1306 |
# File 'lib/kamelopard/classes.rb', line 1304 def viewBoundScale @viewBoundScale end |
#viewFormat ⇒ Object
Returns the value of attribute viewFormat.
1304 1305 1306 |
# File 'lib/kamelopard/classes.rb', line 1304 def viewFormat @viewFormat end |
#viewRefreshMode ⇒ Object
Returns the value of attribute viewRefreshMode.
1304 1305 1306 |
# File 'lib/kamelopard/classes.rb', line 1304 def viewRefreshMode @viewRefreshMode end |
#viewRefreshTime ⇒ Object
Returns the value of attribute viewRefreshTime.
1304 1305 1306 |
# File 'lib/kamelopard/classes.rb', line 1304 def viewRefreshTime @viewRefreshTime end |
#w ⇒ Object
Returns the value of attribute w.
1304 1305 1306 |
# File 'lib/kamelopard/classes.rb', line 1304 def w @w end |
#x ⇒ Object
Returns the value of attribute x.
1304 1305 1306 |
# File 'lib/kamelopard/classes.rb', line 1304 def x @x end |
#y ⇒ Object
Returns the value of attribute y.
1304 1305 1306 |
# File 'lib/kamelopard/classes.rb', line 1304 def y @y end |
Instance Method Details
#icon_to_kml(elem = nil) ⇒ Object
1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 |
# File 'lib/kamelopard/classes.rb', line 1311 def icon_to_kml(elem = nil) @icon_id = "#{Kamelopard.id_prefix}Icon_#{Kamelopard.get_next_id}" if @icon_id.nil? k = XML::Node.new 'Icon' k.attributes['id'] = @icon_id Kamelopard.kml_array(k, [ [@href, 'href'], [@x, 'gx:x'], [@y, 'gx:y'], [@w, 'gx:w'], [@h, 'gx:h'], [@refreshMode, 'refreshMode'], [@refreshInterval, 'refreshInterval'], [@viewRefreshMode, 'viewRefreshMode'], [@viewRefreshTime, 'viewRefreshTime'], [@viewBoundScale, 'viewBoundScale'], [@viewFormat, 'viewFormat'], [@httpQuery, 'httpQuery'], ]) elem << k unless elem.nil? k end |