Skip to content

Commit 6bf0c6b

Browse files
committed
Style
1 parent 57937df commit 6bf0c6b

File tree

6 files changed

+14
-7
lines changed

6 files changed

+14
-7
lines changed

src/openlayers/basemaps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def __init__(self, style: str | Carto = None) -> None:
5656
@property
5757
def model(self) -> TileLayer:
5858
return self._model
59-
59+
6060
@staticmethod
6161
def osm() -> TileLayer:
6262
return TileLayer(id="osm", source=OSM())

src/openlayers/controls.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
OverviewMapControl,
99
ScaleLineControl,
1010
ZoomSliderControl,
11-
MousePositionControl
11+
MousePositionControl,
1212
)
1313

1414
__all__ = [
@@ -17,5 +17,5 @@
1717
"OverviewMapControl",
1818
"ScaleLineControl",
1919
"ZoomSliderControl",
20-
"MousePositionControl"
20+
"MousePositionControl",
2121
]

src/openlayers/layers.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,10 @@
1111

1212
from .basemaps import BasemapLayer
1313

14-
__all__ = ["TileLayer", "VectorLayer", "WebGLTileLayer", "WebGLVectorLayer", "BasemapLayer"]
14+
__all__ = [
15+
"TileLayer",
16+
"VectorLayer",
17+
"WebGLTileLayer",
18+
"WebGLVectorLayer",
19+
"BasemapLayer",
20+
]

src/openlayers/map.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def add_tooltip(self, template: str = None) -> None:
146146

147147
def add_select_features(self) -> None:
148148
"""Add `Select-Features` interaction to the map
149-
149+
150150
Note:
151151
At the moment highlighting of selected features only works for `VectorLayer` type
152152
"""

src/openlayers/models/formats.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ class GeoJSON(Format): ...
1616

1717
class KML(Format):
1818
extract_styles: bool = Field(True, serialization_alias="extractStyles")
19-
2019

2120

2221
# --- Format type

src/openlayers/models/view.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ class View(OLBaseModel):
4444
center: tuple[float, float] | None = (0, 0)
4545
zoom: float | int | None = 0
4646
projection: str | None = Projection.WEB_MERCATOR
47-
extent: tuple[float, float, float, float] | list[float, float, float, float] | None = None
47+
extent: (
48+
tuple[float, float, float, float] | list[float, float, float, float] | None
49+
) = None
4850
min_zoom: int | float | None = Field(None, serialization_alias="minZoom")
4951
max_zoom: int | float | None = Field(None, serialization_alias="maxZoom")

0 commit comments

Comments
 (0)