Skip to content

Service for rendering tiles from OpenStreetMap which aims to visualise more tags than typical maps

License

Notifications You must be signed in to change notification settings

twpol/osm-tiles

Repository files navigation

OpenStreetMap Tiles

A tile renderer for OpenStreetMap that provides a dynamic overlay tile set.

A live version is running at https://osm-tiles.james-ross.co.uk/.

A test page for any OpenStreetMap tags is at https://osm-tiles.james-ross.co.uk/test.html.

Build status

Road overlay

This tile set is an overlay (meaning the tiles are transparent where there is no data) which renders roads (highways) from OpenStreetMap according to their various tags, including:

  • cycleway=lane =opposite_lane
  • cycleway:both=lane =opposite_lane
  • cycleway:left=lane =opposite_lane
  • cycleway:left:oneway=no
  • cycleway:right=lane =opposite_lane
  • cycleway:right:oneway=no
  • highway=motorway =trunk =primary =secondary =tertiary =unclassified =residential =service =motorway_link =trunk_link =primary_link =secondary_link =tertiary_link
  • lanes=*
  • lanes:backward=*
  • lanes:both_ways=*
  • lanes:forward=*
  • layer=*
  • oneway=yes =-1
  • parking:lane:both=parallel =diagonal =perpendicular
  • parking:lane:left=parallel =diagonal =perpendicular
  • parking:lane:right=parallel =diagonal =perpendicular
  • shoulder=yes =both =left =right
  • shoulder:both=yes
  • shoulder:left=yes
  • shoulder:right=yes
  • sidewalk=both =left =right
  • verge=yes =both =left =right
  • verge:both=yes
  • verge:left=yes
  • verge:right=yes

Example road tile

Rail overlay

This tile set is an overlay (meaning the tiles are transparent where there is no data) which renders rails (railways) from OpenStreetMap according to their various tags, including:

  • gauge=*
  • railway=abandoned =construction =disused =funicular =light_rail =monorail =narrow_gauge =preserved =rail =subway =tram

Example rail tile

All overlay

Example all tile

Limitations and notes

  • Only zoom levels 16 through 22 are supported
  • Each tile is rendered on-demand, but the underlying data is cached in memory in zoom level 14 chunks

To do

  • Separation and correction of way end nodes at junctions (to align lanes)
  • Calculations for bus, PSV (public service vehicle), other specialised lanes
  • Calculations for placement=*
  • Calculations using turn lane markings
  • Calculations for width
  • Display tapering of road width/lanes
  • Display parking lanes/bays
  • Display bridges, tunnels
  • Display bus, PSV, other specialised lanes
  • Display turn lane markings (left/right turn arrows, etc.)
  • Display of footpaths
  • Display of railway platforms

About

Service for rendering tiles from OpenStreetMap which aims to visualise more tags than typical maps

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published