NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Maps exported from OSM in SVG file format contain a large black background that extend beyond the map area I've selected. So far, I've been unable to remove this black background. I've tried about 6 vector graphics applications and none allow me to edit / remove this black area surrounding the area I've selected in OSM.

Is there a setting I've missed or some other way to prevent this extended black background from the SVG export?

The attached screenshot shows the problem. This is a cropped screenshot. The black background in the actual file exported from OPS is much larger.

Thank you for any advise or help.


asked 17 Mar '20, 14:01

Sccardais's gravatar image

accept rate: 0%

It's probably not a black background in the file. My guess is that some of the features (like the roads and railway lines in your example) stretch beyond the area that you've selected, so they are included in the file. When you are viewing your map, you see the area that you select, plus extra space around it so that the long roads are shown too. So you aren't trying to remove the black background, what you want to do is trim off (crop) all the extra bits that stick out around the selected area.

Or you could set a background colour for your document, or add a big rectangle below everything with the same colour as the land. But you would need to be aware that only some features are shown beyond the original extent of the map.

permanent link

answered 17 Mar '20, 17:57

Andy%20Allan's gravatar image

Andy Allan
accept rate: 28%


A tutorial for cropping exports with Sketch :

The general documentation to do this with InkScape (Free Software) :

More details and alternatives on the wiki :

(17 Mar '20, 18:32) H_mlet

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 17 Mar '20, 14:01

question was seen: 1,829 times

last updated: 17 Mar '20, 18:33

NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum