flet-map 0.2.0.dev45__tar.gz → 0.2.0.dev58__tar.gz

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.

Files changed (40) hide show
  1. {flet_map-0.2.0.dev45/src/flet_map.egg-info → flet_map-0.2.0.dev58}/PKG-INFO +1 -1
  2. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/pyproject.toml +36 -14
  3. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/src/flet_map/__init__.py +44 -0
  4. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/src/flet_map/circle_layer.py +15 -11
  5. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/src/flet_map/map.py +146 -106
  6. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/src/flet_map/marker_layer.py +36 -23
  7. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/src/flet_map/polygon_layer.py +13 -12
  8. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/src/flet_map/polyline_layer.py +13 -10
  9. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/src/flet_map/rich_attribution.py +11 -8
  10. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/src/flet_map/simple_attribution.py +4 -6
  11. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/src/flet_map/source_attribution.py +12 -8
  12. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/src/flet_map/tile_layer.py +46 -37
  13. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/src/flet_map/types.py +218 -155
  14. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58/src/flet_map.egg-info}/PKG-INFO +1 -1
  15. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/src/flutter/flet_map/pubspec.lock +12 -12
  16. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/src/flutter/flet_map/pubspec.yaml +2 -2
  17. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/LICENSE +0 -0
  18. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/README.md +0 -0
  19. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/setup.cfg +0 -0
  20. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/src/flet_map/map_layer.py +0 -0
  21. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/src/flet_map.egg-info/SOURCES.txt +0 -0
  22. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/src/flet_map.egg-info/dependency_links.txt +0 -0
  23. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/src/flet_map.egg-info/requires.txt +0 -0
  24. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/src/flet_map.egg-info/top_level.txt +0 -0
  25. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/src/flutter/flet_map/CHANGELOG.md +0 -0
  26. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/src/flutter/flet_map/LICENSE +0 -0
  27. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/src/flutter/flet_map/README.md +0 -0
  28. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/src/flutter/flet_map/analysis_options.yaml +0 -0
  29. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/src/flutter/flet_map/lib/flet_map.dart +0 -0
  30. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/src/flutter/flet_map/lib/src/circle_layer.dart +0 -0
  31. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/src/flutter/flet_map/lib/src/extension.dart +0 -0
  32. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/src/flutter/flet_map/lib/src/map.dart +0 -0
  33. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/src/flutter/flet_map/lib/src/marker_layer.dart +0 -0
  34. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/src/flutter/flet_map/lib/src/polygon_layer.dart +0 -0
  35. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/src/flutter/flet_map/lib/src/polyline_layer.dart +0 -0
  36. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/src/flutter/flet_map/lib/src/rich_attribution.dart +0 -0
  37. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/src/flutter/flet_map/lib/src/simple_attribution.dart +0 -0
  38. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/src/flutter/flet_map/lib/src/tile_layer.dart +0 -0
  39. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/src/flutter/flet_map/lib/src/utils/attribution_alignment.dart +0 -0
  40. {flet_map-0.2.0.dev45 → flet_map-0.2.0.dev58}/src/flutter/flet_map/lib/src/utils/map.dart +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flet-map
3
- Version: 0.2.0.dev45
3
+ Version: 0.2.0.dev58
4
4
  Summary: Display interactive Maps in your Flet apps.
5
5
  Author-email: Flet contributors <hello@flet.dev>
6
6
  License-Expression: Apache-2.0
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "flet-map"
3
- version = "0.2.0.dev45"
3
+ version = "0.2.0.dev58"
4
4
  description = "Display interactive Maps in your Flet apps."
5
5
  readme = "README.md"
6
6
  authors = [{ name = "Flet contributors", email = "hello@flet.dev" }]
@@ -20,22 +20,43 @@ Issues = "https://github.com/flet-dev/flet-map/issues"
20
20
  "flutter.flet_map" = ["**/*"]
21
21
 
22
22
  [dependency-groups]
23
+ test = [
24
+ "pytest >=7.2.0",
25
+ ]
26
+ lint = [
27
+ "ruff >=0.11.7",
28
+ ]
23
29
  dev = [
24
- "pre-commit>=4.2.0",
25
- "ruff>=0.11.7",
30
+ "pre-commit >=4.2.0",
31
+ { include-group = 'lint' },
32
+ { include-group = 'test' },
33
+ ]
34
+ docs-coverage = [
35
+ "docstr-coverage >=2.3.2",
26
36
  ]
27
37
  docs = [
28
- "mkdocs",
29
- "mkdocs-material",
30
- "mkdocstrings[python]",
31
- "mkdocstrings-python-xref",
32
- "mike",
33
- "markdown>=3.6",
34
- "pymdown-extensions",
35
- "mkdocs-glightbox",
36
- "mkdocs-section-index",
37
- "griffe-modernized-annotations",
38
- "pygments>=2.16",
38
+ "mkdocs >=1.6.1",
39
+ "mkdocs-material >=9.6.15",
40
+ "mkdocstrings-python >=1.16.12",
41
+ "mkdocstrings-python-xref >=1.16.3",
42
+ "mike >=2.1.3",
43
+ "markdown >=3.6",
44
+ "pymdown-extensions >=10.16",
45
+ "mkdocs-exclude >=1.0.2",
46
+ "mkdocs-glightbox >=0.4.0",
47
+ "mkdocs-open-in-new-tab >=1.0.8",
48
+ "mkdocs-section-index >=0.3.10",
49
+ "griffe-modernized-annotations >=1.0.8",
50
+ "griffe-warnings-deprecated >=1.1.0",
51
+ "pygments >=2.16",
52
+ "markdown-exec[ansi] >=1.11.0",
53
+ "pydocstyle >=6.3.0",
54
+ "linkcheckmd >=1.4.0",
55
+ { include-group = 'docs-coverage' },
56
+ ]
57
+ all = [
58
+ { include-group = 'dev' },
59
+ { include-group = 'docs' },
39
60
  ]
40
61
 
41
62
  [build-system]
@@ -64,6 +85,7 @@ select = [
64
85
  "I"
65
86
  ]
66
87
  preview = true
88
+ pydocstyle = { convention = 'google' }
67
89
 
68
90
  [tool.ruff.format]
69
91
  quote-style = "double"
@@ -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
+ ]
@@ -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
5
  from .map_layer import MapLayer
6
6
  from .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."""