Skip to content

Commit 288644b

Browse files
committed
Default overlay=True for WMS
1 parent 36ace40 commit 288644b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

folium/features.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
class WmsTileLayer(TileLayer):
1919
def __init__(self, url, name=None,
2020
format=None, layers=None, transparent=True,
21-
attr=None):
21+
attr=None, overlay=True):
2222
"""
2323
TODO docstring here
2424
@@ -29,6 +29,7 @@ def __init__(self, url, name=None,
2929
self.url = url
3030
self.format = format
3131
self.layers = layers
32+
self.overlay = overlay
3233
self.transparent = transparent
3334
self.attr = attr
3435

@@ -616,7 +617,7 @@ def __init__(self, locations, color=None, weight=None,
616617

617618

618619
class ImageOverlay(MacroElement):
619-
def __init__(self, image, bounds, opacity=1., attr=None,
620+
def __init__(self, image, bounds, opacity=1., attribution=None,
620621
origin='upper', colormap=None, mercator_project=False):
621622
"""
622623
Used to load and display a single image over specific bounds of
@@ -661,7 +662,7 @@ def __init__(self, image, bounds, opacity=1., attr=None,
661662
self.bounds = json.loads(json.dumps(bounds))
662663
options = {
663664
'opacity': opacity,
664-
'attribution': attr,
665+
'attribution': attribution,
665666
}
666667
self.options = json.dumps({key: val for key, val
667668
in options.items() if val},

0 commit comments

Comments
 (0)