Request a Personalized Demo

Learn how to accurately convert your designs with Scan2CAD

  • Join thousands of happy customers worldwide

How to Convert a Google Map to DWG

Google maps logo, DWG file icon

Urban designers and various construction professionals will, at some point in their career, be tasked to draft up plans of city maps or locations with little to no source materials available to copy. In these cases, Google Maps would often be a drafter’s best friend.

But with the daunting task of manually tracing over a Google Maps screenshot to copy the needed map information, most drafting professionals find that using Google Maps as a reference is somewhat tedious and inefficient. Luckily, users can do a bulk of the work of converting the map into a vector file using some clever tricks with Google Chrome’s source code and Scan2CAD’s automatic raster-to-vector functionalities.

Video tutorial: Converting Google Maps to DWG

View video transcript

Hey there, everyone! So today, I’m gonna be showing you guys how to get a map that you get from… Or you export from Google Maps, turn into a Raster image that we can convert on Scan2CAD, and then turn that into a Vector object that you can then edit or change using your preferred CAD software. So first things first, let’s open up Maps. If you notice here, there are a lot of labels and tags that we wanna get rid of. There really isn’t a native way to do this, but there’s a way we can sort of mess with the source or the source code of the page itself, to get rid of the app itself. When you go to satellite mode, there’s a way that we can turn off the labels, but then again this isn’t what we wanna export on to the Scan2CAD. It’s not gonna be a clean copy. Ideally, we wanna use map mode. So what we can do is right click here, then inspect. This is gonna be a bit complicated, so feel free to pause the video and check what I’m doing so you can do exactly what it is that I’m doing. So first thing you wanna do is turn labels on, and as you can see here in labels off, there was this object that was included, Style Display On. I want you to select the whole thing, and then delete that and press Enter. What that does is it makes this viewable now on satellite.

Now next thing. Go to Map View and then if you scroll up here, you’re going to see something on this. It says, Style Display none. You’re going to want to delete that as well. Press Enter. And now when you press on this button here, you can click on Labels Off and it takes away the labels here in map mode. In classic Google Maps, I think there’s a way to do that easily, but right now there really isn’t a way to do it easily here on the new Google Maps web version. So that’s the only way to do that. I wanted to find something that’s clean and something that you want to convert. The next step would just be to print it as a PDF, or you can screenshot it if you want as well. You can print it here. Select Print, just make it as big as you want. I think the largest available size for me here would be A-zero, so let’s just click Save and GoogleMaps.pdf, that should be good. The next step would be to open up the Scan2CAD, open up the file. Now with the PDF, it can actually carry both Vector and Raster objects. With Google Map files, for some reason, it has a Vector object that kind of covers the Raster object. All we need to do is to click on Okay here and just close the vector object, so we can close this so we don’t have to save it. No. And what we’re left with is the Raster object. Next step would be to clean it up.

This clean image… This is tricky, ’cause we have to find a level that shows the outlines of the buildings… Well, not completely making the buildings black solid objects. So, I think 240, 241 usually does it. 240 should be good. Maybe a bit more. Okay. I think we should be good. The next step would be then maybe just click Smooth and Thicken Lines, as well. Click on Okay here. Then the next step would be to convert the image itself. So just click on there, Convert, Technical Vectorize. Here on Object Identification, let’s just untick the ones that aren’t in the image. Obviously, there aren’t any arcs there, so we just untick this one. No circles as well. Hair lines, dash lines, catch lines… And then now it should be okay. We can stop the other angles as well, ’cause I think not everything here is 90 and 180 degrees. Now we click on Run and then we’re gonna see a preview of the converted image over here. This looks clean enough. We’re happy with that. I’ll click on Okay. Now we have this vector file, as you can see. All of these are individual vector lines. The last step… Sorry. The second to the last step, rather, is to try and set the scale options here. For example, if we know for a fact that this street is, I don’t know, 100 meters or feet or whatever it is that you prefer to use… Let’s just keep it meters here, for this example.

