Test requests for remote GeoJSON files.
(self)
| 490 | assert m.global_switches.disable_3d |
| 491 | |
| 492 | def test_json_request(self): |
| 493 | """Test requests for remote GeoJSON files.""" |
| 494 | self.m = folium.Map(zoom_start=4) |
| 495 | |
| 496 | # Adding remote GeoJSON as additional layer. |
| 497 | GeoJson(remote_url, smooth_factor=0.5).add_to(self.m) |
| 498 | |
| 499 | self.m._parent.render() |
| 500 | bounds = self.m.get_bounds() |
| 501 | np.testing.assert_allclose( |
| 502 | bounds, [[18.948267, -178.123152], [71.351633, 173.304726]] |
| 503 | ) |
| 504 | |
| 505 | def test_control_typecheck(self): |
| 506 | m = folium.Map( |
nothing calls this directly
no test coverage detected