Updated SOS API to handle layers and request parameters