require feature layer and query