We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7365bb commit 36ace40Copy full SHA for 36ace40
folium/map.py
@@ -289,11 +289,11 @@ def render(self, **kwargs):
289
self.base_layers = OrderedDict(
290
[(val.tile_name, val.get_name()) for key, val in
291
self._parent._children.items() if
292
- isinstance(val, TileLayer) and not val.overlay])
+ isinstance(val, TileLayer) and not hasattr(val, 'overlay')])
293
self.overlays = OrderedDict(
294
295
296
- isinstance(val, TileLayer) and val.overlay])
+ isinstance(val, TileLayer) and hasattr(val, 'overlay')])
297
298
super(LayerControl, self).render()
299
0 commit comments