src/GoogleMapAPI.php
function setHeight($height) {
        if(!preg_match('!^(\d+)(.*)$!',$height,$_match))
            return false;

        $_height = $_match[1];
        $_type = $_match[2];
        if($_type == '%')
            $this->height = $_height . '%';
        else
            $this->height = $_height . 'px';
        
        return true;
    }
function setHeight($height) {
        if(!preg_match('!^(\d+)(.*)$!',$height,$_match))
            return false;

        $_height = $_match[1];
        $_type = $_match[2];
        if($_type == '%')
            $this->height = $_height . '%';
        else
            $this->height = $_height . 'px';
        
        return true;
    }
function setHeight ( $ height ) { if ( ! preg_match ( '!^(\d+)(.*)$!' , $ height , $ _match ) ) return false ; $ _height = $ _match [ 1 ] ; $ _type = $ _match [ 2 ] ; if ( $ _type == '%' ) $ this -> height = $ _height . '%' ; else $ this -> height = $ _height . 'px' ; return true ; }
sets the height of the map

@param string $height
@return string|false Height or false if not a valid value
sets the height of the map