From fa14020d69c7d1f75211c4c41d30c004aac95845 Mon Sep 17 00:00:00 2001 From: David Manthey Date: Fri, 13 Jan 2023 16:31:29 -0500 Subject: [PATCH] Add geojson to known mime types --- CHANGELOG.md | 1 + girder/girder_large_image/__init__.py | 1 + girder/girder_large_image/web_client/views/itemViewCodemirror.js | 1 + 3 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0195339be..d731d8359 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ### Improvements - Better parse svs pixel size in tiff and tifffile sources ([#1021](../../pull/1021)) +- Add geojson to known mime types ([#1022](../../pull/1022)) ## 1.19.1 diff --git a/girder/girder_large_image/__init__.py b/girder/girder_large_image/__init__.py index 2e04084e6..b94f0a5a7 100644 --- a/girder/girder_large_image/__init__.py +++ b/girder/girder_large_image/__init__.py @@ -241,6 +241,7 @@ def handleFileSave(event): for mimeType, ext, std in [ ('text/yaml', '.yaml', True), ('text/yaml', '.yml', True), + ('application/vnd.geo+json', '.geojson', True), ]: if ext not in mimetypes.types_map: mimetypes.add_type(mimeType, ext, std) diff --git a/girder/girder_large_image/web_client/views/itemViewCodemirror.js b/girder/girder_large_image/web_client/views/itemViewCodemirror.js index 0a7280163..cafe8b9c7 100644 --- a/girder/girder_large_image/web_client/views/itemViewCodemirror.js +++ b/girder/girder_large_image/web_client/views/itemViewCodemirror.js @@ -153,6 +153,7 @@ const Formats = { } } }; +Formats['application/vnd.geo+json'] = Formats['application/json']; Formats['text/x-yaml'] = Formats['text/yaml']; function lintGirderIni(text, callback) {