/**
  * Renders a rotate control.
  *
  * @param \Ivory\GoogleMap\Controls\RotateControl $rotateControl The rotate control.
  *
  * @return string The JS output.
  */
 public function render(RotateControl $rotateControl)
 {
     return $this->jsonBuilder->reset()->setValue('[position]', $this->controlPositionHelper->render($rotateControl->getControlPosition()), false)->build();
 }
 public function testInitialState()
 {
     $this->rotateControl = new RotateControl(ControlPosition::LEFT_CENTER);
     $this->assertSame(ControlPosition::LEFT_CENTER, $this->rotateControl->getControlPosition());
 }