NOTICE: help.openstreetmap.org 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.

Screenshot

asked 17 Mar '20, 14:01

Sccardais's gravatar image

Sccardais
11112
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
12.5k23128153
accept rate: 28%

1

A tutorial for cropping osm.org exports with Sketch : https://medium.com/@sam__rye/a-guide-to-creating-scalable-vector-maps-92e891f0ad3e

The general documentation to do this with InkScape (Free Software) : https://inkscapetutorials.wordpress.com/2014/04/22/inkscape-faq-how-do-i-crop-in-inkscape/#clipping

More details and alternatives on the wiki : https://wiki.openstreetmap.org/wiki/SVG

(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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×315
×47

question asked: 17 Mar '20, 14:01

question was seen: 2,162 times

last updated: 17 Mar '20, 18:33

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