Skip to content

Commit fda2836

Browse files
authored
Merge pull request #382 from martinRenou/max_min_native_zoom
Add min_native_zoom and max_native_zoom for TileLayer
2 parents 2f3d8c6 + b26c927 commit fda2836

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

docs/source/api_reference/tile_layer.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ Attribute Default Value
5252
url "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
5353
min_zoom 0
5454
max_zoom 18
55+
min_native_zoom 0
56+
max_native_zoom 18
5557
tile_size 256
5658
attribution "Map data (c) <a href=\'https://openstreetmap.org\'>OpenStreetMap</a> contributors"
5759
detect_retina False

ipyleaflet/leaflet.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ class TileLayer(RasterLayer):
235235
url = Unicode('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').tag(sync=True)
236236
min_zoom = Int(0).tag(sync=True, o=True)
237237
max_zoom = Int(18).tag(sync=True, o=True)
238+
min_native_zoom = Int(0).tag(sync=True, o=True)
239+
max_native_zoom = Int(18).tag(sync=True, o=True)
238240
tile_size = Int(256).tag(sync=True, o=True)
239241
attribution = Unicode('Map data (c) <a href="https://openstreetmap.org">OpenStreetMap</a> contributors').tag(sync=True, o=True)
240242
detect_retina = Bool(False).tag(sync=True, o=True)

0 commit comments

Comments
 (0)