index.js
function( queryOptions, callback ) {
		if ( typeof queryOptions === 'function' ) {
			callback = queryOptions;
			queryOptions = {};
		}
		this.capabilities( queryOptions, function( err, capabilities ) {
			if ( err ) {
				debug( 'Error getting service metadata: %j', err );
				return callback( err );
			}
			callback( null, capabilities.service );
		} );
	}
function( queryOptions, callback ) {
		if ( typeof queryOptions === 'function' ) {
			callback = queryOptions;
			queryOptions = {};
		}
		this.capabilities( queryOptions, function( err, capabilities ) {
			if ( err ) {
				debug( 'Error getting service metadata: %j', err );
				return callback( err );
			}
			callback( null, capabilities.service );
		} );
	}
function ( queryOptions , callback ) { if ( typeof queryOptions === 'function' ) { callback = queryOptions ; queryOptions = { } ; } this . capabilities ( queryOptions , function ( err , capabilities ) { if ( err ) { debug ( 'Error getting service metadata: %j' , err ) ; return callback ( err ) ; } callback ( null , capabilities . service ) ; } ) ; }
Gets the WMS service metadata reported in the capabilities as a plain object

@param {Object} [Optional] queryOptions. Options passed as GET parameters
@param {Function} callback.
- {Error} null if nothing bad happened
- {Array} WMS Service metadata as a Plain Object
Gets the WMS service metadata reported in the capabilities as a plain object