Files
Buffteks-Website/streamlit-venv/lib/python3.10/site-packages/folium/templates/fit_bounds.js
2025-01-10 21:40:35 +00:00

12 lines
268 B
JavaScript

{% if autobounds %}
var autobounds = L.featureGroup({{ features }}).getBounds()
{% if not bounds %}
{% set bounds = "autobounds" %}
{% endif %}
{% endif %}
{% if bounds %}
{{this._parent.get_name()}}.fitBounds({{ bounds }},
{{ fit_bounds_options }}
);
{% endif %}