I am using folium package in Python to construct the map in this link: GeoAdmin Map Link
For basic map creation I am using:
map_geo = folium.Map(location=[47.46901, 9.36688], zoom_start=13)
And then try to add the layer as wms layer:
folium.raster_layers.WmsTileLayer(url = 'https://wms.geo.admin.ch/?',
layers = 'ch.bfe.fernwaerme-nachfrage_wohn_dienstleistungsgebaeude',
transparent = False,
control = True,
name = 'energy',
overlay=True,
show = True,
).add_to(map_geo)
folium.LayerControl().add_to(map_geo)
In the end the final map looks like:
If I choose the base layer alone from the layer control then I can see it. But if I activate the energy usage layer, background layer is going all white. What am I doing wrong?
Thanks