src/Presenters/BusinessPresenter.php
public function staticMap($zoom = 15)
    {
        $data = [
            'center'         => $this->wrappedObject->postal_address,
            'zoom'           => intval($zoom),
            'scale'          => '2',
            'size'           => '180x100',
            'maptype'        => 'roadmap',
            'format'         => 'gif',
            'visual_refresh' => 'true', ];

        $src = 'http://maps.googleapis.com/maps/api/staticmap?'.http_build_query($data, '', '&amp;');

        return "<img class=\"img-responsive img-thumbnail center-block\" width=\"180\" height=\"100\" src=\"$src\"/>";
    }
public function staticMap($zoom = 15)
    {
        $data = [
            'center'         => $this->wrappedObject->postal_address,
            'zoom'           => intval($zoom),
            'scale'          => '2',
            'size'           => '180x100',
            'maptype'        => 'roadmap',
            'format'         => 'gif',
            'visual_refresh' => 'true', ];

        $src = 'http://maps.googleapis.com/maps/api/staticmap?'.http_build_query($data, '', '&amp;');

        return "<img class=\"img-responsive img-thumbnail center-block\" width=\"180\" height=\"100\" src=\"$src\"/>";
    }
public function staticMap ( $ zoom = 15 ) { $ data = [ 'center' => $ this -> wrappedObject -> postal_address , 'zoom' => intval ( $ zoom ) , 'scale' => '2' , 'size' => '180x100' , 'maptype' => 'roadmap' , 'format' => 'gif' , 'visual_refresh' => 'true' , ] ; $ src = 'http://maps.googleapis.com/maps/api/staticmap?' . http_build_query ( $ data , '' , '&amp;' ) ; return "<img class=\"img-responsive img-thumbnail center-block\" width=\"180\" height=\"100\" src=\"$src\"/>" ; }
get Google Static Map img.

@param int $zoom Zoom Level

@return string HTML code to render img with map
get Google Static Map img .