Skip to content

Commit

Permalink
added geojson Format on UI
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed May 2, 2022
1 parent 21b5e58 commit 5f36b98
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion jobs/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def validate_export_formats(value):
)

for format_name in value:
if format_name not in ['shp','geopackage','garmin_img','kml','mwm','osmand_obf','osm_pbf','osm_xml','bundle','mbtiles','full_pbf']:
if format_name not in ['shp','geojson','geopackage','garmin_img','kml','mwm','osmand_obf','osm_pbf','osm_xml','bundle','mbtiles','full_pbf']:
raise ValidationError(
"Bad format name: %(format_name)s",
params={'format_name': format_name},
Expand Down
6 changes: 6 additions & 0 deletions ui/app/components/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ import { selectIsLoggedIn, selectIsLoggingIn } from "../selectors";
import styles from "../styles/utilsStyles.css";

export const AVAILABLE_EXPORT_FORMATS = {
geojson: (
<span key="geojson">
Geojson <code>.geojson</code>
</span>
),
geopackage: (
<span key="geopackage">
GeoPackage <code>.gpkg</code>
Expand Down Expand Up @@ -77,6 +82,7 @@ export const AVAILABLE_EXPORT_FORMATS = {

export const REQUIRES_FEATURE_SELECTION = {
shp: true,
geojson:true,
geopackage: true,
garmin_img: true,
kml: true,
Expand Down

1 comment on commit 5f36b98

@kshitijrajsharma
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.