Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Deck.gl to version 9 #562

Merged
merged 8 commits into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/api/layers/heatmap-layer.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# HeatmapLayer

!!! warning
The `HeatmapLayer` is not currently working.

As of Lonboard v0.10, Lonboard upgraded to version 9.0 of the underlying [deck.gl](https://deck.gl/) library. deck.gl [appears to have a bug](https://github.com/visgl/deck.gl/issues/8960#issuecomment-2284791644) with the HeatmapLayer in 9.0, that has not yet been fixed.

Please temporarily downgrade to Lonboard v0.9 if you would like to use the `HeatmapLayer`.

![](../../assets/duckdb-heatmap.jpg)

> Screenshot from [DuckDB Spatial](../../examples/duckdb) example
Expand Down
15 changes: 15 additions & 0 deletions lonboard/_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
from __future__ import annotations

import sys
import warnings
from textwrap import dedent
from typing import (
TYPE_CHECKING,
List,
Expand Down Expand Up @@ -1928,6 +1930,19 @@ class HeatmapLayer(BaseArrowLayer):
def __init__(
self, *, table: ArrowStreamExportable, **kwargs: Unpack[HeatmapLayerKwargs]
):
err_msg = """\
The `HeatmapLayer` is not currently working.

As of Lonboard v0.10, Lonboard upgraded to version 9.0 of the underlying
[deck.gl](https://deck.gl/) library. deck.gl [appears to have a
bug](https://github.com/visgl/deck.gl/issues/8960#issuecomment-2284791644) with
the HeatmapLayer in 9.0, that has not yet been fixed.

Please temporarily downgrade to Lonboard v0.9 if you would like to use the
`HeatmapLayer`.
"""
warnings.warn(dedent(err_msg), UserWarning)

# NOTE: we override the default for _rows_per_chunk because otherwise we render
# one heatmap per _chunk_ not for the entire dataset.
table_o3 = Table.from_arrow(table)
Expand Down
Loading