From OpenStreetMap Wiki
Jump to navigation Jump to search

Welcome on the main page of MRI (The Maps.Refuges.Info rendering, former name was openhikingmap but since the URL to see it did not contain that name, people were confused), an online slippy map based on openstreetmap data (of course !) I (sletuffe) am working on, targetting hikers.

The first usable version was online around november 2008 but developpement of the style has almost stalled since 2013. (Well, I've added a few readability improvement and moved to github for tracking since then, but nothing really revolutionary )

It is located at maps.refuges.info


Status of the maps.refuges.info service

  • 2017-02-09 : Server running OK but updates of database are now done only manually approximatively once per year due to server resources limitations

(Data's freshness date can be seen on the bottom of the [1] page)


Due to server limitations, it only covers :

  • Europe bbox : An area from 25°W to 45°E and from 33°N to 72°N

What's in there

  • sac_scale=* is used with 3 levels (nothing-t1-t2 or t3-t4 or t5-t6). smaller the dash are, harder it is !
  • trail_visibility=* is used with 2 levels (below intermediate or over bad) (some sort of red and some sort of salmon )
  • smoothness=* is used on tracks only. Support for use by unknown, car, off roads vehicle, off highway vehicles
  • using highway=path path is rendered the same as footway in my styles
  • highway=via_ferrata is rendered as black crosses looking like a chain
  • boundary=protected_area is rendererd with a green border for protect_id 1 to 4
  • Contours, hillshading and elevation color is now done based on ASTER data set
  • WARNING Data elevation model from ASTER is approximative and often wrong in mountains by a hundred meters, do not use it to place summits and do not trust it too much !

Can it be used freely on another website/application ?

Usage policy

I have no problem with that. However, it is at your own risk, the service might stop any time, or I might ban abusing IP if there are too much requests. Please use the same terms of use as the main renderers as described here Tile usage policy

  • Since 2011-07-26, due to increasing mass dowload applications targeting and hampering the mri server I had to take measures in order to give priority to "browsing users". The current enforced limit is that asking more than 600 not allready rendered tiles or 4000 tiles (in cache or not) in a day will get you banned until next day. I am sad to take such measures which could well lead to collateral damage but unfortunetly I haven't a strong enough server to handle that CPU load. (It has nothing to do with network bandwidth so offering cache space/proxy thing won't help much in this case)
  • Since 2011-11-01 When your day quota is exceeded, the serveur sends the following tile to inform you with a HTTP 403 error, so apps developpers can take advantage of this to avoid stroring a bad tile in the local cache (if any)
  • Since 2012-08-25 : I changed to mod_tile and the mass downloading users are not blocked anymore but slown down if they reach 1000 requested tiles

TMS url

The TMS URL is at : http://maps.refuges.info/hiking/%z/%x/%y.png

note : I used to provide jpeg tiles, but texts weren't very readable, so I changed my mind and now provide png tiles (bigger, but nicer). Still providing jpeg tiles could be nice but require more server power, maybe, one day.

Not osm related, but there also is an acces to only contours and color-shading of slopes here :

Questions/Suggestions/bug reports

In the talk page please. (The talk page is in my watch list, and I'll receive an email telling me that you want to contact me, watch out that if you checked the "minor" flag in your wiki comment I won't receive anything )


base setup

The setup to reach this is by following


Current server hosting the map is :

  • Xeon 4 cores/8 threads @2.8 Ghz cache L3 10MB, x64, VT
  • 16 GB DDR3 ECC
  • Hardware raid 5 of rotative disks (no ssd)
  • ~400GB used


If you are searching for the styles I use, the icons, the osm2pgsql import style, they are freely available on the mri github repository In case I forgot to update the github repo, the live styles are here : [2] (The password inside the xml is to be replaced by your own, don't worry for me, this password isn't usable for anything but a local postgres access)

Special tweaks

  • OSM data layer are generated on demand if not in cache, so taking long in new visited areas
  • OSM data old tiles from zoom 13 to zoom 18 are regenerated every time the database is updated in the area if the server as low load
  • When a change in my styles occurs, everything is slooowly regenerated (1 month or more) so expect different tiles have different visuals
  • The hill-shading-colored part is done with a custom C program created by Stéphane Brunner, its source code is available here : [3]