Skip to content

Commit dc56ddc

Browse files
authored
set min/maxNativeZoom in tileLayer instead of min/maxZoom (#1015)
1 parent 642797c commit dc56ddc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
* Use `@attrs.define` instead of dataclass for factories **breaking change**
2424
* Use `@attrs.define` instead of dataclass for factory extensions **breaking change**
2525
* Handle `numpy` types in JSON/GeoJSON response
26+
* In the `map.html` template, use the tilejson's `minzoom` and `maxzoom` to populate `minNativeZoom` and `maxNativeZoom` parameters in leaflet `tileLayer` instead of `minZoom` and `maxZoom`
2627
2728
### titiler.core
2829

src/titiler/core/titiler/core/templates/map.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@
129129

130130
L.tileLayer(
131131
data.tiles[0], {
132-
minZoom: data.minzoom,
133-
maxZoom: data.maxzoom,
132+
maxNativeZoom: data.maxzoom,
133+
minNativeZoom: data.minzoom,
134134
bounds: L.latLngBounds([bottom, left], [top, right]),
135135
}
136136
).addTo(map);

0 commit comments

Comments
 (0)