Skip to content

DingJunyao/tile_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tile server

Convert online map into a tile server. For maps not available as tiles.

You can use the tile server for some service needing tile server, e.g. Leaflet.

Currently supports Amap (高德地图). Still under early development.

Usage

for Linux/MacOS:

AMAP_KEY=YOUR_AMAP_KEY AMAP_SECRET=YOUR_AMAP_SECRET POOL_SIZE=8 npm start

For Windows:

$env:AMAP_KEY="YOUR_AMAP_KEY"; $env:AMAP_SECRET="YOUR_AMAP_SECRET"; $env:POOL_SIZE="8";  npm start

POLL_SIZE defines browser sessions of maps.

URL

Tile server running at http://localhost:3000, and tile URL format: http://localhost:3000/{z}/{x}/{y}.png

License

MIT.

About

Convert online map into a tile server. For maps not available as tiles.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors