tyrasd / overpass-turbo

A web based data mining tool for OpenStreetMap using the Overpass API.
https://overpass-turbo.eu
Other
930 stars 132 forks source link

Load/import file from disk #622

Open FloEdelmann opened 1 year ago

FloEdelmann commented 1 year ago

In the "Load" dialog, you can currently load saved queries from the browser storage, from OSM, and from hard-coded examples. It would be helpful to be able to quickly load a file from disk here, too.

This could look similar to the "Saved Queries (osm.org)" section in that dialog: A button "Load file" in a new section "Load Query from file on disk". Clicking this button should open the browser's file chooser, if possible restricted to *.overpassql files (see also https://github.com/users/FloEdelmann/projects/2?pane=info) and *.txt (for backwards compatibility).

Unsupported file extensions should be restricted after submitting the file chooser.

See also

simon04 commented 1 year ago

A possible implementation might want to use any of: