application/modules/g/views/helpers/GoogleStaticMap.php
public function render($options = array()) {
        $options = array_merge($this->_defaults, $options);
        $markers = $this->getMarkersAsString($options);
        $img = '';

        $img .= '<img src="http://maps.google.com/maps/api/staticmap';
        $img .= '?center=' . $options['location']['lat'] . ',' . $options['location']['lng'];
        $img .= '&amp;zoom=' . $options['zoomLevel'];
        $img .= '&amp;size=' . $options['width'] . 'x' . $options['height'];
        $img .= '&amp;maptype=' . $options['mapType'];
        $img .= ($markers ? '&amp;markers=' . $markers : '');
        $img .= '&amp;sensor=' . ($options['sensor'] ? 'true' : 'false') . '" ';
        $img .= 'width="' . $options['width'] . '" height="' . $options['height'] . '" alt="';
        $img .= $options['altText'] . '" class="g-googlemap" />';

        $this->view->script()->src(
            'https://www.google.com/maps/api/js?sensor=' . ($options['sensor'] ? 'true' : 'false')
        );
        return $img;
    }
public function render($options = array()) {
        $options = array_merge($this->_defaults, $options);
        $markers = $this->getMarkersAsString($options);
        $img = '';

        $img .= '<img src="http://maps.google.com/maps/api/staticmap';
        $img .= '?center=' . $options['location']['lat'] . ',' . $options['location']['lng'];
        $img .= '&amp;zoom=' . $options['zoomLevel'];
        $img .= '&amp;size=' . $options['width'] . 'x' . $options['height'];
        $img .= '&amp;maptype=' . $options['mapType'];
        $img .= ($markers ? '&amp;markers=' . $markers : '');
        $img .= '&amp;sensor=' . ($options['sensor'] ? 'true' : 'false') . '" ';
        $img .= 'width="' . $options['width'] . '" height="' . $options['height'] . '" alt="';
        $img .= $options['altText'] . '" class="g-googlemap" />';

        $this->view->script()->src(
            'https://www.google.com/maps/api/js?sensor=' . ($options['sensor'] ? 'true' : 'false')
        );
        return $img;
    }
public function render ( $ options = array ( ) ) { $ options = array_merge ( $ this -> _defaults , $ options ) ; $ markers = $ this -> getMarkersAsString ( $ options ) ; $ img = '' ; $ img .= '<img src="http://maps.google.com/maps/api/staticmap' ; $ img .= '?center=' . $ options [ 'location' ] [ 'lat' ] . ',' . $ options [ 'location' ] [ 'lng' ] ; $ img .= '&amp;zoom=' . $ options [ 'zoomLevel' ] ; $ img .= '&amp;size=' . $ options [ 'width' ] . 'x' . $ options [ 'height' ] ; $ img .= '&amp;maptype=' . $ options [ 'mapType' ] ; $ img .= ( $ markers ? '&amp;markers=' . $ markers : '' ) ; $ img .= '&amp;sensor=' . ( $ options [ 'sensor' ] ? 'true' : 'false' ) . '" ' ; $ img .= 'width="' . $ options [ 'width' ] . '" height="' . $ options [ 'height' ] . '" alt="' ; $ img .= $ options [ 'altText' ] . '" class="g-googlemap" />' ; $ this -> view -> script ( ) -> src ( 'https://www.google.com/maps/api/js?sensor=' . ( $ options [ 'sensor' ] ? 'true' : 'false' ) ) ; return $ img ; }
Render the map

@param array $options
@return string
Render the map