-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FE-15602] Popup image support (#650)
* Image support in map popup wip * Async everything so we can check image size before loading, use template strings for readability * Dont close popup if its the loader, cleanup and organize * Fix copy/paste functionality to copy image url, add a flag for showing image previews or not, styles * Export image file types constants, add a bunch, fix some * Bug fix for image extensions constant, parse URL fully and only compare the path to the known image extensions so we can handle other parts of the URL if they exist --------- Co-authored-by: Todd Mostak <tmostak@gmail.com>
- Loading branch information
Showing
9 changed files
with
2,019 additions
and
1,448 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export const SPINNER_DELAY = 1000 | ||
export const IMAGE_SIZE_LIMIT = 5242880 // 5MB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
export const IMAGE_EXTENSIONS = { | ||
JP2: ".jp2", | ||
TIF: ".tif", | ||
TIFF: ".tiff", | ||
APNG: ".apng", | ||
PNG: ".png", | ||
GIF: ".gif", | ||
JPEG: ".jpeg", | ||
JPG: ".jpg", | ||
WEBP: ".webp", | ||
AVIF: ".avif", | ||
JFIF: ".jfif", | ||
PJPEG: ".pjpeg", | ||
PJP: ".pjp", | ||
SVG: ".svg", | ||
BMP: ".bmp" | ||
} |
Oops, something went wrong.