flet-map 0.83.1__tar.gz → 0.84.0.dev0__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.
Files changed (37) hide show
  1. {flet_map-0.83.1/src/flet_map.egg-info → flet_map-0.84.0.dev0}/PKG-INFO +5 -5
  2. {flet_map-0.83.1 → flet_map-0.84.0.dev0}/README.md +2 -2
  3. {flet_map-0.83.1 → flet_map-0.84.0.dev0}/pyproject.toml +3 -3
  4. {flet_map-0.83.1 → flet_map-0.84.0.dev0}/src/flet_map/circle_layer.py +5 -5
  5. {flet_map-0.83.1 → flet_map-0.84.0.dev0}/src/flet_map/map.py +30 -23
  6. flet_map-0.84.0.dev0/src/flet_map/map_layer.py +20 -0
  7. {flet_map-0.83.1 → flet_map-0.84.0.dev0}/src/flet_map/marker_layer.py +12 -12
  8. {flet_map-0.83.1 → flet_map-0.84.0.dev0}/src/flet_map/polygon_layer.py +4 -3
  9. {flet_map-0.83.1 → flet_map-0.84.0.dev0}/src/flet_map/polyline_layer.py +4 -4
  10. {flet_map-0.83.1 → flet_map-0.84.0.dev0}/src/flet_map/rich_attribution.py +3 -3
  11. {flet_map-0.83.1 → flet_map-0.84.0.dev0}/src/flet_map/simple_attribution.py +1 -1
  12. {flet_map-0.83.1 → flet_map-0.84.0.dev0}/src/flet_map/source_attribution.py +10 -10
  13. {flet_map-0.83.1 → flet_map-0.84.0.dev0}/src/flet_map/tile_layer.py +28 -30
  14. {flet_map-0.83.1 → flet_map-0.84.0.dev0}/src/flet_map/types.py +89 -81
  15. {flet_map-0.83.1 → flet_map-0.84.0.dev0/src/flet_map.egg-info}/PKG-INFO +5 -5
  16. flet_map-0.84.0.dev0/src/flet_map.egg-info/requires.txt +1 -0
  17. flet_map-0.83.1/src/flet_map/map_layer.py +0 -20
  18. flet_map-0.83.1/src/flet_map.egg-info/requires.txt +0 -1
  19. {flet_map-0.83.1 → flet_map-0.84.0.dev0}/LICENSE +0 -0
  20. {flet_map-0.83.1 → flet_map-0.84.0.dev0}/setup.cfg +0 -0
  21. {flet_map-0.83.1 → flet_map-0.84.0.dev0}/src/flet_map/__init__.py +0 -0
  22. {flet_map-0.83.1 → flet_map-0.84.0.dev0}/src/flet_map.egg-info/SOURCES.txt +0 -0
  23. {flet_map-0.83.1 → flet_map-0.84.0.dev0}/src/flet_map.egg-info/dependency_links.txt +0 -0
  24. {flet_map-0.83.1 → flet_map-0.84.0.dev0}/src/flet_map.egg-info/top_level.txt +0 -0
  25. {flet_map-0.83.1 → flet_map-0.84.0.dev0}/src/flutter/flet_map/lib/flet_map.dart +0 -0
  26. {flet_map-0.83.1 → flet_map-0.84.0.dev0}/src/flutter/flet_map/lib/src/circle_layer.dart +0 -0
  27. {flet_map-0.83.1 → flet_map-0.84.0.dev0}/src/flutter/flet_map/lib/src/extension.dart +0 -0
  28. {flet_map-0.83.1 → flet_map-0.84.0.dev0}/src/flutter/flet_map/lib/src/map.dart +0 -0
  29. {flet_map-0.83.1 → flet_map-0.84.0.dev0}/src/flutter/flet_map/lib/src/marker_layer.dart +0 -0
  30. {flet_map-0.83.1 → flet_map-0.84.0.dev0}/src/flutter/flet_map/lib/src/polygon_layer.dart +0 -0
  31. {flet_map-0.83.1 → flet_map-0.84.0.dev0}/src/flutter/flet_map/lib/src/polyline_layer.dart +0 -0
  32. {flet_map-0.83.1 → flet_map-0.84.0.dev0}/src/flutter/flet_map/lib/src/rich_attribution.dart +0 -0
  33. {flet_map-0.83.1 → flet_map-0.84.0.dev0}/src/flutter/flet_map/lib/src/simple_attribution.dart +0 -0
  34. {flet_map-0.83.1 → flet_map-0.84.0.dev0}/src/flutter/flet_map/lib/src/tile_layer.dart +0 -0
  35. {flet_map-0.83.1 → flet_map-0.84.0.dev0}/src/flutter/flet_map/lib/src/utils/attribution_alignment.dart +0 -0
  36. {flet_map-0.83.1 → flet_map-0.84.0.dev0}/src/flutter/flet_map/lib/src/utils/map.dart +0 -0
  37. {flet_map-0.83.1 → flet_map-0.84.0.dev0}/src/flutter/flet_map/pubspec.yaml +0 -0
