function sendQuery() {
      // Split the array in two pieces - splice() mutates the original array.
      request.viewpoints = selections.splice(0, requestSelectionLimit);
      
      // Some math to determine the 'Limit' property, which the limits the size of collections returned
      // for a single selection within a request. 
      // 
      // We divide the total object limit by the number of selections in order to get this limit. 
      // For example, if there were 10 selections we might allow 10 objects per collection for each 
      // selection, but if there is only 1 selection we will allow 100 objects per collection.
      // 
      // The collection limit has a maximum value.
      var collectionsLimit = Math.floor(requestTotalObjectsLimit / request.viewpoints.length);
      request.limit = Math.min(requestCollectionMax, collectionsLimit);
      serviceRequest('query_viewpoints', request).done(doneQuery).fail(failQuery);
    }
// Dispatches a single query to the server.
Dispatches a single query to the server.
Dispatches a single query to the server .
function sendQuery() {
      request.viewpoints = selections.splice(0, requestSelectionLimit);
      We divide the total object limit by the number of selections in order to get this limit. 
      For example, if there were 10 selections we might allow 10 objects per collection for each 
      selection, but if there is only 1 selection we will allow 100 objects per collection.
      The collection limit has a maximum value.
      var collectionsLimit = Math.floor(requestTotalObjectsLimit / request.viewpoints.length);
      request.limit = Math.min(requestCollectionMax, collectionsLimit);
      serviceRequest('query_viewpoints', request).done(doneQuery).fail(failQuery);
    }
function sendQuery ( ) { request . viewpoints = selections . splice ( 0 , requestSelectionLimit ) ; var collectionsLimit = Math . floor ( requestTotalObjectsLimit / request . viewpoints . length ) ; request . limit = Math . min ( requestCollectionMax , collectionsLimit ) ; serviceRequest ( 'query_viewpoints' , request ) . done ( doneQuery ) . fail ( failQuery ) ; }
Dispatches a single query to the server.
Dispatches a single query to the server .
// Split the array in two pieces - splice() mutates the original array. // Some math to determine the 'Limit' property, which the limits the size of collections returned // for a single selection within a request.  //  // We divide the total object limit by the number of selections in order to get this limit.  // For example, if there were 10 selections we might allow 10 objects per collection for each  // selection, but if there is only 1 selection we will allow 100 objects per collection. //  // The collection limit has a maximum value.