I would like to create a map with 2 o3 3 possibilities for background. If I define the tiles inside a Group:
tiles=dl.LayerGroup([ dl.TileLayer(url=“http://www.google.cn/maps/vt?lyrs=s@189&gl=cn&x={x}&y={y}&z={z}”),
dl.TileLayer() ])
map=Map([dl.LayersControl(tiles)],
style={‘height’: ‘50vh’}, center=[centerLat,centerLon],
zoom=zoom, id=‘mapdams’
)
only the second one is shown. Inverting the order of the layers I see Google map. On the right a layer selection appears but as the layers do not have a name they canno be seen in the control. How can I name the tile layers so that I see them in the control ? Also, is it possible to have them as mutually exclusive ? Is this the right way to have more layers ?
Thanks