From 79f3ed8c3efd5f64e2f3e8e38683534cf037c5ef Mon Sep 17 00:00:00 2001 From: Sathish Kesavaperumal Date: Wed, 7 Mar 2018 19:55:44 +0530 Subject: [PATCH] feat(olHelpers.js):Support for custom projection in TileWMS source Layer. --- src/services/olHelpers.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/services/olHelpers.js b/src/services/olHelpers.js index 7ef668ea..6682a35f 100644 --- a/src/services/olHelpers.js +++ b/src/services/olHelpers.js @@ -286,6 +286,10 @@ angular.module('openlayers-directive').factory('olHelpers', function($q, $log, $ wrapX: source.wrapX !== undefined ? source.wrapX : true }; + if (source.projection) { + wmsConfiguration.projection = source.projection; + } + if (source.serverType) { wmsConfiguration.serverType = source.serverType; }