Refactored buildRequestUrlFromEnvelope in WmsLayer