Skip to content

Commit 5747502

Browse files
committed
Remove dead #map CSS rule from Map template
The #map functioned as a selector, and the actual rendered ids of maps are formatted as map_<hash>. #{{ this.get_name() }} functions as the rule that handles map styles. #2229 PR deleted this, but #map remained due to folium.py being reverted upstream prior to merging, so it still causes 2186 to fail. After removing #map from the HTML styles in folium.py, test 2186 works.
1 parent 61bfaa5 commit 5747502

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

folium/folium.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -210,15 +210,6 @@ class Map(JSCSSMixin, Evented):
210210
}
211211
</style>
212212
213-
<style>#map {
214-
position:absolute;
215-
top:0;
216-
bottom:0;
217-
right:0;
218-
left:0;
219-
}
220-
</style>
221-
222213
<script>
223214
L_NO_TOUCH = {{ this.global_switches.no_touch |tojson}};
224215
L_DISABLE_3D = {{ this.global_switches.disable_3d|tojson }};

0 commit comments

Comments
 (0)