From dc5d3ee3c13d9a568f37c5c666d694ba79920bbc Mon Sep 17 00:00:00 2001 From: George Owen Date: Mon, 4 Dec 2023 12:41:32 -0800 Subject: [PATCH] Update src/Util.js Co-authored-by: Gavin Rehkemper --- src/Util.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Util.js b/src/Util.js index e277290..6d558d4 100644 --- a/src/Util.js +++ b/src/Util.js @@ -20,6 +20,14 @@ export function getBasemapStyleUrl (style, apikey) { return url; } +/** + * Utility to establish a URL for the basemap styles API v2 + * + * @param {string} style + * @param {string} token + * @param {Object} [options] Optional list of options: language, worldview, or places. + * @returns {string} the URL + */ export function getBasemapStyleV2Url (style, token, options) { if (style.includes(':')) { throw new Error(style + ' is a v1 style enumeration. Set version:1 to request this style');