Skip to content

Commit 0d2415b

Browse files
authored
Fix styling on tag filter button (#1925)
The original example from tagfilterbutton had some extra lines of styling in the css, that were not present in the supplied css file. As a workaround, I copied those lines into the Folium template.
1 parent 570f293 commit 0d2415b

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

folium/plugins/tag_filter_button.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,18 @@ class TagFilterButton(JSCSSMixin, MacroElement):
3030

3131
_template = Template(
3232
"""
33+
{% macro header(this,kwargs) %}
34+
<style>
35+
.easy-button-button {
36+
display: block !important;
37+
}
38+
39+
.tag-filter-tags-container {
40+
left: 30px;
41+
}
42+
</style>
43+
{% endmacro %}
44+
3345
{% macro script(this, kwargs) %}
3446
var {{ this.get_name() }} = L.control.tagFilterButton(
3547
{{ this.options|tojson }}

0 commit comments

Comments
 (0)