Class: Ruflet::UI::Controls::RufletComponents::MarkerLayerControl

Inherits:
Control
  • Object
show all
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

Control::HOST_EXPANDED_TYPES

Instance Attribute Summary

Attributes inherited from Control

#children, #id, #props, #runtime_page, #type, #wire_id

Instance Method Summary collapse

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