We just click and drag here. Oh, also we have to make sure we take… Snap the end points, so it snaps at the end point of these lines. Click and drag, click on Calibrate, and let’s say this is, I don’t know, 400 meters, so 400 meters there. Click on Apply. This should set the scale of the whole object appropriately. After we’re okay with that, we just click on File, Save As Vector, and pick whatever format it is that you want. To be safe, I just go with the older DWG format for most objects. And then once we name it and save, click on Okay and that should be good. So I hope that this was helpful, and you guys should have a better time converting Google Map images using Scan2CAD.

Here are the steps to converting a google map export into a workable vector file using Scan2CAD:

Part 1: Exporting a suitable raster image of a map from Google Maps

 

Inspect tool in Google Maps

Using the inspect tool in Google Chrome

 

Step 1 – Navigate to the location you want to vectorize in Google Maps.

Find the zoom level and map placement that works best for you. Be careful not to zoom out too much that there would be an unnecessary amount of details in the image. Also, take care not to zoom in too close that you would be clipping out parts of the map you want to vectorize.

Step 2 – Set it to Map view and not Satellite view.

For most circumstances, we’ll be wanting to vectorize the Map view of the image and not the Satellite version. With any conversion process, the key factor in determining the success of the conversion is the quality of the source image. The raster map we would end up working with when we import using the Satellite view would be more realistic, but it would also have more unnecessary details, shadows, and perspective distortion. Resulting vector images converted from these files would most likely have these issues as well.

Step 3 – Take out the labels on the Map view.

While we can easily do away with the overlay of labels when on the Satellite view, there isn’t a native way to take out the labels in Map view with the current version of Google Maps (Note: If you somehow have access to an older version of Google Maps, there should be an option to do away with labels in Map view). Fortunately, there’s a way for us to work with the source code of the page to finagle our way to a label-free Map view. Do note that if at any point you that you’ve made a mistake along the way, just feel free to refresh the page and start from the first step.

  1. In Satellite view, toggle labels off under the Satellite option in the left “hamburger” pop-out menu . Right-click the Labels off option and click on Inspect at the bottom of the pop-up menu. A dialog box full of the page’s source code should open up to the right of the page.
  2. Click on Labels off again to turn the labels back on. A new line of code should pop up in the dialog box next to ‘Labels off’ that says:  style=”display: none;”

Delete this line of code and press Enter. What this does is it makes the Labels off option that you clicked on in the previous step be viewable and clickable. It should be right next to Labels on under the Satellite option in the left pop-up menu on the page, so feel free to double-check if it’s there to make sure you’ve done the process correctly.

 

  1. Switch back to Map view at this point. In the dialog box of source code, scroll up slightly and find the same line of text that you had deleted in the previous step: style=”display: none;”

It should be slightly above the lines of code that have “Labels on” and “Labels off”. Again, delete this line of code and press Enter to execute. You will now find that the Labels on and Labels off under the Satellite option in the left pop-out menu are viewable even though we’re on Map mode. Take out the labels on your Map view by clicking on Labels off.

 

turn off labels in Google Map view

Turning off labels in Map view

 

Step 4 – At this point, you can go ahead and export the map for you to work on it later on Scan2CAD.

You can screenshot the map with your preferred screen capture tool or you could export it as a PDF. To export it as a PDF, just click on Print in the left pop-out menu. The option would be at the bottom of the list. Click on Print at the top-right corner of the window that opens up. From there, set up these following setting options in the dialog box that follows:

  • Destination: Save as PDF
  • Pages: All
  • Layout: Portrait/Landscape (your discretion)
  • Paper size: A0 (or the largest available size you can select)

Click on Save and save your label-free Map file in your preferred file location.

Part 2: Using Scan2CAD to convert the Google Maps file into a workable vector file

 

Using Scan2CAD to clean up and convert Google Maps image

Using Scan2CAD to clean up and convert Google Maps image

 

Step 1 – Open up the screenshot or the PDF file of the Google Map image you want to convert.

