Class: Ruflet::UI::Controls::RufletComponents::MarkerLayerControl
- Inherits:
-
Control
- Object
- Control
- Ruflet::UI::Controls::RufletComponents::MarkerLayerControl
- Defined in:
- lib/ruflet_ui/ruflet/ui/controls/materials/map_controls.rb
Constant Summary collapse
- TYPE =
"markerlayer".freeze
- WIRE =
"MarkerLayer".freeze
Constants inherited from Control
Instance Attribute Summary
Attributes inherited from Control
#children, #id, #props, #runtime_page, #type, #wire_id
Instance Method Summary collapse
-
#initialize(id: nil, markers: nil, rotate: nil, visible: nil) ⇒ MarkerLayerControl
constructor
A new instance of MarkerLayerControl.
Methods inherited from Control
#emit, generate_id, #has_handler?, #on, #to_patch
Constructor Details
#initialize(id: nil, markers: nil, rotate: nil, visible: nil) ⇒ MarkerLayerControl
Returns a new instance of MarkerLayerControl.
111 112 113 114 115 116 117 |
# File 'lib/ruflet_ui/ruflet/ui/controls/materials/map_controls.rb', line 111 def initialize(id: nil, markers: nil, rotate: nil, visible: nil) props = {} props[:markers] = markers unless markers.nil? props[:rotate] = rotate unless rotate.nil? props[:visible] = visible unless visible.nil? super(type: TYPE, id: id, **props) end |