Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 528 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 528 Bytes

What is this?

A nginx module to serve map tiles directly from mbtiles container files.

Nginx configuration example

  • mbtiles_file - points to the mbtiles file
  location ~ ^/(.*?)/(.*?)/(.*?)/(.*?)$ {
      mbtiles_file "$document_root/$1.mbtiles";
      mbtiles_zoom "$2";
      mbtiles_column "$3";
      mbtiles_row "$4";
  }

Installation

Prerequisits

You need to have a sqlite3-dev package installed. On Ubuntu or Debian you can install it using:

apt-get install libsqlite3-dev