From OpenStreetMap Wiki
Jump to navigation Jump to search

This is the Maps.Refuges.Info rendering documentation page, an openstreetmap data slippy map I (sletuffe) am working on, targetting hikers. (Its old name was OpenHikingMap and can still be seen in some apps)

The first usable version was online around november 2008 but developpement of the style has almost stalled between 2013 and 2018. But in 2020 I have a new hope for improvement by incorporating OpenTopoMap additions.


Status of the maps.refuges.info service

  • 2020-01-20 : Server running OK but updates of database are now done only manually approximatively once per year due to server resources limitations
  • Datas are from 12/2019 (this information is manually updated if I don't forget !)


Since 2020-01-15 it covers the world.

Map Legend

  • 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) (red and some sort of pink/salmon )
  • smoothness=* is used on tracks only. Support for use by unknown, cars ("bad" with 2 parallel lines), off roads vehicle ("very_bad" 1 line parallel with dashed line) , off highway vehicles ("horrible" and "very_horrible" with 2 parallel dashed lines)
  • 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 based on a mix of MODIS/Terra Snow Cover 8-day by NSDIC - ASTER GDEM is a product of METI and NASA - SRTM V4 thanks to CGIAR-CSI - EU-DEM produced using Copernicus data and information funded by the European Union.
  • WARNING Data elevation model is approximative and may be 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)

TMS url

The TMS URL is at : https://maps.refuges.info/hiking/%z/%x/%y.png or (non https : http://maps.refuges.info/hiking/%z/%x/%y.png)

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 ) If it is technical, like you can't run import OSM data or the style won't load or documentation is laking better use the github issue tracker : [1]


base setup

The setup to reach this is by following


Current (2020) server hosting the map is :

  • Xeon 4 cores/8 threads @2.8 Ghz
  • 64 GB DDR3 ECC
  • Hardware raid 5 of 3 6TB rotative disks (no ssd)
  • ~2TB used (500MB for OSM data in Postgres + 500MB contours in Postgres + 200MB of various shape and tif files + ~600MB of Tiles)


If you are searching for the styles I use, the icons, the osm2pgsql import style, they are freely available on the mri github repository

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