Making Awesome CMO Maps – QGIS and You

Do you want your maps to look like that? In CMO? Yes, you can do it. You can do it now, without any added work from the devs, and your maps can be exactly how you want them.
We used to have G.MAPS for getting map snippets, then that was abandoned and now folks are using SAS.Planet. I’m not a fan of it, mainly the whole bootleg/jank feel and the security warnings every time I open it up. So after Stamen took a dump, I decided to find a new way to give me sweet maps.
QGIS : The New Way
QGIS is an open source piece of software that allows us to make maps and export the bits we need. It’s even easier than SAS.Planet and it looks better too. You can download it here : https://www.qgis.org/en/site/forusers/download.html
Download, install, and open it up. On the left hand side you’ll see a bunch of stuff in the Browser. Initially open up XYZ tiles and double click OpenStreetMap. You can verify QGIS working.

Now for some maps!
Go to the Plugins tab followed by Manage and Install Plugins. Search for MapTiler. Install the Plugin and Restart QGIS.

On the left hand side you will see a MapTiler tab. Open it up and double click one of the maps. You will see it open up in the Layers tab below.

This is the “Toner” map. If you don’t like it, you can Right Click the map in the Layers tab and Remove Layer.
This is a super duper important step! You must change your coordinate reference system to WGS 84. The authority ID is EPSG:4326.

To add additional maps from MapTiler, Right Click on MapTiler in the Browser and double click on the MaTiler Cloud type you’d like. I really like Dark Matter, the unit icons really pop.

In the Upper Left click on Project, Import/Export, and Export Map to Image.

I like 300 dpi, more than that and the files get really big. Try to keep your zoom level, or scale, approximately the same if you are doing multiple areas. Click on Draw on Canvas, and select where you’d like your map. After you’ve click-dragged your map click Save. It’ll open up a File Save dialog, create a unique name and save it.
After a few seconds you should see a success bar on the top. Or go check for it in your folder that you selected.

Now to CMO! Click the Custom Layers button. Then select Add Layer and find the file you just made in QGIS. It will take a few seconds and should appear.

A few important items :
- The CRS needs to be set any time you open a new map in QGIS.
- If your DPI is too high the file size for CMO will get too large and it will hang or crash when loading.
- You have to either load the layers each time you load the scenario, or you have to use some Lua to load the attachment.
- This only does one zoom level, so if you zoom in ridiculously close, all you will see is the PNG you created but zoomified. This is the nature of how it works using an overlay. You are “overlaying” this image on the normal CMO map system.
MapBox CMO Maps
To make your own, custom maps, things get more interesting. Create an account at MapBox.

Then make your own map! Select the style, then modify the layers as you see fit. I’ve made a satellite map, but slightly darker, with blue roads.

This took me like, 30 seconds.
Save it with a Unique name, then make it Public.

Now go back to QGIS.

You will need your Mapbox studio user name, your map name, and your public token. (See this link for detailed instructions, just scroll down to the QGIS section.) https://docs.mapbox.com/help/tutorials/ … cgis-qgis/
Select NEW, give it a unique name, and follow the URL format in the link above. Click OK, then Connect. You will see it under the WMS/WMTS drop down in the Browser.

Follow the same steps to export the image (and remember your CRS!) and you now have “your” map! Note : Mapbox is free for 200,000 tile requests. So if you go wild and make dozens of maps and try to export the world, you could run into the paid tier. But that’s on you.
In contrast the MapTiler plug in is 100% free and requires no sign ins or logins.
An interesting note, I’ve used 540 static tile requests out of 200,000. That occurred while I was making this post, testing things, and not really getting terribly detailed. So don’t share your tokens or maps, otherwise it’ll take a few hundred people to max out your account. This also puts maps into perspective, someone has to pay for this stuff somewhere. It is bandwidth intense to send all of these tiles. I found this eye opening and gave me a new found respect for the maps we already have in CMO.
QGIS is very powerful. This is 100% a professional grade piece of software. You can probably make it do awesome stuff, like bathymetry layers and such. I’d really love to see the types of maps people are making so share your schemes.
BG
Thank you for a super-informative post!