From OpenStreetMap Wiki
Jump to navigation Jump to search

rendering improvement

Openstreetmap datas

Mountain huts (done)

BTW: some improvements to add could be:

  • tourism=alpine_hut (visible since zoom 13/14) - DONE
  • amenity=shelter (visible since zoom 13/14) - NO Well YES now


Those are currently not rendererd because not approved. I've been trying to help define the way to tag it
But it hasn't much community interest (except a few users) Sletuffe 12:32, 2 August 2009 (UTC)
I'll wait for this proposition to arrive to something and certainly add them Proposed_features/wilderness_mountain_buildings
(the alpine_hut is however quite logical and well done, I might add them very soon) Sletuffe 13:29, 5 August 2009 (UTC)
Okay, it's done. With peaks's same zoom (icon a bit bigger)Sletuffe 13:43, 5 August 2009 (UTC)
I also have added support for tourism=wilderness_hut but not support for amenity=shelter because it is too unspecific to be really usefull sletuffe 14:47, 27 October 2010 (BST)
I'd like support also for tourism=basic_hut. Once we get full support for wilderness mountain buildings, then we can start to discontinue the use of the unspecific and confusing amenity=shelter. Also support for wilderness_hut and basic_hut drawn as ways is expected, with aerial high resolution pictures widely available their number is on the rise. --Kaitu 16:40, 20 December 2010 (UTC)
Of Proposed_features/wilderness_mountain_buildings page, this renderer supports tourism=alpine_hut and tourism=wilderness_hut when tagged as nodes. If someone is willing to create/find a set of free icons for tourism=basic_hut and tourism=lean_to I'll add it asap. (A full set of 4 different icons with coherent drawing whould be good) sletuffe 16:55, 20 December 2010 (UTC)
tourism=basic_hut is now drawn just like tourism=wilderness_hutsletuffe 13:59, 18 January 2012 (UTC)

Alpine_hut drawn as ways are not shown - TODO

alpine_hut, wilderness_hut are now shown if tagged as polygon or nodes, with name and altitude. It should however wait for next tile refresh to show everywhere (it may take a few weeks) sletuffe 15:46, 11 July 2011 (BST)
Same for tourism=basic_hut sletuffe 13:59, 18 January 2012 (UTC)

Here is a set of icons as proposed in Proposed_features/wilderness_mountain_buildings: Alpine hut blue p16.svg Wilderness hut blue p16.svg Basic hut blue p32.svg Lean to blue p16.svg Shelter brown p32.svg --Rudolf 06:53, 19 April 2012 (BST)

thank you very much for the icons rudolf !, I've included them in my renderer. This will however take time before all maps are updated (due to cached tiles) sletuffe 14:04, 19 April 2012 (BST)
Very fine. In the meanwhile I have worked on a second set: Alpine hut blue pic p32.svg Wilderness hut blue stove p32.svg Basic hut blue p32.svg Lean to blue p16.svg Shelter brown p32.svg. I prefer the first set, but the second similars the old alpine_hut-icon. --Rudolf 14:15, 19 April 2012 (BST)

path/footway (done)

  • a more visible color (red?) for paths/footway.. the pinkish one upon the brown mountains isn't always clear


