An open API service indexing awesome lists of open source software.

https://github.com/alfarisi/leaflet-deepzoom

Display DeepZoom tiles with Leaflet
https://github.com/alfarisi/leaflet-deepzoom

deepzoom leaflet

Last synced: 5 months ago
JSON representation

Display DeepZoom tiles with Leaflet

Awesome Lists containing this project

README

          

# Leaflet-DeepZoom

[![npm version](https://img.shields.io/npm/v/leaflet-deepzoom.svg)](https://www.npmjs.com/package/leaflet-deepzoom)
[![license: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

Display DeepZoom (DZI) image tiles with [Leaflet](https://leafletjs.com/).
Originally based on Leaflet.Zoomify.

---

## πŸš€ Features
- Simple integration of DeepZoom (DZI) image tiles into Leaflet maps.
- Works with any DeepZoom-compatible tile source.
- Supports panning, zooming, and full Leaflet controls.
- Zero dependencies beyond Leaflet itself.

---

## πŸ“¦ Installation

Using npm:
```bash
npm install leaflet-deepzoom
```

Using CDN (for quick demo or CodePen):
```html

```

---

## πŸ—ΊοΈ Example

Live demo:
πŸ‘‰ [https://alfarisi.github.io/leaflet-deepzoom/example/](https://alfarisi.github.io/leaflet-deepzoom/example/)

Basic example:
```html


Leaflet DeepZoom Example


#map { height: 100vh; }




const map = L.map('map').setView([0, 0], 0);

var dzLayer = L.tileLayer.deepzoom('DeepZoomImage/hubble_files/', {
width: 2400,
height: 3000,
overlap: 1
}).addTo(map);

map.fitBounds(dzLayer.options.bounds);

```

---

## βš™οΈ Compatibility

| Leaflet Version | Plugin Version |
|------------------|----------------|
| 1.2.0 and later | 2.x |
| 0.7.x | 1.x (legacy) |

---

## πŸ“„ License
Released under the [MIT License](LICENSE).

---

## 🧩 Links
- **NPM:** [https://www.npmjs.com/package/leaflet-deepzoom](https://www.npmjs.com/package/leaflet-deepzoom)
- **GitHub Repo:** [https://github.com/alfarisi/leaflet-deepzoom](https://github.com/alfarisi/leaflet-deepzoom)