planning
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s

This commit is contained in:
2024-10-14 09:15:30 +02:00
parent bcba00a730
commit 6e64e138e2
21059 changed files with 2317811 additions and 1 deletions

27
node_modules/ol/uri.js generated vendored Normal file
View File

@@ -0,0 +1,27 @@
/**
* @module ol/uri
*/
/**
* Appends query parameters to a URI.
*
* @param {string} uri The original URI, which may already have query data.
* @param {!Object} params An object where keys are URI-encoded parameter keys,
* and the values are arbitrary types or arrays.
* @return {string} The new URI.
*/
export function appendParams(uri, params) {
var keyParams = [];
// Skip any null or undefined parameter values
Object.keys(params).forEach(function (k) {
if (params[k] !== null && params[k] !== undefined) {
keyParams.push(k + '=' + encodeURIComponent(params[k]));
}
});
var qs = keyParams.join('&');
// remove any trailing ? or &
uri = uri.replace(/[?&]$/, '');
// append ? or & depending on whether uri has existing parameters
uri = uri.indexOf('?') === -1 ? uri + '?' : uri + '&';
return uri + qs;
}
//# sourceMappingURL=uri.js.map