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 10
10
options:
11
11
docstring_section_style: list
12
12
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 18
18
19
19
::: maplibre.controls.GeolocateControl
20
20
21
+ ::: maplibre.controls.GlobeControl
22
+
23
+ ::: maplibre.controls.TerrainControl
24
+
21
25
::: maplibre.controls.InfoBoxControl
22
26
23
27
::: maplibre.controls.LayerSwitcherControl
Original file line number Diff line number Diff line change 19
19
class BasemapStyle (BaseModel ):
20
20
"""Basemap style
21
21
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.
23
24
"""
24
25
25
26
_version = 8
@@ -37,16 +38,6 @@ class BasemapStyle(BaseModel):
37
38
bearing : int | float | None = None
38
39
pitch : int | float | None = None
39
40
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
-
50
41
@computed_field
51
42
def version (self ) -> int :
52
43
return self ._version
Original file line number Diff line number Diff line change 9
9
class Light (MapLibreBaseModel ):
10
10
"""Light configuration
11
11
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.
13
14
"""
14
15
15
16
anchor : Literal ["map" , "viewport" ] = "map"
Original file line number Diff line number Diff line change 8
8
class Sky (MapLibreBaseModel ):
9
9
"""Sky configuration
10
10
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.
12
13
"""
13
14
14
15
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): ...
97
97
98
98
99
99
class RasterDEMSource (Source ):
100
+ """Raster DEM Source"""
101
+
100
102
url : str = None
101
103
tiles : list = None
102
104
bounds : Union [tuple , list ] = None
Original file line number Diff line number Diff line change 6
6
class Terrain (MapLibreBaseModel ):
7
7
"""Terrain configuration
8
8
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.
10
11
"""
11
12
12
13
source : str
13
- exaggeration : int | float = 1
14
+ exaggeration : int | float | None = 1
Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " maplibre"
3
- version = " 0.3.1.9000 "
3
+ version = " 0.3.2 "
4
4
description = " Python bindings for MapLibre GL JS"
5
5
authors = [" Stefan Kuethe <stefan.kuethe@eoda.de>" ]
6
6
readme = " README.md"
You can’t perform that action at this time.
0 commit comments