Map Editor 2.0: Map with bike routes

Map Editor 2.0: Map with bike routes

Posted on 01 Jul 2016

By: Sergey Bobrovskikh
Backend Developer, OpenWeather

There are many online map services for those who prefer active leisure. For example, here is a map with bike routes You can read about it here -
Route maps are extremely useful! Also while choosing a route it would be beneficial to know the weather in a region of your travelling. Surely we can check weather with And what if we combine a bike route map and weather data from OpenWeatherMap? Eureka!
MapEditor 2.0 can help us with that!

Let’s see how it works.

On page with a bike route map one can find an address of tile-server https://[abc]{z}/{x}/{y}.png With the help of that we can create a corresponding layer in MapEditor. For that choose an option “Layers” in upper menu line, thus a window of editing of layers opens. Press “New” button to add a new layer.

Here is a screenshot of creating of a new layer:
More about filled in lines:
Lable – a name of our layer (remember it to find it later),
Projection – a type of used projection (the mercator projection in this case),
Url – address of tile-server in OSM format (unfortunately subdomains are not supported at the moment, so we enter a link like this{z}/{x}/{y}.png),
Band – a channel of image (we use colour image, so all channels are necessary, put “-1” in this field),
Type – a type of original data (as we receive a bitmap, format  “gdal” is necessary here),
Format – a format of files received from tile-server (we receive png pics, so put “png” in this line).
Save this new layer and go further to creating of a project. - a new project add a previously created layer. In style of layer field put “raster-opacity:1”, thus it will be totally nontransparent.
Done! We have combined a bike route map and our project.

Now it’s time to add one of existing weather layers. For instance, a layer with information about rain.
Press “Add a new layer”, choose “Rain” and look what we got.

You can easily zoom maps to see the routes. Hmm, it looks like neighborhood of Luxembourg is not the best place to cycle now.