Skip to content

Commit fbb4731

Browse files
author
Stefan Kuethe
committed
Refactor method names
1 parent 40e08da commit fbb4731

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/standalone/layers/kml_vector_layer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
m.add_layer(kml_layer)
1212
# m.add_tooltip()
1313
# m.add_call("addDragAndDropVectorLayers")
14-
m.add_drag_and_drop_vector_layers_interaction(
14+
m.add_drag_and_drop_interaction(
1515
formats=[ol.formats.KML(extract_styles=False)],
1616
style=ol.FlatStyle(
1717
stroke_color="red", stroke_width=3, circle_radius=5, circle_stroke_color="green"

src/openlayers/map.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def add_tooltip(self, template: str = None) -> None:
146146
"""
147147
self.add_call("addTooltip", template)
148148

149-
def add_select_features(self) -> None:
149+
def add_select_interaction(self) -> None:
150150
"""Add `Select-Features` interaction to the map
151151
152152
Note:
@@ -155,7 +155,7 @@ def add_select_features(self) -> None:
155155
"""
156156
self.add_call("addSelectFeatures")
157157

158-
def add_drag_and_drop_vector_layers_interaction(
158+
def add_drag_and_drop_interaction(
159159
self,
160160
formats: list[FormatT] = [GeoJSON(), TopoJSON(), GPX(), KML()],
161161
style: FlatStyle | dict = None,

0 commit comments

Comments
 (0)