Site icon Ramani Huria

How To: Make a Slippy Map

In a new series of ‘How To’ blog posts, the Ramani Huria team explains some of the great tools and tech we use in our mapping process. This post will introduce you to Slippy Maps and the process we used to create the Ramani Huria Slippy Map using Mapbox Studio software. By the end of the post, you will be able to create your own Slippy Maps!

The term Slippy Map, in general, refers to web maps which let you zoom and pan around (the map slips around when you drag the mouse) and are a great way for making maps interactive online. 

 Why should you create a Slippy Map?

Setting up

Before you begin creating Slippy Maps, you need to set-up Mapbox Studio:

Mapbox Studio uses a language called CartoCSS to determine the look of a map. Colours, sizes, and shapes can all be manipulated by applying their relative CartoCSS parameters in the stylesheet panel to the right of the map. Mapbox Studio Classic ships with 16 starter styles for you to use or customize for your final map design. Starter styles make styling your maps faster and easier and can help you learn CartoCSS. If you have limited knowledge of CartoCSS, you can learn more here or here

Creating the Ramani Huria Slippy Map

To explain the process of creating a Slippy Map, we’ll guide you through the process of creating the Ramani Huria Slippy Map. This map was created through customizing one of the starter styles in Mapbox Studio. This was used to make the processes of styling the map easier and faster. 

Now that you are registered with Mapbox Studio and have the software install, it’s time to start making your map!

We’ll now show you how to start customizing and adding your own style. To begin, we’ll highlight the drainage lines that are present in the map data.

// Color palette //

@water: #a0c8f0; // blue

@river: #6ca4df; // darker blue

@drain: #a238df; // purple

@ditch: #df32bd; // darker pink

// Drains //

// **** add width and depth to label, maybe type?

// (would do dashes for covered features if it came with MapBox streets)

#waterway {

  [type=’drain’],

  [type=’ditch’] {

line-join: round;

line-color: @drain;

line-width: 0.2;

[zoom>=14] { line-width: 0.5; }

[zoom>=15] { line-width: 1.0; }

[zoom>=18] { line-width: 2.0; }

  }

}

#waterway [type=’ditch’] {

  line-colour: @ditch;

}

Exporting Slippy Maps

The process of exporting the maps from Mapbox Studio is a very simple and quick way of exporting the maps into several formats for further public/private uses. To export a map:

Limitations of Slippy Maps

On processing Slippy Maps, new users may face difficulties in styling the maps as styling is done by writing CartoCSS which new users may not be familiar with. However, there are many online resources to help, and we advise you to learn how to use the CartoCSS language before you start making maps.

Using Mapbox, Slippy Maps are uploaded and stored in the user’s account, and the type of account you have affects how much storage you may use. Mapbox’s starter plan is free and ideal for anyone who is beginning to make Slippy Maps and learning CartoCSS.

We hope that you have now created your own Slippy Map and are excited to create more maps and experiment with stylings! Let us know your experiences and share your maps with us on social media on Facebook or Twitter @ramanihuria

Exit mobile version