Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix importing geojson files on firefox on linux (#9912) #9913

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const checkFileType = (file) => {
|| type === 'application/vnd.google-earth.kml+xml'
|| type === 'application/vnd.google-earth.kmz'
|| type === 'application/gpx+xml'
|| type === 'application/geo+json'
|| type === 'application/json'
|| type === 'application/vnd.wmc') {
resolve(file);
Expand Down
1 change: 1 addition & 0 deletions web/client/plugins/longitudinalProfile/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const LONGITUDINAL_VECTOR_LAYER_ID_POINT = 'longitudinal_profile_tool_poi
export const LONGITUDINAL_OWNER = 'LongitudinalTool';
export const FILE_TYPE_ALLOWED = [
"application/json",
"application/geo+json",
"image/x-dxf",
"image/vnd.dxf",
"application/x-zip-compressed",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const readFile = (onWarnings) => (file) => {
const projectionDefs = getConfigProp('projectionDefs') || [];
const supportedProjections = (projectionDefs.length && projectionDefs.map(({code}) => code) || []).concat(["EPSG:4326", "EPSG:3857", "EPSG:900913"]);
// [ ] change this to use filterCRSList
if (type === 'application/json') {
if (type === 'application/json' || type === 'application/geo+json') {
return readJson(file).then(f => {
const projection = get(f, 'map.projection') ?? parseURN(get(f, 'crs'));
if (projection) {
Expand Down
Loading