Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Kuethe committed Sep 6, 2024
1 parent 36381c1 commit fa78654
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## maplibre v0.2.7 (unreleased)

* Add `basemaps.Maptiler`
* Add `basemaps.MapTiler`

* Add `maplibre.__future__`

Expand Down
2 changes: 2 additions & 0 deletions maplibre/express.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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}
Expand Down

0 comments on commit fa78654

Please sign in to comment.