Skip to content

leoalho/tileserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A minimalist raster tile server with nodejs, leaflet snd postGIS.

See here for the blog posts related to the project.

Running the app

After cloning the directory, run npm install. After this one can start the project with npm start to run the project with node or npm run dev to run the project with nodemon. The app needs a running postgreSQL instance and two instances of Redis to work. BRanches 'simple' and 'features' do not require Redis.

Environmental variables:

Required

PGUSERNAME: postgres username
PASSWORD: postgres password
DATABASE: name of the database
TABLE = Name of the table containing the data for the polygons
TABLE2 = Name of the table containing osm basemap data
REDISPORT = Port of the redis cache containing the prerendered tiles.

Optional

HOSTNAME = Ip address of the host, default value 127.0.0.1
PORT = Port for the server, default 8080
PRERENDEREDTILES = The zoom level up to which there are prerendered tiles in the cache, default -1

About

A minimalist raster tile server with nodejs, leaflet snd postGIS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published