Skip to content

irfancoder/malaysia-tileserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

malaysia-tileserver

Contains an open-source map-tiling server, tileserver-gl for serving vector & raster tiles & the Malaysia-Singapore-Brunei map. The map is generated from openmaptiles.

You can find:

Resources Type Format Applicable Style Description
Map of Malaysia, Singapore & Brunei Vector .mbtiles light, dark, terrain Macro view up to street/residential level view
20m Contour lines Vector .mbtiles terrain Contour lines with a vertical distance of 20m
40m Contour lines Vector .mbtiles terrain Contour lines with a vertical distance of 40m
80m Contour lines Vector .mbtiles terrain Contour lines with a vertical distance of 10m
High resolution hillshade Raster .mbtiles terrain Hillshade based on elevation

Development

Note: Intended for the development of other apps, not the tileserver itself.

Prerequisites

  1. Install the following:
  • Docker
  1. Copy the docker-compose.example to docker-compose.yml and add a /data folder (if missing)
cp docker-compose.example docker-compose.yml
mkdir data
  1. Download the map data (.zip) and extract it inside /data

Usage

To run the server:

docker compose up

To stop the server:

docker compose down

To checkout the map tiles and preview the styles & layers, open up http://localhost:8080 in your browser.

You can use this tileserver to provide map for your client-side apps. Works well with client-side mapping library such as leaflet.js and mapbox

Read the documentation for the available endpoints here: TileServer GL Docs

TODO

  • Add more map styles (dark mode, terrain etc)
  • Create a Dockerfile image of the tileserver
  • Add API key feature for securing endpoints

About

An open source tile server for the Malaysia, Singapore & Brunei map

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published