Thanks in advance - I am running a self hosted Open Street Map tile server and can access it and fly around the map in the browser to my hearts content.
I would however like to be able to 'download' or otherwise produce on the server '.osm' files based on either the map view, or some supplied co-ords - or any way really.
I have looked through switch2osm and leaflet etc and I can't see what I'm looking for.
If anyone can send a link my way to what I'm looking for I should be forever grateful.
Thanks again!
Try fetching the map bounds (leafletjs method on the map object or plugin like https://github.com/Leaflet/Leaflet.draw), then extract the region from your planet or country .osm/.o5m/*.pbf file with https://osmcode.org/osmium-tool/manual.html#creating-geograp...
An example of my quest might be https://protomaps.com/downloads/osm which allows me to draw on the map and then download a .osm file based on that.