Class: Kamelopard::NetworkLink
Instance Attribute Summary collapse
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
#maxLines, #snippet_text
Attributes inherited from Object
#comment, #kml_id
Instance Method Summary
collapse
Methods inherited from Feature
add_author, #hide, #show, #styles_to_kml, #timespan, #timespan=, #timestamp, #timestamp=
Methods included from Snippet
#snippet_to_kml
Methods inherited from Object
#change
Constructor Details
#initialize(href = '', options = {}) ⇒ NetworkLink
Returns a new instance of NetworkLink.
1996
1997
1998
1999
2000
2001
2002
2003
|
# File 'lib/kamelopard/classes.rb', line 1996
def initialize(href = '', options = {})
@refreshMode = :onChange
@viewRefreshMode = :never
super options
@link = Link.new(href, refreshMode, viewRefreshMode)
@refreshVisibility = 0
@flyToView = 0
end
|
Instance Attribute Details
#flyToView ⇒ Object
Returns the value of attribute flyToView.
1994
1995
1996
|
# File 'lib/kamelopard/classes.rb', line 1994
def flyToView
@flyToView
end
|
Returns the value of attribute link.
1994
1995
1996
|
# File 'lib/kamelopard/classes.rb', line 1994
def link
@link
end
|
#refreshVisibility ⇒ Object
Returns the value of attribute refreshVisibility.
1994
1995
1996
|
# File 'lib/kamelopard/classes.rb', line 1994
def refreshVisibility
@refreshVisibility
end
|
Instance Method Details
2013
2014
2015
|
# File 'lib/kamelopard/classes.rb', line 2013
def href
link.href
end
|
2025
2026
2027
|
# File 'lib/kamelopard/classes.rb', line 2025
def href=(a)
link.href = a
end
|
#refreshMode ⇒ Object
2005
2006
2007
|
# File 'lib/kamelopard/classes.rb', line 2005
def refreshMode
link.refreshMode
end
|
#refreshMode=(a) ⇒ Object
2017
2018
2019
|
# File 'lib/kamelopard/classes.rb', line 2017
def refreshMode=(a)
link.refreshMode = a
end
|
#to_kml(elem = nil) ⇒ Object
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
|
# File 'lib/kamelopard/classes.rb', line 2029
def to_kml(elem = nil)
e = XML::Node.new 'NetworkLink'
super e
@link.to_kml e
Kamelopard.kml_array(e, [
[@flyToView, 'flyToView'],
[@refreshVisibility, 'refreshVisibility']
])
elem << e unless elem.nil?
e
end
|
#viewRefreshMode ⇒ Object
2009
2010
2011
|
# File 'lib/kamelopard/classes.rb', line 2009
def viewRefreshMode
link.viewRefreshMode
end
|
#viewRefreshMode=(a) ⇒ Object
2021
2022
2023
|
# File 'lib/kamelopard/classes.rb', line 2021
def viewRefreshMode=(a)
link.viewRefreshMode = a
end
|