flet-map 0.2.0.dev46__py3-none-any.whl → 0.2.0.dev63__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of flet-map might be problematic. Click here for more details.

flet_map/__init__.py CHANGED
@@ -1,17 +1,17 @@
1
- from .circle_layer import CircleLayer, CircleMarker
2
- from .map import Map
3
- from .marker_layer import Marker, MarkerLayer
4
- from .polygon_layer import PolygonLayer, PolygonMarker
5
- from .polyline_layer import PolylineLayer, PolylineMarker
6
- from .rich_attribution import RichAttribution
7
- from .simple_attribution import SimpleAttribution
8
- from .source_attribution import (
1
+ from flet_map.circle_layer import CircleLayer, CircleMarker
2
+ from flet_map.map import Map
3
+ from flet_map.marker_layer import Marker, MarkerLayer
4
+ from flet_map.polygon_layer import PolygonLayer, PolygonMarker
5
+ from flet_map.polyline_layer import PolylineLayer, PolylineMarker
6
+ from flet_map.rich_attribution import RichAttribution
7
+ from flet_map.simple_attribution import SimpleAttribution
8
+ from flet_map.source_attribution import (
9
9
  ImageSourceAttribution,
10
10
  SourceAttribution,
11
11
  TextSourceAttribution,
12
12
  )
13
- from .tile_layer import TileLayer
14
- from .types import (
13
+ from flet_map.tile_layer import TileLayer
14
+ from flet_map.types import (
15
15
  AttributionAlignment,
16
16
  Camera,
17
17
  CameraFit,
@@ -39,3 +39,47 @@ from .types import (
39
39
  TileDisplay,
40
40
  TileLayerEvictErrorTileStrategy,
41
41
  )
42
+
43
+ __all__ = [
44
+ "AttributionAlignment",
45
+ "Camera",
46
+ "CameraFit",
47
+ "CircleLayer",
48
+ "CircleMarker",
49
+ "CursorKeyboardRotationConfiguration",
50
+ "CursorRotationBehaviour",
51
+ "DashedStrokePattern",
52
+ "DottedStrokePattern",
53
+ "FadeInTileDisplay",
54
+ "ImageSourceAttribution",
55
+ "InstantaneousTileDisplay",
56
+ "InteractionConfiguration",
57
+ "InteractionFlag",
58
+ "KeyboardConfiguration",
59
+ "Map",
60
+ "MapEvent",
61
+ "MapEventSource",
62
+ "MapHoverEvent",
63
+ "MapLatitudeLongitude",
64
+ "MapLatitudeLongitudeBounds",
65
+ "MapPointerEvent",
66
+ "MapPositionChangeEvent",
67
+ "MapTapEvent",
68
+ "Marker",
69
+ "MarkerLayer",
70
+ "MultiFingerGesture",
71
+ "PatternFit",
72
+ "PolygonLayer",
73
+ "PolygonMarker",
74
+ "PolylineLayer",
75
+ "PolylineMarker",
76
+ "RichAttribution",
77
+ "SimpleAttribution",
78
+ "SolidStrokePattern",
79
+ "SourceAttribution",
80
+ "StrokePattern",
81
+ "TextSourceAttribution",
82
+ "TileDisplay",
83
+ "TileLayer",
84
+ "TileLayerEvictErrorTileStrategy",
85
+ ]
flet_map/circle_layer.py CHANGED
@@ -1,17 +1,18 @@
1
- from typing import List, Optional
1
+ from typing import Optional
2
2
 
3
3
  import flet as ft
4
4
 
5
- from .map_layer import MapLayer
6
- from .types import MapLatitudeLongitude
5
+ from flet_map.map_layer import MapLayer
6
+ from flet_map.types import MapLatitudeLongitude
7
7
 
8
- __all__ = ["CircleMarker", "CircleLayer"]
8
+ __all__ = ["CircleLayer", "CircleMarker"]
9
9
 
10
10
 
11
11
  @ft.control("CircleMarker")
12
12
  class CircleMarker(ft.Control):
13
13
  """
14
- A circular marker displayed on the Map at the specified location through the [`CircleLayer`][(p).].
14
+ A circular marker displayed on the Map at the specified
15
+ location through the [`CircleLayer`][(p).].
15
16
 
16
17
  Raises:
17
18
  AssertionError: If the [`border_stroke_width`][(c).] is negative.
@@ -29,14 +30,16 @@ class CircleMarker(ft.Control):
29
30
  border_color: Optional[ft.ColorValue] = None
30
31
  """
31
32
  The color of the circle border line.
32
-
33
- Needs [`border_stroke_width`][..] to be greater than `0.0` in order to be visible.
33
+
34
+ Note:
35
+ [`border_stroke_width`][..] must to be greater than
36
+ `0.0` in order for this color to be visible.
34
37
  """
35
38
 
36
39
  border_stroke_width: ft.Number = 0.0
37
40
  """
38
- The stroke width for the circle border.
39
-
41
+ The stroke width for the circle border.
42
+
40
43
  Note:
41
44
  Must be non-negative.
42
45
  """
@@ -48,9 +51,10 @@ class CircleMarker(ft.Control):
48
51
 
49
52
  def before_update(self):
50
53
  super().before_update()
51
- assert (
52
- self.border_stroke_width >= 0
53
- ), "border_stroke_width must be greater than or equal to 0"
54
+ assert self.border_stroke_width >= 0, (
55
+ f"border_stroke_width must be greater than or equal to 0, "
56
+ f"got {self.border_stroke_width}"
57
+ )
54
58
 
55
59
 
56
60
  @ft.control("CircleLayer")
@@ -59,5 +63,5 @@ class CircleLayer(MapLayer):
59
63
  A layer to display [`CircleMarker`][(p).]s.
60
64
  """
61
65
 
62
- circles: List[CircleMarker]
66
+ circles: list[CircleMarker]
63
67
  """A list of [`CircleMarker`][(p).]s to display."""