File tree Expand file tree Collapse file tree 8 files changed +23
-17
lines changed Expand file tree Collapse file tree 8 files changed +23
-17
lines changed Original file line number Diff line number Diff line change 1010 options:
1111 docstring_section_style: list
1212
13- ::: maplibre.basemaps.construct_basemap_style
13+ ::: maplibre.basemaps.BasemapStyle
14+
15+ ::: maplibre.sky.Sky
16+
17+ ::: maplibre.light.Light
18+
19+ ::: maplibre.terrain.Terrain
Original file line number Diff line number Diff line change 1818
1919::: maplibre.controls.GeolocateControl
2020
21+ ::: maplibre.controls.GlobeControl
22+
23+ ::: maplibre.controls.TerrainControl
24+
2125::: maplibre.controls.InfoBoxControl
2226
2327::: maplibre.controls.LayerSwitcherControl
Original file line number Diff line number Diff line change 1919class BasemapStyle (BaseModel ):
2020 """Basemap style
2121
22- See also https://maplibre.org/maplibre-style-spec/root/.
22+ Note:
23+ See [maplibre-style-spec/root](https://maplibre.org/maplibre-style-spec/root/) for more details.
2324 """
2425
2526 _version = 8
@@ -37,16 +38,6 @@ class BasemapStyle(BaseModel):
3738 bearing : int | float | None = None
3839 pitch : int | float | None = None
3940
40- # Obsolete because now alias is used
41- """
42- @field_validator("sky")
43- def validate_sky(cls, v):
44- if isinstance(v, Sky):
45- return v.to_dict()
46-
47- return v
48- """
49-
5041 @computed_field
5142 def version (self ) -> int :
5243 return self ._version
Original file line number Diff line number Diff line change 99class Light (MapLibreBaseModel ):
1010 """Light configuration
1111
12- See also https://maplibre.org/maplibre-style-spec/light/.
12+ Note:
13+ See [maplibre-style-spec/light](https://maplibre.org/maplibre-style-spec/light/) for more details.
1314 """
1415
1516 anchor : Literal ["map" , "viewport" ] = "map"
Original file line number Diff line number Diff line change 88class Sky (MapLibreBaseModel ):
99 """Sky configuration
1010
11- See also https://maplibre.org/maplibre-style-spec/sky/.
11+ Note:
12+ See [maplibre-style-spec/sky](https://maplibre.org/maplibre-style-spec/sky/) for more details.
1213 """
1314
1415 sky_color : str | list | None = Field ("#88C6FC" , serialization_alias = "sky-color" )
Original file line number Diff line number Diff line change @@ -97,6 +97,8 @@ class RasterSource(RasterTileSource): ...
9797
9898
9999class RasterDEMSource (Source ):
100+ """Raster DEM Source"""
101+
100102 url : str = None
101103 tiles : list = None
102104 bounds : Union [tuple , list ] = None
Original file line number Diff line number Diff line change 66class Terrain (MapLibreBaseModel ):
77 """Terrain configuration
88
9- See also https://maplibre.org/maplibre-style-spec/terrain/.
9+ Note:
10+ See [maplibre-style-spec/terrain](https://maplibre.org/maplibre-style-spec/terrain/) for more details.
1011 """
1112
1213 source : str
13- exaggeration : int | float = 1
14+ exaggeration : int | float | None = 1
Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " maplibre"
3- version = " 0.3.1.9000 "
3+ version = " 0.3.2 "
44description = " Python bindings for MapLibre GL JS"
55authors = [" Stefan Kuethe <stefan.kuethe@eoda.de>" ]
66readme = " README.md"
You can’t perform that action at this time.
0 commit comments