Good point, (I've done it, should be scheduled to next updates) I'll try to set it more red. Also note that I'm sending jpeg tiles for speed reasons and the :path/footway are "melting" wich makes them even less readable. The solution I often use is to use 2 layers :
  • the relief one (only contours and mountains) in jpeg
  • the overlay hiking transparent in png on top of the previous Sletuffe 12:32, 2 August 2009 (UTC)

locality (done)

  • place=locality visible since zoom 13
It is shown at zoom 16 I think, maybe I'll have a try at z13 Sletuffe 12:32, 2 August 2009 (UTC)
Here we go ! The elevation tag on locality was not well either, I've change that too. Sletuffe 13:27, 5 August 2009 (UTC)

glacier (done)

  • natural=glacier are rendered? in some tiles i see them, in other tiles i don't see them.
Well, I forgot them in the first place, so I've added them recently, but reconstructing every tiles is a :loooong process, so I'm letting it "half way" for now.
Any update in the area should make them appear again. Sletuffe 12:32, 2 August 2009 (UTC)

track (done)

  • rendering for highway=track at high zooms is nice but i would like to see the width not so wide
I made a few tries, at the begining, width was 3 pixels, wich was far to few, I pushed to 4, and then to 7 :(now) wich is too much.
In fact I need two size for zoom 13/14 and zoom 15/16/17/18, I'll do things about it. Sletuffe 12:32, 2 August 2009 (UTC)
Ok done, I have two different size for width. Sletuffe 13:22, 5 August 2009 (UTC)

bye, alessio

Marsh (done)

  • I love the map. It would be very helpful if you could render natural=marsh as well e.g. hiking in Ireland it's important to know where the boglands are..
Oops, haven't seen that comment, I'll check why they are not rendered (they should be) sletuffe 10:48, 7 April 2010 (UTC)

Marked trails (won't show)

Could you point me to the proposal for those tags so I can understand how it works and what it shows ? sletuffe 12:55, 16 May 2010 (UTC)
Ok I've seen the proposal, I think I'll add it in a future release. sletuffe 17:02, 10 May 2011 (BST)
In the end, I've decided against : too much work to handle relations of routes, and if showing all trailblazed there might be too much sletuffe (talk) 21:25, 25 February 2022 (UTC)

Hiking routes (won't show)

Showing type=route + route=hiking whould be cool sletuffe 17:10, 9 August 2010 (BST)

+1 on this, complete with nodes with a tag "rwn_ref=xx" like OpenCycleMap does it with cycle routes. --Sanderd17 16:53, 25 October 2010 (BST)
I need some database improvement to support this, it is planned, but have no idea when it will be done, but an important feature I want to add sletuffe 14:48, 27 October 2010 (BST)
Maybe you can use the layer of Waymarked Trails like at the map of HikeBikeMap? --Chrisss Gü (talk) 12:21, 18 April 2015 (UTC)
One among other reasons, is that in France, a network of hiking route (GR / PR) under copyright has been added to OSM, showing those is a risk, even if unlikely, to face prosecution. sletuffe (talk) 21:36, 25 February 2022 (UTC)

paragliding ? (won't show)

this map is more toward hikers, maybe that wouldn't hurt much to show take off ? maybe one day... sletuffe (talk) 21:26, 25 February 2022 (UTC)

Bridleways (done)

  • Is it possible to have highway=bridleway showing up (red would do if you don't want a separate colour). At the moment it looks to me as if the name is rendered but not the highway. --MarkS 17:54, 2 January 2011 (UTC)
I have changed the styles. It should render the same way path and highway are. But it will take some time until the cache is flushed. sletuffe 13:38, 3 January 2011 (UTC)

Barriers (to do)

  • It would be nice to have barriers rendered. There aren't many area which have them mapped yet but they are very useful for navigating.
Good idea, I'll have a check on how to do that. sletuffe 19:03, 7 January 2011 (UTC)

Protected areas (done)

  • on "What´s in there" you wrote for "boundary=protected_area", it´s rendererd with "protected_id", but the key was been named "protect_id" and a half year ago it´s too amended by "protect_class". Best regards, --Typoshrub 10:41, 9 October 2011 (BST)
protected_id was a typo, I checked in my style's definition and it really is protect_id. About protect_class, the wiki page still says both can be used and taginfo indicates protect_id is still more used. Due to technical reasons, supporting both is not so easy, so I'll keep that in the to do list for the next rebuild of the database. sletuffe 16:18, 11 October 2011 (BST)
it was converted somewhere around 2016 sletuffe (talk) 21:28, 25 February 2022 (UTC)

Via Ferrata (done)

  • highway=via_ferrata is only a proposal [1] but many users started to use it [2]. Th3M4pp3r 11:58, 23 May 2012 (UTC+01:00)
here we go ! Since I aint an artist, that's the best I can do sletuffe 18:58, 1 June 2012 (BST)

Path ref/name (to do)

natural=saddle (to do)

  • an important point for oreenteering for hikers is saddle point because the mountain_pass is for way. Bredy 23:00 1 october 2013 (UTC)
That's a good idea, I'll add that sletuffe (talk) 21:48, 25 February 2022 (UTC)

access=no (won't do)

Can you display ways with access=no in another way or not at all? --Chrisss Gü (talk) 12:25, 18 April 2015 (UTC)

This one looks hard to handle, I would need to handle access=no + foot=yes and all sort of complex combination of logic. sletuffe (talk) 21:55, 25 February 2022 (UTC)

Guidepost's names (won't do for now)

Do Guidepost really have names ? Or does the text on a guidepost refers to a nearby feature ? By showing it, wouldn't that defeat the will to tag the feature having that name (duplicates) ? sletuffe (talk) 14:57, 28 November 2022 (UTC)

Parking icons on Area tagged parkings (Done)

Was not showing Parkings tagged as area, while it is quite common. Displaying elevation under the icon as well. sletuffe (talk) 17:03, 6 March 2023 (UTC)

Hillshading and contours

ASTER extending coverage (done)

You say that you are using ASTER-data, but nonetheless all height information stop at 60°N like in the SRTM-Data. I thought ASTER would reach further north. --Blaubär 09:52, 7 April 2010 (UTC)

Drawing contour lines is a highly CPU consuming process so I've limited the extents of the ASTER zone. (I made it clearer on the main page to explain this). However I don't remember how far North does ASTER ends sletuffe 10:51, 7 April 2010 (UTC)
Since 2020, coverage as been extended to the world and farther north (Disks are now cheaper !) sletuffe (talk)

Sea in middle of italy/germany/nederlands ? (done)

Where ground is below sea level, instead of green color for land, it becomes blue color like sea, but it is not a sea ! (dominique)

This bug is known, it is due to my unperfect way of handling what is sea and what is land when there is ASTER elevation model background. Most mapnik renderer do use countries border from an external source, and so they paint a blue (sea) background and a white (lands/countries) over it. I can't, because I want the ASTER hillshading, and that data does not have land/Sea distinction but only elevation. So my tweak is to draw in blue when elevation is below sea level (0m), which drawn a few areas. Ideas are welcome, but I feel I need an external source of sea polygones instead of land polygones, any one an idea how to "reverse" land shapefiles to become sea shapefiles ? sletuffe 13:41, 31 October 2010 (UTC)
Thanks to the work at [3] I now have access and use sea polygons. Coastline at openhikingmap is now much accurate and that solved the "under sea level blue" problem. sletuffe 23:42, 28 May 2012 (BST)

Contours sometimes not very readable (done)

I am drawing all openstreetmap data over the contour lines, it as a huge advantage of spliting the rendering in two : A never changing part (contours+color) and an often changing part (osm data) but the drawbacks is that contours are not always readable because they should better be drawn over landuse/natural areas but below roads/buildings/poi. But that needs a huge change because I also need to split contours tiles and color tiles instead of one for both, because a much better ordering would be :

  • 1 Color and shade
  • 2 Land surfaces (natural/landuse)
  • 3 contour lines
  • 4 seas and lakes
  • 5 Water surfaces (natural/landuse)
  • 6 All remainging OSM datas

Not that simple right ? sletuffe 13:48, 31 October 2010 (UTC)

I don't remember how, but I solved it somewhere along the years ;-) sletuffe (talk) 21:19, 25 February 2022 (UTC)

Extending coverage world-wide (done)

That one is not gone be easy with the server I have, I tried, it worked for a while but keeping the database up to date drained almost all CPUs (and disk) of the server. sletuffe 16:20, 11 October 2011 (BST)

done in 2020, server and disks are cheaper and cheaper ;-) sletuffe (talk)

Digital Elevation Data

The data elevation model from ASTER is approximative and often wrong in mountains by a hundred meters. Have you tested the elevation data from [4]? It is based on SRTM with some modifications. --Rudolf 23:02, 4 May 2012 (BST)

I have seen that page already, but I haven't tried because I couldn't find a way to download the elevation model in geotif format. Also I have tried SRTM and one derivated (whith gaps filled) but in the Alps (wich is the mountain I'm most interested in) I consider ASTER to be still a little better than SRTM derivates. I had reports that it is worst in other parts of europe than SRTM, but SRTM has too much holes in the Alps so I kept ASTER until something great, with wide coverage pops out free. sletuffe 12:28, 5 May 2012 (BST)

Mapnik 2 and 3 (done)

I am trying to setup my own OpenHikingMap server (for my own use). I have installed Mapnik 2.0.1, since it is the version used by OpenStreetMap. But with your XML file, I get several warning and errors :

MAPNIK_MAP_FILE="hiking_without_contours.xml" MAPNIK_TILE_DIR="hiking_tiles/" ./
render_tiles( (6.8, 43.4, 7.75, 44.5) hiking_without_contours.xml hiking_tiles/ 10 16 06 )
### Map properties warning: 'bgcolor' is invalid, acceptable values are:
### TextSymbolizer properties warning: 'face_name','halo_radius','wrap_width' are invalid, acceptable values are:
'name,face-name,fontset-name,size,fill,orientation,dx,dy,placement,vertical-alignment,halo-fill,halo-radius,text-ratio,wrap-width,wrap-before,wrap-character,text-transform,line-spacing,label-position-tolerance,character-spacing,spacing,minimum- distance,minimum-padding,minimum-path-length,avoid-edges,allow-overlap,opacity,max-char-angle-delta,horizontal-alignment,justify-alignment,placements,placement-type,meta-writer,meta-output'
: ### WARNING: Using 'name' in TextSymbolizer is deprecated (
Deprecation Warning: symbolizer value now an expression, please wrap properly in brackets like "[place_name]"
Traceback (most recent call last):
 File "./", line 215, in <module>
   render_tiles(bbox, mapfile, tile_dir, minZoom, maxZoom, "06")
 File "./", line 131, in render_tiles
   renderer = RenderThread(tile_dir, mapfile, queue, printLock, maxZoom)
 File "./", line 60, in __init__
   mapnik.load_map(self.m, mapfile, True)
RuntimeError: Must have face-name or fontset-name in TextSymbolizer in style 'places' in map 'hiking_without_contours.xml'

Is the problem due to an incompatibility with Mapnik 2 ? If yes, do you plan to switch to Mapnik 2 soon (and update the XML file) ?

You are right, my styles have been created long ago for mapnik 0.7 and I don't thnik they are compatible with mapnik 2. And no, I don't plan on changing them since that's quite some work for no gain on my side because I'm able to do what I want with mapnik 0.7. I guess one day I'll need to, but I haven't planned that soon. (However, If you convert them to mapnik 2, don't forget to tel me, I'll be happy to take them back ;-) )sletuffe 10:36, 9 May 2012 (BST)
For any reader's information, I've moved to mapnik2 in 2014 and styles have been converted with the included converter script and everything worked fine. No hand adaptation was needed. sletuffe (talk) 12:28, 18 April 2015 (UTC)
And it now runs fine under mapnik 3.1 as well sletuffe (talk) 21:20, 25 February 2022 (UTC)

Ways with smoothness don't get rendered?

I've added smoothness=* to some ways in my area, but they no longer get rendered on this map (as you may see here). Any idea what's wrong with them (or the rendering)? --Jot 16:13, 12 January 2013 (UTC)

Looks like it is even worse than that, many ways don't seam to be rendered anymore. I guess there is a problem somewhere with some data in the database... ;-( I'll be planning soon a full re-import to see if that solves the problem. sletuffe 18:15, 12 January 2013 (UTC)

OSM data refresh

I see that the OSM data are stale for northern italy (now is 2017 and map data 2015). This project is dead?

The page says data are updated every year, I'm just a bit late for the update ;-) . Should be done soon... sletuffe (talk) 14:11, 24 February 2017 (UTC)
The database was re-imported yesterday and Tiles are sloooowwly regenerating (without SSD it became quite hard to handle an osm tile server) Map will after some visits and some days be up to date once again. sletuffe (talk) 10:20, 24 March 2017 (UTC)

Thank you

Hi Sletuffe, just thank you for this rendering and for the web site They are sooo useful! Thank a lot again. --Binnette (talk) 19:43, 26 August 2022 (UTC)

With pleasure ! sletuffe (talk) 08:37, 27 August 2022 (UTC)