Scan2CAD can handle most raster image and PDF file formats, but if you did end up exporting a PDF file in the previous part, there’s an extra step involved.

If you ended up taking a simple screenshot, feel free to skip the next step.

Step 2 – Delete the Vector part of the PDF file.

Sometimes after exporting a PDF map from Google Maps, the PDF file will also contain a black rectangular vector image. When opening up a PDF file on Scan2CAD, the program will open both the raster and vector parts of the PDF. You can do away with the vector part of the Google Maps PDF by closing the Vector tab that Scan2CAD opens up.

Simply right-click the tab header and select “Close File”. Choose not to save in the dialog box that follows.

Step 3 – Clean up the contents of the Raster tab.

Click on the Clean image tool and a dialog box will pop up. Click on Threshold to turn the image black and white. Experiment with the Simple Threshold slider to find a level that will accurately depict all the necessary details in the image. Values of 230-250 will usually yield good results, but feel free to find a value that works best for your own image.

With the preview image in the dialog box as your reference, aim to get continuous, non-breaking lines and just the right amount of detail that would yield good conversion results. The Smooth and Thicken Lines options might also help with getting a better quality black-and-white image.

Note: You can use the manual editing tools to the left of the Scan2CAD interface to do clean-ups manually. These include the lines tool, rectangle tool, and eraser tool.

Step 4 – Convert the cleaned-up image.

Click on the Convert image button next to Clean image and a dialog box will pop up. For maps, you’ll want to stick to these settings:

  • Vectorization Method: Technical
  • Options: Vectorize
  • Vectorization presets: Architectural

There are various settings you can tweak under the Object Identification tab and some in-depth tutorials on them can be found here in our website, but as a rule of thumb, just make sure to tick all the geometric objects that you know are in the image and untick all of those that aren’t.

The same general rule applies to the options under the Line Tolerance tab in the dialog box.

Once you’re done with the settings, click on Run to generate a preview of the converted image. If you’re happy with the generated preview, click on OK.

Step 5 – Set the scale of the image and do your last-minute edits before saving the converted vector file.

Click on the Measure and scale tool . Set your preferred units in the Unit settings on the right side of the interface and make sure to tick “Snap to End Points”.

Look for a part of your image that has a measurement you are sure of (e.g. a road that you know is 150 ft long, a building edge you know is 100 ft wide, etc.). Click and drag the measurement tool to the two opposite endpoints of that part of your image and then click on Calibrate. This should set the scale of your image right.

Feel free to do your last-minute edits on the converted vector file using the tools that Scan2CAD has. If you have anything more than minor edits to make, you might be better off doing those in your preferred CAD software after saving the converted vector file using Scan2CAD.

Step 6 – Save the converted vector file.

At this point, if you’re happy with the edits and scaling of your converted vector file, all that’s left is to save the file. Click on File > Save as > Vector and in the dialog box that opens, choose the file format that you prefer. If you’re working with a CAD program to edit the converted file, you’ll most likely want to choose DWG or DXF.

Introducing...

One monthly email featuring the best guides for CAD professionals.

8 Responses to How to Convert a Google Map to DWG

  1. RAKESH DUTT Apr 22, 2020 at 5:40 AM #

    Hi,
    I want to use scan2cad. kindly allow.

  2. Sarwan Kumar Jul 10, 2020 at 12:29 PM #

    kindly permission for use scan2cad. kindly allow

  3. Hunter Mead Aug 23, 2020 at 4:35 AM #

    The easiest method would be to just use snazzy maps. There are map styles that look just like googles but with no labels.

    • Luke Aug 24, 2020 at 2:30 PM #

      Great suggestion

  4. areeb Nov 26, 2020 at 7:18 AM #

    hey! can I please know if I can work on huge scale with this? For example if I want to convert a whole cities map into a vector .dwg file, will that be possible?

    • Luke Dec 1, 2020 at 12:08 PM #

      Why not!? It’s just a case of choosing the correct starting image in Google Maps

Leave a Reply to RAKESH DUTT Click here to cancel reply.