Diesen Artikel gibt es noch nicht auf Deutsch — Sie lesen ihn auf Englisch.
How to Export Only the OpenStreetMap Layers You Need, Not Everything
This article belongs to our "Market pains" series: we collect what people have been complaining about on mapping forums for years and show how the problem is solved on our site, with measurements instead of promises. Today it is the most common complaint we have seen: you cannot take only what you need out of OpenStreetMap.
The pain: "I need three layers and I get everything"
The wording repeats on German, Polish, English-speaking and other forums, and it has repeated almost word for word for twelve years. Someone needs a plan of a neighbourhood: roads, buildings and water. They press "export" and receive the whole city with every layer in it: bus stops, shops, trees, fences, car parks, power lines. From there the story goes one of three ways.
- The monster file. An export of hundreds of megabytes that a design or CAD package opens in minutes, or does not open at all on a laptop with 16 GB of memory. People in those threads call it exactly that: a monster, a file that would not open.
- A refusal on the button itself. The mirror image of the same problem: the standard export has a hard cap on the number of points and answers "too many nodes" for a small district, because it counts everything rather than what you asked for.
- Cleaning by hand. The most patient option: export everything, then spend an hour deleting layers one by one and hope nothing important went with them. One person on a German forum put it plainly: how do I convert only the layers I actually need into a shapefile?
All three share one root. The content of the export is decided after the data has already been collected, so the trimming happens on the receiving side, when the file is already heavy.
How the site solves it
On our site layers are chosen before the file is built. In the map wizard,
right after you pick the area, there is a "Map layers" step. It offers
ready-made layer sets ("Boundaries only", "Boundaries & names", "Normal",
"Detailed", "Maximum") and manual selection, one layer at a time: roads,
buildings, water, railways, greenery, labels and so on. If you order through
the API, the layers field does the same job. You can list whole layers
(["roads", "buildings", "water"]) or their sublayers ("roads.motorway",
"buildings.residential").
Where the trimming happens matters. The layer list goes straight into the database query: whatever you did not choose is never even loaded into memory. So the file is not only cleaner, it is also built faster and comes out lighter.
Measured on a real order
In November 2026 we built two SVG files of the same piece of central Ljubljana, about 1.9 by 1.7 km, with identical settings. The first had no layer selection and used the default set. The second had only roads, buildings and water.
| Default set | Roads, buildings, water | |
|---|---|---|
| Layer groups in the SVG | 101 | 9 |
| Objects in the file | 50,500 | 12,988 |
| SVG size | 16.2 MB | 4.7 MB |
| Build time | 18.2 s | 7.1 s |
The file is 3.5 times lighter, it holds about a quarter of the objects and it was built two and a half times faster. The nine remaining groups are the layers themselves plus their labels: street and water names come with the layers you selected, you do not have to switch them on separately.


Earlier measurements show the same thing for other formats. In August 2026 a GeoPackage export with one layer instead of 41 came out 7.77 times smaller. An order for buildings and roads only produced a shapefile archive with exactly two folders and a GeoPackage with exactly two layers, instead of 41.
What it means in practice
- You need a plan for a drawing: take roads and buildings without points of interest. The DXF opens straight away and holds as many layers as you selected, no more.
- You need a base for a design: roads, water and greenery without buildings. SVG and CDR files stay light even for a large area.
- You need data for GIS work: pick only the layers you are going to analyse. Fewer files in the archive means less cleaning afterwards.
- You are not sure which set fits: start with "Normal" and remove what you do not need. Every layer you drop is one less thing to delete by hand later.
Questions people ask
Do I lose the labels if I pick only three layers? No. In the measurement above we did not select a separate labels layer, and street and water names still came into the file together with the roads and the water.
Can I add a layer later? Yes: run the same frame again with a different layer list. The area and the settings stay as they were.
Does the layer choice work for every format? Yes. The layers are cut when the data is loaded, before any format is written, so the same list applies to DXF, DWG, SVG, CDR, PDF, shapefile, GeoPackage, GeoJSON and the rest. For a raster image it changes what is drawn on the picture.
If none of the ready-made sets fits your job, write to us and we will build the map for you.