How to convert map into vector file such as this? - General talk - OpenStreetMap Community Forum
How do I add A Snazzy map for personal use - Google Maps Community
resource recommendations - How to create an outlined drawing of a map or easily turn a Google Maps screenshot into one? - Graphic Design Stack Exchange
Snazzy Maps: a collection of different color schemes for Google Maps that's aimed at designers/developers. The Google Maps API allows for custom styles to be applied to maps, giving you the ability to match the design of your website.
https://www.etsy.com/listing/886054231/
I am trying to make an anniversary gift that is sorta similar to the above Etsy link, but I cannot figure out how to get a vector file like this. I figured maybe someone here has a similar workflow for creating posters or something but if this isn't the place to ask let me know and ill find somewhere else. Thanks for any help.
Update (2020)
So I just got an upvote on this and had an inkling that this might be a tad outdated and turns out it was.
As far as I can tell the wizard in my previous answer (↓) has been scrapped and has been replaced with this new Styling Wizard.
Here's a link to the API doc, if you want to read a bit more on the coding side of things. And some info on where you get the API key.
I also found a 3rd party service called Snazzy Maps, which does pretty much the same thing but serves as a gallery of community made styles
Old answer:
Styled Maps Wizard ( link ) does the job.
It does have pretty good instructions that show up when you open up the website. Those instructions can be accessed at any point with the help button at the bottom of Map style panel ( shown in the image below ).
Below are the styles I used to create the static map on the right ( and in this link ).
You also may be interested in this.
Assuming there isn't a reason why it has to be the Google-copyrighted maps you use, I'd use OpenStreetMap for this (the open source wikipedia-style Google Maps alternative).
They're virtually identical but their license (Creative Commons Attribution-Sharealike) explicitly allows this sort of thing including for commercial work, so long as they're credited and you share the work you make with their data under the same licence, whereas Google are strict about usage of their maps unless you pay for an expensive license.
You can also output vectors, but the downside is, as is often the case with open source stuff, it's not slick and takes trial-and-error to get it all working...
Edit: the earlier version of this answer recommended using Open Street Map (OSM)'s export to PDF and SVG tools. I'd now recommend against fighting with these: they're junk. Not only are the files produced a mess (see edit history for examples - and the latest don't even open for me), but the tools almost never work, failing with a hopelessly misleading error message about "server load" being too high (<25), recommending trying again in a few minutes - but the server load is always far over 25 except for a few hours in European night time (and even then not all days).
There's a wiki with loads of alternate options, but all of these I've tried either don't work (many of them), don't work for anything except a close up of a few streets (MapOSMatic), give grainy pixel images in a PDF rather than actual vectors (Field Papers and Walking Papers), or where the "installation" process is more like configuring an entire server (most of them)...
There is however one process which seems to work:
- Install Maperitive (free, simple install on Windows, requires a dependency on Mac / Linux).
- Export the area of the map you want from Open Street Map. You might need to use one of the alternate links if it says the area is too large. Warning: for any area larger than a small town, files sizes are absurd. County level is 300mbs+. Countries will be many gigabytes. It gives you every single unnecessary detail at every zoom level below the area you specify, and there seems to be no facility to change this. Clearly no-one at OSM has ever heard of county maps, country maps or region maps.
- Open it in Maperitive. You might need to change the file extension to
.osmbefore it'll open - Change the rendering rules (what it shows and how) to ones which aren't insane.
- You can get something pretty decent with
Map > Switch to rules > googlemaps - Or, there's a huge amount of customisation you can do if you have the patience to tinker with the code with
Map > Edit rendering rules
- You can get something pretty decent with
- Use
Map > Set printing boundsto set the area you want (it creates a near-invisible box filling the screen: zoom out and/or drag from a corner), andView > zoomto set the zoom level. Everything outside of the "printing bounds" will be cropped. - Export it with
Tools > Export as SVG (Adobe Illustrator)
Note that if you want real vectors you must download then open the export from OSM rather than just browsing around in the default map that shows when you load up Maperitive - else it'll give you a fake SVG full of chopped up low quality bitmap tiles.
Another note - sometimes it doesn't actually update the file. If the file isn't changing, make sure you don't have it open in anything, and wait a few minutes between exporting and opening.