diff --git a/docs/changelog.md b/docs/changelog.md index 4849d3a..45ed164 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -2,7 +2,7 @@ ## maplibre v0.2.7 (unreleased) -* Add `basemaps.Maptiler` +* Add `basemaps.MapTiler` * Add `maplibre.__future__` diff --git a/maplibre/express.py b/maplibre/express.py index 1a2e67d..4ecd58c 100644 --- a/maplibre/express.py +++ b/maplibre/express.py @@ -35,6 +35,7 @@ def path_is_geojson_url(path: str) -> bool: return path.startswith("http") and path.endswith("json") +# TODO: Maybe rename to DataLayer? class SimpleLayer(Layer): sf: Union[SimpleFeatures, gpd.GeoDataFrame, str] = Field(exclude=True) @@ -48,6 +49,7 @@ def model_post_init(self, __context) -> None: else: self.source = self.sf.to_source() + # TODO: Use layer paint properties from options if self.paint is None: layer_type = LayerType(self.type).value self.paint = {f"{layer_type}-color": options.fallback_color}