Skip to content

Commit

Permalink
Update src/Util.js
Browse files Browse the repository at this point in the history
Co-authored-by: Gavin Rehkemper <grehkemper@esri.com>
  • Loading branch information
gowin20 and gavinr-maps authored Dec 4, 2023
1 parent b87a1df commit dc5d3ee
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check failure on line 26 in src/Util.js

View workflow job for this annotation

GitHub Actions / lint

Trailing spaces not allowed

Check failure on line 26 in src/Util.js

View workflow job for this annotation

GitHub Actions / lint

Trailing spaces not allowed

Check failure on line 26 in src/Util.js

View workflow job for this annotation

GitHub Actions / test (Chrome1280x1024)

Trailing spaces not allowed

Check failure on line 26 in src/Util.js

View workflow job for this annotation

GitHub Actions / test (FirefoxTouch)

Trailing spaces not allowed

Check failure on line 26 in src/Util.js

View workflow job for this annotation

GitHub Actions / test (FirefoxNoTouch)

Trailing spaces not allowed

Check failure on line 26 in src/Util.js

View workflow job for this annotation

GitHub Actions / test (Edge, windows-latest)

Trailing spaces not allowed

Check failure on line 26 in src/Util.js

View workflow job for this annotation

GitHub Actions / test (Chrome1280x1024)

Trailing spaces not allowed

Check failure on line 26 in src/Util.js

View workflow job for this annotation

GitHub Actions / test (FirefoxTouch)

Trailing spaces not allowed

Check failure on line 26 in src/Util.js

View workflow job for this annotation

GitHub Actions / test (FirefoxNoTouch)

Trailing spaces not allowed

Check failure on line 26 in src/Util.js

View workflow job for this annotation

GitHub Actions / test (Edge, windows-latest)

Trailing spaces not allowed
* @param {string} token

Check failure on line 27 in src/Util.js

View workflow job for this annotation

GitHub Actions / lint

Trailing spaces not allowed

Check failure on line 27 in src/Util.js

View workflow job for this annotation

GitHub Actions / lint

Trailing spaces not allowed

Check failure on line 27 in src/Util.js

View workflow job for this annotation

GitHub Actions / test (Chrome1280x1024)

Trailing spaces not allowed

Check failure on line 27 in src/Util.js

View workflow job for this annotation

GitHub Actions / test (FirefoxTouch)

Trailing spaces not allowed

Check failure on line 27 in src/Util.js

View workflow job for this annotation

GitHub Actions / test (FirefoxNoTouch)

Trailing spaces not allowed

Check failure on line 27 in src/Util.js

View workflow job for this annotation

GitHub Actions / test (Edge, windows-latest)

Trailing spaces not allowed

Check failure on line 27 in src/Util.js

View workflow job for this annotation

GitHub Actions / test (Chrome1280x1024)

Trailing spaces not allowed

Check failure on line 27 in src/Util.js

View workflow job for this annotation

GitHub Actions / test (FirefoxTouch)

Trailing spaces not allowed

Check failure on line 27 in src/Util.js

View workflow job for this annotation

GitHub Actions / test (FirefoxNoTouch)

Trailing spaces not allowed

Check failure on line 27 in src/Util.js

View workflow job for this annotation

GitHub Actions / test (Edge, windows-latest)

Trailing spaces not allowed
* @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');
Expand Down

0 comments on commit dc5d3ee

Please sign in to comment.