@@ -1,17 +1,17 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flet-map
3
- Version: 0.83.1
3
+ Version: 0.84.0.dev0
4
4
  Summary: Interactive map controls for Flet apps.
5
5
  Author-email: Flet contributors <hello@flet.dev>
6
6
  License-Expression: Apache-2.0
7
7
  Project-URL: Homepage, https://flet.dev
8
- Project-URL: Documentation, https://docs.flet.dev/map
8
+ Project-URL: Documentation, https://flet.dev/docs/controls/map
9
9
  Project-URL: Repository, https://github.com/flet-dev/flet/tree/main/sdk/python/packages/flet-map
10
10
  Project-URL: Issues, https://github.com/flet-dev/flet/issues
11
11
  Requires-Python: >=3.10
12
12
  Description-Content-Type: text/markdown
13
13
  License-File: LICENSE
14
- Requires-Dist: flet==0.83.1
14
+ Requires-Dist: flet==0.84.0.dev0
15
15
  Dynamic: license-file
16
16
 
17
17
  # flet-map
@@ -19,7 +19,7 @@ Dynamic: license-file
19
19
  [![pypi](https://img.shields.io/pypi/v/flet-map.svg)](https://pypi.python.org/pypi/flet-map)
20
20
  [![downloads](https://static.pepy.tech/badge/flet-map/month)](https://pepy.tech/project/flet-map)
21
21
  [![python](https://img.shields.io/badge/python-%3E%3D3.10-%2334D058)](https://pypi.org/project/flet-map)
22
- [![docstring coverage](https://docs.flet.dev/assets/badges/docs-coverage/flet-map.svg)](https://docs.flet.dev/assets/badges/docs-coverage/flet-map.svg)
22
+ [![docstring coverage](https://flet.dev/docs/assets/badges/docs-coverage/flet-map.svg)](https://flet.dev/docs/assets/badges/docs-coverage/flet-map.svg)
23
23
  [![license](https://img.shields.io/badge/License-Apache_2.0-green.svg)](https://github.com/flet-dev/flet/blob/main/sdk/python/packages/flet-map/LICENSE)
24
24
 
25
25
  A [Flet](https://flet.dev) extension for displaying interactive maps.
@@ -28,7 +28,7 @@ It is based on the [flutter_map](https://pub.dev/packages/flutter_map) Flutter p
28
28
 
29
29
  ## Documentation
30
30
 
31
- Detailed documentation to this package can be found [here](https://docs.flet.dev/map/).
31
+ Detailed documentation to this package can be found [here](https://flet.dev/docs/controls/map/).
32
32
 
33
33
  ## Platform Support
34
34
 
@@ -3,7 +3,7 @@
3
3
  [![pypi](https://img.shields.io/pypi/v/flet-map.svg)](https://pypi.python.org/pypi/flet-map)
4
4
  [![downloads](https://static.pepy.tech/badge/flet-map/month)](https://pepy.tech/project/flet-map)
5
5
  [![python](https://img.shields.io/badge/python-%3E%3D3.10-%2334D058)](https://pypi.org/project/flet-map)
6
- [![docstring coverage](https://docs.flet.dev/assets/badges/docs-coverage/flet-map.svg)](https://docs.flet.dev/assets/badges/docs-coverage/flet-map.svg)
6
+ [![docstring coverage](https://flet.dev/docs/assets/badges/docs-coverage/flet-map.svg)](https://flet.dev/docs/assets/badges/docs-coverage/flet-map.svg)
7
7
  [![license](https://img.shields.io/badge/License-Apache_2.0-green.svg)](https://github.com/flet-dev/flet/blob/main/sdk/python/packages/flet-map/LICENSE)
8
8
 
9
9
  A [Flet](https://flet.dev) extension for displaying interactive maps.
@@ -12,7 +12,7 @@ It is based on the [flutter_map](https://pub.dev/packages/flutter_map) Flutter p
12
12
 
13
13
  ## Documentation
14
14
 
15
- Detailed documentation to this package can be found [here](https://docs.flet.dev/map/).
15
+ Detailed documentation to this package can be found [here](https://flet.dev/docs/controls/map/).
16
16
 
17
17
  ## Platform Support
18
18
 
@@ -1,18 +1,18 @@
1
1
  [project]
2
2
  name = "flet-map"
3
- version = "0.83.1"
3
+ version = "0.84.0.dev0"
4
4
  description = "Interactive map controls for Flet apps."
5
5
  readme = "README.md"
6
6
  authors = [{ name = "Flet contributors", email = "hello@flet.dev" }]
7
7
  license = "Apache-2.0"
8
8
  requires-python = ">=3.10"
9
9
  dependencies = [
10
- "flet==0.83.1",
10
+ "flet==0.84.0.dev0",
11
11
  ]
12
12
 
13
13
  [project.urls]
14
14
  Homepage = "https://flet.dev"
15
- Documentation = "https://docs.flet.dev/map"
15
+ Documentation = "https://flet.dev/docs/controls/map"
16
16
  Repository = "https://github.com/flet-dev/flet/tree/main/sdk/python/packages/flet-map"
17
17
  Issues = "https://github.com/flet-dev/flet/issues"
18
18
 
@@ -11,7 +11,7 @@ __all__ = ["CircleLayer", "CircleMarker"]
11
11
  class CircleMarker(ft.Control):
12
12
  """
13
13
  A circular marker displayed on the Map at the specified
14
- location through the [`CircleLayer`][(p).].
14
+ location through the :class:`~flet_map.CircleLayer`.
15
15
  """
16
16
 
17
17
  radius: ft.Number
@@ -28,7 +28,7 @@ class CircleMarker(ft.Control):
28
28
  The color of the circle border line.
29
29
 
30
30
  Tip:
31
- [`border_stroke_width`][(c).] must be greater than
31
+ :attr:`border_stroke_width` must be greater than
32
32
  `0.0` in order for this color to be visible.
33
33
  """
34
34
 
@@ -42,7 +42,7 @@ class CircleMarker(ft.Control):
42
42
 
43
43
  use_radius_in_meter: bool = False
44
44
  """
45
- Whether the [`radius`][(c).] should use the unit meters.
45
+ Whether the :attr:`radius` should use the unit meters.
46
46
  """
47
47
 
48
48
  def before_update(self):
@@ -57,8 +57,8 @@ class CircleMarker(ft.Control):
57
57
  @ft.control("CircleLayer")
58
58
  class CircleLayer(MapLayer):
59
59
  """
60
- A layer to display [`CircleMarker`][(p).]s.
60
+ A layer to display :class:`~flet_map.CircleMarker`.
61
61
  """
62
62
 
63
63
  circles: list[CircleMarker]
64
- """A list of [`CircleMarker`][(p).]s to display."""
64
+ """A list of :class:`~flet_map.CircleMarker` to display."""
@@ -64,7 +64,7 @@ class Map(ft.LayoutControl):
64
64
  """
65
65
  Whether to enable the built in keep-alive functionality.
66
66
 
67
- If the map is within a complex layout, such as a [`ListView`][flet.],
67
+ If the map is within a complex layout, such as a :class:`~flet.ListView`,
68
68
  the map will reset to its initial position after it appears back into view.
69
69
  To ensure this doesn't happen, enable this flag to prevent it from rebuilding.
70
70
  """
@@ -84,9 +84,9 @@ class Map(ft.LayoutControl):
84
84
  animation_curve: ft.AnimationCurve = ft.AnimationCurve.FAST_OUT_SLOWIN
85
85
  """
86
86
  The default animation curve to be used for map-animations
87
- when calling instance methods like [`zoom_in()`][(c).zoom_in],
88
- [`rotate_from()`][(c).rotate_from],
89
- [`move_to()`][(c).move_to] etc.
87
+ when calling instance methods like :meth:`zoom_in`,
88
+ :meth:`rotate_from`,
89
+ :meth:`move_to` etc.
90
90
  """
91
91
 
92
92
  animation_duration: ft.DurationValue = field(
@@ -94,15 +94,15 @@ class Map(ft.LayoutControl):
94
94
  )
95
95
  """
96
96
  The default animation duration to be used for map-animations
97
- when calling instance methods like [`zoom_in()`][(c).zoom_in],
98
- [`rotate_from()`][(c).rotate_from],
99
- [`move_to()`][(c).move_to] etc.
97
+ when calling instance methods like :meth:`zoom_in`,
98
+ :meth:`rotate_from`,
99
+ :meth:`move_to` etc.
100
100
  """
101
101
 
102
102
  initial_camera_fit: Optional[CameraFit] = None
103
103
  """
104
104
  Defines the visible bounds when the map is first loaded.
105
- Takes precedence over [`initial_center`][(c).]/[`initial_zoom`][(c).].
105
+ Takes precedence over :attr:`initial_center`/:attr:`initial_zoom`.
106
106
  """
107
107
 
108
108
  on_init: Optional[ft.ControlEventHandler["Map"]] = None
@@ -168,9 +168,10 @@ class Map(ft.LayoutControl):
168
168
  Args:
169
169
  degree: The number of degrees to increment to the current rotation.
170
170
  animation_curve: The curve of the animation. If None (the default),
171
- [`Map.animation_curve`][(p).] will be used.
171
+ :attr:`flet_map.Map.animation_curve` will be used.
172
172
  animation_duration: The duration of the animation.
173
- If None (the default), [`Map.animation_duration`][(p).] will be used.
173
+ If None (the default), :attr:`flet_map.Map.animation_duration` will be \
174
+ used.
174
175
  cancel_ongoing_animations: Whether to cancel/stop all
175
176
  ongoing map-animations before starting this new one.
176
177
  """
@@ -195,9 +196,10 @@ class Map(ft.LayoutControl):
195
196
 
196
197
  Args:
197
198
  animation_curve: The curve of the animation. If None (the default),
198
- [`Map.animation_curve`][(p).] will be used.
199
+ :attr:`flet_map.Map.animation_curve` will be used.
199
200
  animation_duration: The duration of the animation.
200
- If None (the default), [`Map.animation_duration`][(p).] will be used.
201
+ If None (the default), :attr:`flet_map.Map.animation_duration` will be \
202
+ used.
201
203
  cancel_ongoing_animations: Whether to cancel/stop all
202
204
  ongoing map-animations before starting this new one.
203
205
  """
@@ -221,9 +223,10 @@ class Map(ft.LayoutControl):
221
223
 
222
224
  Args:
223
225
  animation_curve: The curve of the animation. If None (the default),
224
- [`Map.animation_curve`][(p).] will be used.
226
+ :attr:`flet_map.Map.animation_curve` will be used.
225
227
  animation_duration: The duration of the animation.
226
- If None (the default), [`Map.animation_duration`][(p).] will be used.
228
+ If None (the default), :attr:`flet_map.Map.animation_duration` will be \
229
+ used.
227
230
  cancel_ongoing_animations: Whether to cancel/stop all
228
231
  ongoing map-animations before starting this new one.
229
232
  """
@@ -247,9 +250,10 @@ class Map(ft.LayoutControl):
247
250
 
248
251
  Args:
249
252
  animation_curve: The curve of the animation. If `None` (the default),
250
- [`Map.animation_curve`][(p).] will be used.
253
+ :attr:`flet_map.Map.animation_curve` will be used.
251
254
  animation_duration: The duration of the animation.
252
- If None (the default), [`Map.animation_duration`][(p).] will be used.
255
+ If None (the default), :attr:`flet_map.Map.animation_duration` will be \
256
+ used.
253
257
  cancel_ongoing_animations: Whether to cancel/stop all
254
258
  ongoing map-animations before starting this new one.
255
259
  """
@@ -275,9 +279,10 @@ class Map(ft.LayoutControl):
275
279
  Args:
276
280
  zoom: The zoom level to zoom to.
277
281
  animation_curve: The curve of the animation. If `None` (the default),
278
- [`Map.animation_curve`][(p).] will be used.
282
+ :attr:`flet_map.Map.animation_curve` will be used.
279
283
  animation_duration: The duration of the animation.
280
- If None (the default), [`Map.animation_duration`][(p).] will be used.
284
+ If None (the default), :attr:`flet_map.Map.animation_duration` will be \
285
+ used.
281
286
  cancel_ongoing_animations: Whether to cancel/stop all
282
287
  ongoing map-animations before starting this new one.
283
288
  """
@@ -311,9 +316,10 @@ class Map(ft.LayoutControl):
311
316
  rotation: Rotation (in degrees) to be applied.
312
317
  offset: The offset to be used. Only works when `rotation` is `None`.
313
318
  animation_curve: The curve of the animation. If None (the default),
314
- [`Map.animation_curve`][(p).] will be used.
319
+ :attr:`flet_map.Map.animation_curve` will be used.
315
320
  animation_duration: The duration of the animation.
316
- If None (the default), [`Map.animation_duration`][(p).] will be used.
321
+ If None (the default), :attr:`flet_map.Map.animation_duration` will be \
322
+ used.
317
323
  cancel_ongoing_animations: Whether to cancel/stop all
318
324
  ongoing map-animations before starting this new one.
319
325
 
@@ -350,9 +356,10 @@ class Map(ft.LayoutControl):
350
356
  point: The point on which to center the map.
351
357
  zoom: The zoom level to be applied.
352
358
  animation_curve: The curve of the animation. If `None` (the default),
353
- [`Map.animation_curve`][(p).] will be used.
359
+ :attr:`flet_map.Map.animation_curve` will be used.
354
360
  animation_duration: The duration of the animation.
355
- If None (the default), [`Map.animation_duration`][(p).] will be used.
361
+ If None (the default), :attr:`flet_map.Map.animation_duration` will be \
362
+ used.
356
363
  cancel_ongoing_animations: Whether to cancel/stop all
357
364
  ongoing map-animations before starting this new one.
358
365
  """
@@ -372,7 +379,7 @@ class Map(ft.LayoutControl):
372
379
  Gets the current camera snapshot of the map.
373
380
 
374
381
  Returns:
375
- Current [`Camera`][flet_map.] state.
382
+ Current :class:`~flet_map.Camera` state.
376
383
  """
377
384
  camera = await self._invoke_method("get_camera")
378
385
  return from_dict(Camera, camera)
@@ -0,0 +1,20 @@
1
+ import flet as ft
2
+
3
+ __all__ = ["MapLayer"]
4
+
5
+
6
+ @ft.control("MapLayer")
7
+ class MapLayer(ft.Control):
8
+ """
9
+ Abstract class for all map layers.
10
+
11
+ The following layers are available:
12
+
13
+ - :class:`~flet_map.CircleLayer`
14
+ - :class:`~flet_map.MarkerLayer`
15
+ - :class:`~flet_map.PolygonLayer`
16
+ - :class:`~flet_map.PolylineLayer`
17
+ - :class:`~flet_map.RichAttribution`
18
+ - :class:`~flet_map.SimpleAttribution`
19
+ - :class:`~flet_map.TileLayer`
20
+ """
@@ -12,15 +12,15 @@ __all__ = ["Marker", "MarkerLayer"]
12
12
  class Marker(ft.Control):
13
13
  """
14
14
  A marker displayed on the Map at the specified location
15
- through the [`MarkerLayer`][(p).].
15
+ through the :class:`~flet_map.MarkerLayer`.
16
16
  """
17
17
 
18
18
  content: ft.Control
19
19
  """
20
- The content to be displayed at [`coordinates`][(c).].
20
+ The content to be displayed at :attr:`coordinates`.
21
21
 
22
22
  Raises:
23
- ValueError: If it is not [`visible`][flet.Control.visible].
23
+ ValueError: If it is not :attr:`~flet.Control.visible`.
24
24
  """
25
25
 
26
26
  coordinates: MapLatitudeLongitude
@@ -28,7 +28,7 @@ class Marker(ft.Control):
28
28
  The coordinates of the marker.
29
29
 
30
30
  This will be the center of the marker,
31
- if [`alignment`][(c).] is [`Alignment.CENTER`][flet.].
31
+ if :attr:`alignment` is :attr:`flet.Alignment.CENTER`.
32
32
  """
33
33
 
34
34
  rotate: Optional[bool] = None
@@ -38,7 +38,7 @@ class Marker(ft.Control):
38
38
  So, when `True`, this marker will always appear upright and
39
39
  vertical from the user's perspective.
40
40
 
41
- If `None`, defaults to the value of the parent [`MarkerLayer.rotate`][(p).].
41
+ If `None`, defaults to the value of the parent :attr:`flet_map.MarkerLayer.rotate`.
42
42
 
43
43
  Note:
44
44
  This is not used to apply a custom rotation in degrees to this marker.
@@ -47,7 +47,7 @@ class Marker(ft.Control):
47
47
 
48
48
  height: ft.Number = 30.0
49
49
  """
50
- The height of the [`content`][(c).] Control.
50
+ The height of the :attr:`content` Control.
51
51
 
52
52
  Raises:
53
53
  ValueError: If it is less than `0.0`.
@@ -55,7 +55,7 @@ class Marker(ft.Control):
55
55
 
56
56
  width: ft.Number = 30.0
57
57
  """
58
- The width of the [`content`][(c).] Control.
58
+ The width of the :attr:`content` Control.
59
59
 
60
60
  Raises:
61
61
  ValueError: If it is less than `0.0`.
@@ -63,9 +63,9 @@ class Marker(ft.Control):
63
63
 
64
64
  alignment: Optional[ft.Alignment] = None
65
65
  """
66
- Alignment of the marker relative to the normal center at [`coordinates`][(c).].
66
+ Alignment of the marker relative to the normal center at :attr:`coordinates`.
67
67
 
68
- Defaults to the value of the parent [`MarkerLayer.alignment`][(p).].
68
+ Defaults to the value of the parent :attr:`flet_map.MarkerLayer.alignment`.
69
69
  """
70
70
 
71
71
  def before_update(self):
@@ -90,7 +90,7 @@ class MarkerLayer(MapLayer):
90
90
 
91
91
  markers: list[Marker]
92
92
  """
93
- A list of [`Marker`][(p).]s to display.
93
+ A list of :class:`~flet_map.Marker`s to display.
94
94
  """
95
95
 
96
96
  alignment: Optional[ft.Alignment] = field(
@@ -98,11 +98,11 @@ class MarkerLayer(MapLayer):
98
98
  )
99
99
  """
100
100
  The alignment of each marker relative to its normal center at
101
- [`Marker.coordinates`][(p).].
101
+ :attr:`flet_map.Marker.coordinates`.
102
102
  """
103
103
 
104
104
  rotate: bool = False
105
105
  """
106
- Whether to counter-rotate [`markers`][(c).] to the map's rotation,
106
+ Whether to counter-rotate :attr:`markers` to the map's rotation,
107
107
  to keep a fixed orientation.
108
108
  """
@@ -10,7 +10,7 @@ __all__ = ["PolygonLayer", "PolygonMarker"]
10
10
  @ft.control("PolygonMarker")
11
11
  class PolygonMarker(ft.Control):
12
12
  """
13
- A marker for the [`PolygonLayer`][(p).].
13
+ A marker for the :class:`~flet_map.PolygonLayer`.
14
14
  """
15
15
 
16
16
  coordinates: list[MapLatitudeLongitude]
@@ -26,7 +26,8 @@ class PolygonMarker(ft.Control):
26
26
  Specifying a label will reduce performance, as the internal
27
27
  canvas must be drawn to and 'saved' more frequently to ensure the proper
28
28
  stacking order is maintained. This can be avoided, potentially at the
29
- expense of appearance, by setting [`PolygonLayer.draw_labels_last`][(p).].
29
+ expense of appearance, by setting \
30
+ :attr:`flet_map.PolygonLayer.draw_labels_last`.
30
31
  """
31
32
 
32
33
  label_text_style: Optional[ft.TextStyle] = None
@@ -90,7 +91,7 @@ class PolygonLayer(MapLayer):
90
91
 
91
92
  polygons: list[PolygonMarker]
92
93
  """
93
- A list of [`PolygonMarker`][(p).]s to display.
94
+ A list of :class:`~flet_map.PolygonMarker`s to display.
94
95
  """
95
96
 
96
97
  polygon_culling: bool = True
@@ -11,7 +11,7 @@ __all__ = ["PolylineLayer", "PolylineMarker"]
11
11
  @ft.control("PolylineMarker")
12
12
  class PolylineMarker(ft.Control):
13
13
  """
14
- A marker for the [`PolylineLayer`][(p).].
14
+ A marker for the :class:`~flet_map.PolylineLayer`.
15
15
  """
16
16
 
17
17
  coordinates: list[MapLatitudeLongitude]
@@ -21,7 +21,7 @@ class PolylineMarker(ft.Control):
21
21
 
22
22
  colors_stop: Optional[list[ft.Number]] = None
23
23
  """
24
- The stops for the [`gradient_colors`][(c).].
24
+ The stops for the :attr:`gradient_colors`.
25
25
  """
26
26
 
27
27
  gradient_colors: Optional[list[ft.ColorValue]] = None
@@ -93,12 +93,12 @@ class PolylineMarker(ft.Control):
93
93
  @ft.control("PolylineLayer")
94
94
  class PolylineLayer(MapLayer):
95
95
  """
96
- A layer to display [`PolylineMarker`][(p).]s.
96
+ A layer to display :class:`~flet_map.PolylineMarker`s.
97
97
  """
98
98
 
99
99
  polylines: list[PolylineMarker]
100
100
  """
101
- List of [`PolylineMarker`][(p).]s to be drawn.
101
+ List of :class:`~flet_map.PolylineMarker`s to be drawn.
102
102
  """
103
103
 
104
104
  culling_margin: ft.Number = 10.0
@@ -20,8 +20,8 @@ class RichAttribution(MapLayer):
20
20
  """
21
21
  List of attributions to display.
22
22
 
23
- [`TextSourceAttribution`][(p).]s are shown in a popup box,
24
- unlike [`ImageSourceAttribution`][(p).], which are visible permanently.
23
+ :class:`~flet_map.TextSourceAttribution`s are shown in a popup box,
24
+ unlike :class:`~flet_map.ImageSourceAttribution`, which are visible permanently.
25
25
  """
26
26
 
27
27
  alignment: Optional[AttributionAlignment] = None
@@ -48,7 +48,7 @@ class RichAttribution(MapLayer):
48
48
 
49
49
  This is useful with certain sources/tile servers that make immediate
50
50
  attribution mandatory and are not attributed with a permanently
51
- visible [`ImageSourceAttribution`][(p).].
51
+ visible :class:`~flet_map.ImageSourceAttribution`.
52
52
  """
53
53
 
54
54
  permanent_height: ft.Number = 24.0
@@ -25,7 +25,7 @@ class SimpleAttribution(MapLayer):
25
25
 
26
26
  bgcolor: ft.ColorValue = ft.Colors.SURFACE
27
27
  """
28
- The color of the box containing the [`text`][(c).].
28
+ The color of the box containing the :attr:`text`.
29
29
  """
30
30
 
31
31
  on_click: Optional[ft.ControlEventHandler["SimpleAttribution"]] = None
@@ -11,8 +11,8 @@ class SourceAttribution(ft.BaseControl):
11
11
  """
12
12
  Abstract class for source attribution controls:
13
13
 
14
- - [`ImageSourceAttribution`][(p).]
15
- - [`TextSourceAttribution`][(p).]
14
+ - :class:`~flet_map.ImageSourceAttribution`
15
+ - :class:`~flet_map.TextSourceAttribution`
16
16
  """
17
17
 
18
18
 
@@ -20,14 +20,14 @@ class SourceAttribution(ft.BaseControl):
20
20
  class ImageSourceAttribution(SourceAttribution):
21
21
  """
22
22
  An image attribution permanently displayed adjacent to the
23
- open/close icon of a [`RichAttribution`][(p).] control.
23
+ open/close icon of a :class:`~flet_map.RichAttribution` control.
24
24
  For it to be displayed, it should be part of a
25
- [`RichAttribution.attributions`][(p).] list.
25
+ :attr:`flet_map.RichAttribution.attributions` list.
26
26
  """
27
27
 
28
28
  image: ft.Image
29
29
  """
30
- The [`Image`][flet.] to be displayed.
30
+ The :class:`~flet.Image` to be displayed.
31
31
 
32
32
  Raises:
33
33
  ValueError: If the image is not visible.
@@ -36,7 +36,7 @@ class ImageSourceAttribution(SourceAttribution):
36
36
  height: ft.Number = 24.0
37
37
  """
38
38
  The height of the image.
39
- Should be the same as [`RichAttribution.permanent_height`][(p).],
39
+ Should be the same as :attr:`flet_map.RichAttribution.permanent_height`,
40
40
  otherwise layout issues may occur.
41
41
  """
42
42
 
@@ -57,18 +57,18 @@ class TextSourceAttribution(SourceAttribution):
57
57
  """
58
58
  A text source attribution displayed on the Map.
59
59
  For it to be displayed, it should be part of a
60
- [`RichAttribution.attributions`][(p).] list.
60
+ :attr:`flet_map.RichAttribution.attributions` list.
61
61
  """
62
62
 
63
63
  text: str
64
- """The text to display as attribution, styled with [`text_style`][(c).]."""
64
+ """The text to display as attribution, styled with :attr:`text_style`."""
65
65
 
66
66
  text_style: Optional[ft.TextStyle] = None
67
- """Style used to display the [`text`][(c).]."""
67
+ """Style used to display the :attr:`text`."""
68
68
 
69
69
  prepend_copyright: bool = True
70
70
  """
71
- Whether to add the '©' character to the start of [`text`][(c).] automatically.
71
+ Whether to add the '©' character to the start of :attr:`text` automatically.
72
72
  """
73
73
 
74
74
  on_click: Optional[ft.ControlEventHandler["TextSourceAttribution"]] = None