src/Cornford/Googlmapper/Mapper.php
public function render($item = -1)
	{
		if (!$this->isEnabled()) {
			return;
		}

		return $this->view->make('googlmapper::mapper')
			->withView($this->view)
			->withOptions($this->generateRenderOptions($item))
			->withItems($item > -1 ? [$item => $this->getItem($item)] : $this->getItems())
			->render();
	}
public function render($item = -1)
	{
		if (!$this->isEnabled()) {
			return;
		}

		return $this->view->make('googlmapper::mapper')
			->withView($this->view)
			->withOptions($this->generateRenderOptions($item))
			->withItems($item > -1 ? [$item => $this->getItem($item)] : $this->getItems())
			->render();
	}
public function render ( $ item = - 1 ) { if ( ! $ this -> isEnabled ( ) ) { return ; } return $ this -> view -> make ( 'googlmapper::mapper' ) -> withView ( $ this -> view ) -> withOptions ( $ this -> generateRenderOptions ( $ item ) ) -> withItems ( $ item > - 1 ? [ $ item => $ this -> getItem ( $ item ) ] : $ this -> getItems ( ) ) -> render ( ) ; }
Renders and returns Google Map code.

@param integer $item

@return string
Renders and returns Google Map code .