Skip to content
This repository has been archived by the owner on Oct 3, 2019. It is now read-only.
/ osrm-tile-viewer Public archive

Quick-n-dirty viewer for OSRM debugging vector tiles

License

Notifications You must be signed in to change notification settings

danpat/osrm-tile-viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NOTICE

This project is abandoned. This tool formed the basis of https://github.com/Project-OSRM/osrm-frontend/tree/gh-pages/debug, the official debug tile viewer for OSRM.

Tile viewer for OSRM

OSRM, as of version 5.0, supports serving of Mapbox Vector Tiles to view the routing graph that's stored in memory.

Tiles can be retrieved from osrm-routed at URLs like this:

http://localhost:5000/tile?tz=12&tx=656&ty=1582

This tool is a simple HTML viewer that uses Mapbox GL JS to make a slippy map to view the tiles in a browser.

Note of warning: as you zoom out, the tiles get bigger and bigger (each tile contains more data). Beyond about zoom 12, tiles are >1MB in size, and will be very slow to display in your browser. Avoid zooming out too far. If you zoom out to Zoom 0, you'll get tiles that are multiple GB in size for a whole planet datafile, and, well, your whole computer will likely freeze up.

You'll probably need to edit index.html and set the URL for osrm-routed, and the initial coordinates/zoom level.

About

Quick-n-dirty viewer for OSRM debugging vector tiles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages