Skip to content

Commit 88bca71

Browse files
authored
feat: PMTiles constructor for RasterLayer (#1105)
https://github.com/user-attachments/assets/4b178c4c-61b4-4b1c-b75c-12dca46dcacd Remaining tasks: - Documentation - Example - Fix type errors - Write small release post - Release Closes #1094
1 parent 62dfbbf commit 88bca71

11 files changed

Lines changed: 649 additions & 211 deletions

File tree

docs/api/layers/raster-layer.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# RasterLayer
2+
3+
::: lonboard.RasterLayer

examples/raster-pmtiles.ipynb

Lines changed: 160 additions & 0 deletions
Large diffs are not rendered by default.

lonboard/layer/_bitmap.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import TYPE_CHECKING
5+
from typing import TYPE_CHECKING, Unpack
66

77
import traitlets.traitlets as t
88

@@ -34,7 +34,7 @@ class BitmapLayer(BaseLayer):
3434
```
3535
"""
3636

37-
def __init__(self, **kwargs: BitmapLayerKwargs) -> None:
37+
def __init__(self, **kwargs: Unpack[BitmapLayerKwargs]) -> None:
3838
super().__init__(**kwargs) # type: ignore
3939

4040
_layer_type = t.Unicode("bitmap").tag(sync=True)
@@ -144,7 +144,7 @@ class BitmapTileLayer(BaseLayer):
144144
```
145145
"""
146146

147-
def __init__(self, **kwargs: BitmapTileLayerKwargs) -> None:
147+
def __init__(self, **kwargs: Unpack[BitmapTileLayerKwargs]) -> None:
148148
super().__init__(**kwargs) # type: ignore
149149

150150
_layer_type = t.Unicode("bitmap-tile").tag(sync=True)

0 commit comments

Comments
 (0)