protected function doRender(InfoWindow $infoWindow, $renderPosition)
    {
        $this->jsonBuilder->reset();

        if ($renderPosition) {
            $this->jsonBuilder->setValue('[position]', $infoWindow->getPosition()->getJavascriptVariable(), false);
        }

        if ($infoWindow->hasPixelOffset()) {
            $this->jsonBuilder->setValue(
                '[pixelOffset]',
                $infoWindow->getPixelOffset()->getJavascriptVariable(),
                false
            );
        }

        $this->jsonBuilder
            ->setValue('[content]', $infoWindow->getContent())
            ->setValues($infoWindow->getOptions());
    }