()
| 13 | |
| 14 | |
| 15 | def test_tile_layer(): |
| 16 | m = folium.Map([48.0, 5.0], zoom_start=6) |
| 17 | layer = "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" |
| 18 | |
| 19 | folium.raster_layers.TileLayer( |
| 20 | tiles=layer, name="OpenStreetMap", attr="attribution" |
| 21 | ).add_to(m) |
| 22 | |
| 23 | folium.raster_layers.TileLayer( |
| 24 | tiles=layer, name="OpenStreetMap2", attr="attribution2", overlay=True |
| 25 | ).add_to(m) |
| 26 | |
| 27 | folium.LayerControl().add_to(m) |
| 28 | m._repr_html_() |
| 29 | |
| 30 | bounds = m.get_bounds() |
| 31 | assert bounds == [[None, None], [None, None]], bounds |
| 32 | |
| 33 | |
| 34 | def _is_working_zoom_level(zoom, tiles, session): |
nothing calls this directly
no test coverage detected