Bounds
deckgl_marimo.compute_bounds
Compute [[west, south], [east, north]] enclosing all coordinates in data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
Any
|
A GeoJSON dict (FeatureCollection/Feature/geometry), a list of items
(each a |
required |
position
|
list[str] | None
|
Column names for longitude and latitude, e.g. |
None
|
get_coordinates
|
Callable[[Any], Any] | None
|
Optional accessor mapping each item to its coordinate(s); use when coordinates live under a non-standard key. |
None
|
Returns:
| Type | Description |
|---|---|
list[list[float]]
|
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If no coordinates are found. |