Map Regions
Offline Map Viewer
| Name | Display Name | File Size | Tiles | Zoom | Created | Actions |
|---|
Download New Map Region
Select Area on Map
Quick Presets (Iran Cities)
Download Settings
Upload MBTiles File
Click to select or drag & drop an MBTiles file
Supports .mbtiles files up to 5 GB
Download Jobs
3D Globe View
API Reference
Quick Start - Using in Leaflet.js
// Add offline map tiles to your Leaflet map
const map = L.map('map').setView([35.7, 51.4], 12);
L.tileLayer('http://YOUR_SERVER:8085/api/v1/tiles/{regionName}/{z}/{x}/{y}.png', {
maxZoom: 18,
attribution: 'Offline Map'
}).addTo(map);
const map = L.map('map').setView([35.7, 51.4], 12);
L.tileLayer('http://YOUR_SERVER:8085/api/v1/tiles/{regionName}/{z}/{x}/{y}.png', {
maxZoom: 18,
attribution: 'Offline Map'
}).addTo(map);
Tile Serving
GET /api/v1/tiles/{region}/{z}/{x}/{y}.png Get tile image
GET /api/v1/tiles/{region}/{z}/{x}/{y}/exists Check tile exists
Region Management
GET /api/v1/regions List all regions
GET /api/v1/regions/{name}/info Region details
GET /api/v1/regions/{name}/metadata MBTiles metadata
GET /api/v1/regions/{name}/bounds Geographic bounds
POST /api/v1/regions/upload Upload MBTiles file
PUT /api/v1/regions/{name} Update region info
DEL /api/v1/regions/{name} Delete region
GET /api/v1/regions/storage Storage statistics
GET /api/v1/regions/cache Cache statistics
POST /api/v1/regions/cache/clear Clear tile cache
GET /api/v1/regions/health Health check
Download Management
POST /api/v1/download/estimate Estimate tile count
POST /api/v1/download/start Start download job
GET /api/v1/download/jobs List all jobs
GET /api/v1/download/jobs/{id} Job status
POST /api/v1/download/jobs/{id}/cancel Cancel download
DEL /api/v1/download/jobs/{id} Delete job record
GET /api/v1/download/presets Predefined regions
Interactive Docs
Full interactive API documentation with try-it-out:
Open Swagger UI Settings
Storage
Cache