pysepal.mapping.bounds#
Auxiliary functions for computing map bounds and zoom levels.
Functions
Given [[south, west], [north, east]], return (lat, lon) center. |
|
Calculate the Web Mercator zoom that fits bounds into the viewport. |
|
Derive the map viewport (width, height) in pixels from synced bounds+zoom. |
|
Back-compat wrapper returning only the viewport width in pixels. |