processBasemapUrl(url) {
		const pixelRatio = window.devicePixelRatio || 1;
		let newUrl = url;

		if (newUrl.includes('{r}')) {
			newUrl = newUrl.replace('{r}', pixelRatio > 1 ? '@2x' : '');
		}

		if (newUrl.includes('{ext}')) {
			newUrl = newUrl.replace('{ext}', 'png'); // Default extension
		}

		return newUrl;
	}
Processes the basemap URL to handle high-resolution displays and specific file extensions.
@param {string} url - The original basemap URL provided by the user.
@returns {string} The processed basemap URL, adapted for different display resolutions and file formats.