MCPcopy Create free account
hub / github.com/python-visualization/folium / _is_working_zoom_level

Function _is_working_zoom_level

tests/test_raster_layers.py:34–40  ·  view source on GitHub ↗

Check if the zoom level works for the given tileset.

(zoom, tiles, session)

Source from the content-addressed store, hash-verified

32
33
34def _is_working_zoom_level(zoom, tiles, session):
35 """Check if the zoom level works for the given tileset."""
36 url = tiles.format(s="a", x=0, y=0, z=zoom)
37 response = session.get(url, timeout=5)
38 if response.status_code < 400:
39 return True
40 return False
41
42
43def test_custom_tile_subdomains():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…