Class: Ruflet::UI::Controls::RufletComponents::PolylineLayerControl
- Inherits:
-
Control
- Object
- Control
- Ruflet::UI::Controls::RufletComponents::PolylineLayerControl
- Defined in:
- lib/ruflet_ui/ruflet/ui/controls/materials/map_controls.rb
Constant Summary collapse
- TYPE =
"polylinelayer".freeze
- WIRE =
"PolylineLayer".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, polylines: nil, visible: nil) ⇒ PolylineLayerControl
constructor
A new instance of PolylineLayerControl.
Methods inherited from Control
#emit, generate_id, #has_handler?, #on, #to_patch
Constructor Details
#initialize(id: nil, polylines: nil, visible: nil) ⇒ PolylineLayerControl
Returns a new instance of PolylineLayerControl.
168 169 170 171 172 173 |
# File 'lib/ruflet_ui/ruflet/ui/controls/materials/map_controls.rb', line 168 def initialize(id: nil, polylines: nil, visible: nil) props = {} props[:polylines] = polylines unless polylines.nil? props[:visible] = visible unless visible.nil? super(type: TYPE, id: id, **props) end |