Files
Buffteks-Website/buffteks/lib/python3.12/site-packages/folium/templates/fit_bounds.js
2025-05-08 21:10:14 -05: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 %}