/**
  * Renders a scale control.
  *
  * @param \Ivory\GoogleMap\Controls\ScaleControl $scaleControl The scale control.
  *
  * @return string The JS output.
  */
 public function render(ScaleControl $scaleControl)
 {
     return $this->jsonBuilder->reset()->setValue('[position]', $this->controlPositionHelper->render($scaleControl->getControlPosition()), false)->setValue('[style]', $this->scaleControlStyleHelper->render($scaleControl->getScaleControlStyle()), false)->build();
 }
 public function testInitialState()
 {
     $this->scaleControl = new ScaleControl(ControlPosition::BOTTOM_CENTER, ScaleControlStyle::DEFAULT_);
     $this->assertSame(ControlPosition::BOTTOM_CENTER, $this->scaleControl->getControlPosition());
     $this->assertSame(ScaleControlStyle::DEFAULT_, $this->scaleControl->getScaleControlStyle());
 }