Convert a Street Map into Vector with Inkscape

If you need a street map for a website, you can simply embed the map source code. When it comes to graphic design though, you may need a streamlined vector of a specific map area to get the job done. Let’s make a map vector in this Inkscape tutorial!

1. Getting the Map

Step 1

We’ll begin by going to to find the specific area we want to vectorize. When you do, click the Share button to the right.


Step 2

You’ll have the option to Set custom dimensions, which is a good idea. When you’re done, just make sure the Format is SVG and then click Download.

openstreetmap svg

Step 3

When you open up the map SVG in Inkscape, you might get something like this. I’d like to clean this up a bit, so let’s first select the map and Object > Ungroup before we get started.

openstreetmap inkscape

2. Cleaning the Map

Step 1

First, select one of these purple lines and head up to Edit > Select Same > Stroke Color which will select all of them. Now we can just hit Delete (what a cool feature, by the way.)

select similar stroke color

Step 2

With that part cleaned up, I was wondering if somebody would possibly want to remove all of these street names (they do look pretty dingy).

map vector in inkscape

Step 3

It looks like uses an absolute ton of symbols for the text, which makes the SVG file gigantic. The best way I’ve found to remove all of these at once is to open the SVG in a text/html editor and remove the symbols group manually. Below, I’m using Brackets to find the start of the symbols group (around line 50).

inkscape remove all symbols

Step 4

Thankfully, Brackets has the ability to collapse this whole group, because there’s some 10,000+ lines of it. We don’t need any of it, so I just shift+clicked from the <g> and again to the </g> and hit Delete. Bam! A whole megabyte of symbols gone! Make sure to save before you close out.

brackets collapse tag

Step 5

Open up the map in Inkscape once again. It may look like all of the text is gone, but a little zooming will reveal these nasty white text outlines. Select one of them and head up to Edit > Select Same > Fill and Stroke, then press Delete. Easy enough!

remove white outlines

3. Finishing Touches

Step 1

Now that the purple lines and text are all gone, we can tighten this up a bit to make it usable in a project. First, select the whole map and Object > Group.

cleaned openstreetmap svg

Step 2

Now I just drew a rounded square using the Rectangle tool to use as a clipping shape. Select the rounded square and the map, then head up to Object > Clip > Set.

rounded square clip

Step 3

Finally, you can do something like adding a border and a map pin.

clipped map rounded

That’s It!

This was certainly an interesting use of Inkscape’s features, but we ended up with a clean, useable map vector! This method will be especially useful for printing, because a raster of a street map would most likely come out blurry and undefined. You could also pick your favorite font and add some of the important street names back in. Either way, I hope this helps you out somewhere down the road. Thanks for reading!