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 avoid the bulky work of converting the maps into a vector file manually and rather convert the Google maps to DWG using some clever tricks either using Google Chrome’s source code or Scan2CAD’s automatic raster-to-vector functionalities.
Table of Contents
- Video tutorial: Converting Google Maps to DWG
- Part 1: Exporting a suitable raster image of a map from Google Maps
- Part 2: Using Scan2CAD to convert the Google Maps file into a workable vector file
- Frequently Asked Questions (FAQ)
Here are the steps to converting a google map export into a workable vector file using Scan2CAD:
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. The 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 the 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’ve made a mistake along the way, just feel free to refresh the page and start from the first step.
- 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.
- 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.
- Switch back to Map view at this point. In the dialog box of the 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.
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 the 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.
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 on 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. If you wanted to convert a Google map to DWG, then you should choose the DWG file format.
Not directly. You will need to first convert the Google map to DWG file format for you to be able to open and possibly edit it on AutoCAD.
To convert Google maps to an AutoCAD readable file, you will need to follow the steps outlined in the ‘Part 2: Using Scan2CAD to convert the Google Maps file into a workable vector file’ section above and when it comes to the last part of saving the generated vector file you choose either to save it as a DWG or DXF file to enable the file to be opened by any DWG viewer including AutoCAD.
Then click ‘Sign In To Autodesk Account’ at the top-right of the application window and enter your ‘Autodesk ID (or email address) and password and click sign in. Then click the ‘Geolocation’ tab, scroll to the ‘Online Maps’ map type drop-down panel and click on Map Aerial, Map Road, or Map Hybrid depending on what you want to use. The map should be displayed in your drawing once you finish.
In AutoCAD, the option to overlay (including Google maps overlays) or attach an External reference (xrefs) is available under the ‘Reference Type’ section of the ‘Attach External Reference’ menu in AutoCAD.
To insert a Google maps overlay in AutoCAD, go to the ‘Select Reference File’ dialog box, and select the file you want to attach (this should be a DXF or DWG file created after converting Google maps to DWG or DXF) and then click ‘Open.’
You shall be directed to the ‘Attach External Reference’ dialog box, and under ‘Reference Type,’ select Overlay. Then enter the insertion point, scale, and rotation angle or select ‘Specify On-Screen’ to set these options manually.
After converting Google maps into AutoCAD, you need to scale the Google maps to the actual size of the site in model space where one foot equals one foot.
First, you will need to capture the map and save the image.
Then go to AutoCAD and click on ‘Insert’ and scroll down and click on ‘Raster Image Reference’ from the drop-down menu. You shall be directed to a list of saved files on your computer; search for the saved image, click on it and click open and click on ‘OK.’
Apparently, it is entered as just as an image and unite less. Therefore, you will need to convert the Drawing units to engineering.
Then find a fairly long place to measure the image and find areas of high contrasts where you can really identify the specific points. Examples of points to use include the corners of buildings. The longer the measurement the better.
Go back to Google maps and click on ruler and zoom in and click on the first point and then click on the other point you selected to get the measurement on the Google map.
Go back to AutoCAD and select the image and the line and type ‘SC’ for scale in the command line specify a base point by clicking somewhere in the image and type in the scale factor (you can type ‘our’ for reference if you do not know the scale factor) and click both endpoints on the line. Then type the new length for the line (the actual length measured on Google maps).
Then Zoom extents to check the distance to confirm if it is what you inserted. Then clear the line since it is no longer important. It was only being used to scale the image to the actual measurement.
To turn a Google map into a drawing, you can choose to export a suitable raster image of the map from Google Maps or use Scan2CAD to convert the Google Maps file into a workable vector file as described in the above sections in this article.
The raster or vector files should be saved as either DWG or DXF files to allow editing using any DXF/DWG Editors.