diff --git a/README.md b/README.md index 0cebf35..ab3a38f 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ In `config/environment.js` you can specify: - additional Google Maps libraries to be loaded along with this add-on (check the full list [here](https://developers.google.com/maps/documentation/javascript/libraries)), - optional API key or client ID for your application (additional info could be found [here](https://developers.google.com/maps/web/)), +- optional [channel](https://developers.google.com/maps/premium/reports/usage-reports#channels), - optional version number, - optional exclude parameter, which prevents inclusion of the google maps api script tag into the index.html (in case one wants to handle loading of google maps lib by himself), - optional language for map localization, diff --git a/index.js b/index.js index 12dc325..c7dc8c6 100644 --- a/index.js +++ b/index.js @@ -32,6 +32,11 @@ module.exports = { params.push('client=' + encodeURIComponent(client)); } + var channel = gMapConfig.channel; + if (channel) { + params.push('channel=' + encodeURIComponent(channel)); + } + var libraries = gMapConfig.libraries; if (libraries && libraries.length) { params.push('libraries=' + encodeURIComponent(libraries.join(',')));