The Map Tile Server is a Node.js-based project designed to provide a scalable and efficient solution for serving map tiles. This server is capable of generating and delivering map tiles on-the-fly, supporting a variety of map styles and configurations.
-
Dynamic Tile Generation: Generate map tiles dynamically based on user requests, allowing for real-time updates and customization.
-
Flexible Configuration: Easily configure map styles, layers, and data sources to suit your specific mapping needs.
-
Simplicity: Coded very simple.
Before running the Map Tile Server, make sure you have the following dependencies installed:
- Node.js (version 18.)
- npm (Node Package Manager)
- Clone the repository:
git clone https://github.com/Ali-Kazzazi/NodeJs_Map_Tile_Server.git
- Navigate to the project directory:
cd map-tile-server
- Install dependencies:
npm install
- Start the server:
npm start
- Access the Map Tile Server at http://localhost:4000.
After starting the server, open the index.html file in your browser to view the map:
index.html
To download map tiles for your Map Tile Server, follow these steps:
-
Download and install Mapperitive.
-
Launch Mapperitive and configure your desired map style and parameters.
-
Export the map
tiles
to the tiles directory in the Map Tile Server project. -
The Map Tile Server will dynamically serve the tiles from the
Tiles
directory.
Build the Docker image from the project directory:
docker build . -t tile_server
Run the Docker container:
docker run -p 4000:4000 -d tile_server
Access the Map Tile Server at http://localhost:4000.
Contributions are welcome!
This project is licensed under the MIT License.
Feel free to customize the instructions based on your specific usage of the Mapperitive app and any additional details you'd like to provide.