/** * Renders the street view control * * @param Ivory\GoogleMapBundle\Model\Controls\StreetViewControl $streetViewControl * @return string HTML output */ public function render(StreetViewControl $streetViewControl) { return $this->jsonBuilder->reset()->setValue('[position]', $this->controlPositionHelper->render($streetViewControl->getControlPosition()), false)->build(); }
public function testInitialState() { $this->streetViewControl = new StreetViewControl(ControlPosition::BOTTOM_CENTER); $this->assertSame(ControlPosition::BOTTOM_CENTER, $this->streetViewControl->getControlPosition()); }