src/Helper/Controls/ScaleControlHelper.php
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 render(ScaleControl $scaleControl)
    {
        return $this->jsonBuilder
            ->reset()
            ->setValue('[position]', $this->controlPositionHelper->render($scaleControl->getControlPosition()), false)
            ->setValue('[style]', $this->scaleControlStyleHelper->render($scaleControl->getScaleControlStyle()), false)
            ->build();
    }
Renders a scale control.

@param \Ivory\GoogleMap\Controls\ScaleControl $scaleControl The scale control.

@return string The JS output.