function setWidth($width) {
        if(!preg_match('!^(\d+)(.*)$!',$width,$_match))
            return false;

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

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

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