A web-based application for viewing and testing MBTiles files directly in the browser. This project provides two different implementations using popular mapping libraries:
- Cesium.js Implementation (
mbtiles-cesium.html
) - Leaflet.js Implementation (
mbtiles-leaflet.html
)
- Download and serve MBTiles files directly in the browser
- View map tiles using either Cesium.js or Leaflet.js
- Test tile loading and rendering
- Cache management for offline access
- Progress tracking and status monitoring
- Detailed logging system
- Modern, responsive UI
- A modern web browser with JavaScript enabled
- Internet connection for initial library loading
- Cesium.js (v1.113)
- SQL.js (v1.13.0)
- Leaflet.js (v1.9.4)
- SQL.js (v1.13.0)
- Open either
mbtiles-cesium.html
ormbtiles-leaflet.html
in your web browser - Enter the URL of your MBTiles file in the input field
- Click the "Download" button to fetch the MBTiles file
- Once downloaded, the tiles will be displayed on the map
- Use the map controls to navigate and explore the tiles
- Pan and zoom functionality
- Tile preview grid
- Status monitoring
- Download progress tracking
- Cache management
- Modern, responsive design
- Progress bars
- Status indicators
- Detailed logging console
- Tile preview grid
This application works best in modern browsers that support:
- IndexedDB
- Web Workers
- Fetch API
- Modern JavaScript features
This project is open source and available under the MIT License.
Contributions are welcome! Please feel free to submit a Pull Request.