an open source project by MapBox

Help

Adding color to Maki icons

If you've found yourself on this page, we're assuming you've

If you have read, Using Maki Icons you know that Maki is a point of interest (POI) icon set designed to be used on maps. This section demonstrates a recommend approach of adding color to them.

1. Download Maki and open the source file

Download Maki, unzip it, and check out the file labeled maki-icons.svg. The .svg extension stands for, “Scalable Vector Graphics” - a file format all common vector graphic applications support. For a solid application we recommend Inkscape, a free to install, open source graphics editor. Ths tutorial walks through manipulating color using Inkscape although the steps are easily translatable to other applications.

2. Create a new icon fill

Let’s first set a couple things up in Inkscape:

  • Open up the Layers window by pressing ctrl+shift+l
  • Open up the Fill and Stroke window by pressing ctrl+shift+f

Your screen should now look something like this:

Setting up Inkscape

Each icon set is grouped together by a unique id. Because of this its important to use the Edit paths by node tool to select the icon to change its fill color. This tool is located just below the selection tool on the left hand pane or by selecting F2:

Edit paths by node tool

With the icons you want selected, You can change the color by adjusting the fills from the Fill and Stroke window or by selecting a pre existing swatch from the fill options below. In this example I have selected each of the three icons in the park set and given these icons a green color:

Changing color

Selecting all icons at once

Using the Find tool (ctrl+f) you can select all of the icons at once. By default the icon fills are set to #444444 add this value into the Style: input and press Find.

3. Batch export the icons

  • On the icons layer select all by pressing ctrl+a
  • Go to File -> Export Bitmap and check off ‘hide all’ and ‘batch export’. These options are located at the bottom of the dialog page just before export.
  • Press Export

The icons will batch render themselves as .png’s in the same directory the .svg is located in.

Note

For export purposes, each icon set is grouped by a unique id. If you would like to retain the naming of the icons the sets should not be ungrouped. You can view the naming of each id by right clicking on an object.
Mission complete! Next up: