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.
1267 1268 1269 |
# File 'lib/kamelopard/classes.rb', line 1267 def h @h end |
#href ⇒ Object
Returns the value of attribute href.
1267 1268 1269 |
# File 'lib/kamelopard/classes.rb', line 1267 def href @href end |
#httpQuery ⇒ Object
Returns the value of attribute httpQuery.
1267 1268 1269 |
# File 'lib/kamelopard/classes.rb', line 1267 def httpQuery @httpQuery end |
#refreshInterval ⇒ Object
Returns the value of attribute refreshInterval.
1267 1268 1269 |
# File 'lib/kamelopard/classes.rb', line 1267 def refreshInterval @refreshInterval end |
#refreshMode ⇒ Object
Returns the value of attribute refreshMode.
1267 1268 1269 |
# File 'lib/kamelopard/classes.rb', line 1267 def refreshMode @refreshMode end |
#viewBoundScale ⇒ Object
Returns the value of attribute viewBoundScale.
1267 1268 1269 |
# File 'lib/kamelopard/classes.rb', line 1267 def viewBoundScale @viewBoundScale end |
#viewFormat ⇒ Object
Returns the value of attribute viewFormat.
1267 1268 1269 |
# File 'lib/kamelopard/classes.rb', line 1267 def viewFormat @viewFormat end |
#viewRefreshMode ⇒ Object
Returns the value of attribute viewRefreshMode.
1267 1268 1269 |
# File 'lib/kamelopard/classes.rb', line 1267 def viewRefreshMode @viewRefreshMode end |
#viewRefreshTime ⇒ Object
Returns the value of attribute viewRefreshTime.
1267 1268 1269 |
# File 'lib/kamelopard/classes.rb', line 1267 def viewRefreshTime @viewRefreshTime end |
#w ⇒ Object
Returns the value of attribute w.
1267 1268 1269 |
# File 'lib/kamelopard/classes.rb', line 1267 def w @w end |
#x ⇒ Object
Returns the value of attribute x.
1267 1268 1269 |
# File 'lib/kamelopard/classes.rb', line 1267 def x @x end |
#y ⇒ Object
Returns the value of attribute y.
1267 1268 1269 |
# File 'lib/kamelopard/classes.rb', line 1267 def y @y end |
Instance Method Details
#icon_to_kml(elem = nil) ⇒ Object
1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 |
# File 'lib/kamelopard/classes.rb', line 1274 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 |