Skip to content

Commit

Permalink
Fixes #570: cesium wms single tile layer not working when multiple ur…
Browse files Browse the repository at this point in the history
…ls are used (#571)
  • Loading branch information
mbarto committed May 16, 2016
1 parent a7ccad7 commit 58a984b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/client/components/map/cesium/plugins/WMSLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function wmsToCesiumOptionsSingleTile(options) {
}, options.params || {});

return {
url: options.url + '?service=WMS&version=1.1.0&request=GetMap&' + getQueryString(parameters)
url: (isArray(options.url) ? options.url[Math.round(Math.random() * (options.url.length - 1))] : options.url) + '?service=WMS&version=1.1.0&request=GetMap&' + getQueryString(parameters)
};
}

Expand Down

0 comments on commit 58a984b

Please sign in to comment.