Class: Ruflet::UI::Controls::RufletComponents::PolygonMarkerControl
- Inherits:
-
Control
- Object
- Control
- Ruflet::UI::Controls::RufletComponents::PolygonMarkerControl
- Defined in:
- lib/ruflet_ui/ruflet/ui/controls/materials/map_controls.rb
Constant Summary collapse
- TYPE =
"polygonmarker".freeze
- WIRE =
"PolygonMarker".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, coordinates: nil, color: nil, border_color: nil, border_stroke_width: nil, disable_holes_border: nil, label: nil) ⇒ PolygonMarkerControl
constructor
A new instance of PolygonMarkerControl.
Methods inherited from Control
#emit, generate_id, #has_handler?, #on, #to_patch
Constructor Details
#initialize(id: nil, coordinates: nil, color: nil, border_color: nil, border_stroke_width: nil, disable_holes_border: nil, label: nil) ⇒ PolygonMarkerControl
Returns a new instance of PolygonMarkerControl.
210 211 212 213 214 215 216 217 218 219 |
# File 'lib/ruflet_ui/ruflet/ui/controls/materials/map_controls.rb', line 210 def initialize(id: nil, coordinates: nil, color: nil, border_color: nil, border_stroke_width: nil, disable_holes_border: nil, label: nil) props = {} props[:coordinates] = coordinates unless coordinates.nil? props[:color] = color unless color.nil? props[:border_color] = border_color unless border_color.nil? props[:border_stroke_width] = border_stroke_width unless border_stroke_width.nil? props[:disable_holes_border] = disable_holes_border unless disable_holes_border.nil? props[:label] = label unless label.nil? super(type: TYPE, id: id, **props) end |