diff --git a/src/frontend/src/components/GenerateBasemap.jsx b/src/frontend/src/components/GenerateBasemap.jsx index a576d331c7..a569d38239 100644 --- a/src/frontend/src/components/GenerateBasemap.jsx +++ b/src/frontend/src/components/GenerateBasemap.jsx @@ -69,137 +69,149 @@ const GenerateBasemap = ({ setToggleGenerateModal, toggleGenerateModal, projectI - {/* Output Format Dropdown */} - - - - Select Output Format - - { - setSelectedOutputFormat(e.target.value); - }} - > - {environment.tileOutputFormats?.map((form) => ( - - {form.label} - - ))} - - - + + {/* Output Format Dropdown */} + + + + Select Output Format + + { + setSelectedOutputFormat(e.target.value); + }} + > + {environment.tileOutputFormats?.map((form) => ( + + {form.label} + + ))} + + + - {/* Tile Source Dropdown or TMS URL Input */} - - - - Select Tile Source - - - {environment.baseMapProviders?.map((form) => ( - - {form.label} - - ))} - - {selectedTileSource === 'tms' && ( - + {/* Tile Source Dropdown or TMS URL Input */} + + + + Select Tile Source + + + {environment.baseMapProviders?.map((form) => ( + + {form.label} + + ))} + + + + {selectedTileSource === 'tms' && ( + + - )} - - - - {/* Generate Button */} - - { - // Check if 'tms' is selected and tmsUrl is not empty - if (selectedTileSource === 'tms' && !tmsUrl) { - // Handle error, TMS URL is required - console.log('TMS URL is required'); - return; - } + + )} + +
+ {/* Generate Button */} +
+ { + // Check if 'tms' is selected and tmsUrl is not empty + if (selectedTileSource === 'tms' && !tmsUrl) { + // Handle error, TMS URL is required + console.log('TMS URL is required'); + return; + } - dispatch( - GenerateProjectTiles( - `${ - import.meta.env.VITE_API_URL - }/projects/tiles/${decodedId}?source=${selectedTileSource}&format=${selectedOutputFormat}&tms=${tmsUrl}`, - decodedId, - ), - ); - }} - > - Generate - - + dispatch( + GenerateProjectTiles( + `${ + import.meta.env.VITE_API_URL + }/projects/tiles/${decodedId}?source=${selectedTileSource}&format=${selectedOutputFormat}&tms=${tmsUrl}`, + decodedId, + ), + ); + }} + > + Generate + +
- {/* Refresh Button */} - - { - getTilesList(); - }} - > - Refresh - + {/* Refresh Button */} +
+ { + getTilesList(); + }} + > + Refresh + +
+
+
{/* Table Content */}