query for confederate skirmishes; also using helper function getLayerIndex.