add optional parameter 'nearest' to topic and layer query to return only the feature nearest to the center of the search geometry, if no custom layer query is used