flet-map 0.2.0.dev505__py3-none-any.whl → 0.70.0.dev6293__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.
flet_map/__init__.py CHANGED
@@ -1,5 +1,6 @@
1
1
  from flet_map.circle_layer import CircleLayer, CircleMarker
2
2
  from flet_map.map import Map
3
+ from flet_map.map_layer import MapLayer
3
4
  from flet_map.marker_layer import Marker, MarkerLayer
4
5
  from flet_map.polygon_layer import PolygonLayer, PolygonMarker
5
6
  from flet_map.polyline_layer import PolylineLayer, PolylineMarker
@@ -62,6 +63,7 @@ __all__ = [
62
63
  "MapHoverEvent",
63
64
  "MapLatitudeLongitude",
64
65
  "MapLatitudeLongitudeBounds",
66
+ "MapLayer",
65
67
  "MapPointerEvent",
66
68
  "MapPositionChangeEvent",
67
69
  "MapTapEvent",
flet_map/circle_layer.py CHANGED
@@ -1,7 +1,6 @@
1
1
  from typing import Optional
2
2
 
3
3
  import flet as ft
4
-
5
4
  from flet_map.map_layer import MapLayer
6
5
  from flet_map.types import MapLatitudeLongitude
7
6
 
flet_map/map.py CHANGED
@@ -2,7 +2,6 @@ from dataclasses import field
2
2
  from typing import Optional
3
3
 
4
4
  import flet as ft
5
-
6
5
  from flet_map.map_layer import MapLayer
7
6
  from flet_map.types import (
8
7
  CameraFit,
@@ -19,7 +18,7 @@ __all__ = ["Map"]
19
18
 
20
19
 
21
20
  @ft.control("Map")
22
- class Map(ft.ConstrainedControl):
21
+ class Map(ft.LayoutControl):
23
22
  """
24
23
  An interactive map that displays various layers.
25
24
  """
flet_map/marker_layer.py CHANGED
@@ -2,7 +2,6 @@ from dataclasses import field
2
2
  from typing import Optional
3
3
 
4
4
  import flet as ft
5
-
6
5
  from flet_map.map_layer import MapLayer
7
6
  from flet_map.types import MapLatitudeLongitude
8
7
 
flet_map/polygon_layer.py CHANGED
@@ -1,7 +1,6 @@
1
1
  from typing import Optional
2
2
 
3
3
  import flet as ft
4
-
5
4
  from flet_map.map_layer import MapLayer
6
5
  from flet_map.types import MapLatitudeLongitude
7
6
 
@@ -109,7 +108,13 @@ class PolygonLayer(MapLayer):
109
108
 
110
109
  simplification_tolerance: ft.Number = 0.3
111
110
  """
111
+ The tolerance value used to simplify polygon outlines before rendering.
112
+
113
+ Higher values will result in polygons with fewer points, which can improve
114
+ rendering performance at the cost of reduced geometric accuracy. Lower values
115
+ preserve more detail but may decrease performance, especially with complex polygons.
112
116
 
117
+ Set to 0 to disable simplification.
113
118
  """
114
119
 
115
120
  use_alternative_rendering: bool = False
@@ -2,7 +2,6 @@ from dataclasses import field
2
2
  from typing import Optional
3
3
 
4
4
  import flet as ft
5
-
6
5
  from flet_map.map_layer import MapLayer
7
6
  from flet_map.types import MapLatitudeLongitude, SolidStrokePattern, StrokePattern
8
7
 
@@ -114,5 +113,9 @@ class PolylineLayer(MapLayer):
114
113
 
115
114
  simplification_tolerance: ft.Number = 0.3
116
115
  """
116
+ The tolerance (in map units) used to simplify polylines for rendering.
117
117
 
118
+ Higher values result in more aggressive simplification,
119
+ which can improve performance but may reduce the accuracy of
120
+ the displayed polyline.
118
121
  """
@@ -2,7 +2,6 @@ from dataclasses import field
2
2
  from typing import Optional
3
3
 
4
4
  import flet as ft
5
-
6
5
  from flet_map.map_layer import MapLayer
7
6
  from flet_map.source_attribution import SourceAttribution
8
7
  from flet_map.types import AttributionAlignment
@@ -2,7 +2,6 @@ from dataclasses import field
2
2
  from typing import Optional, Union
3
3
 
4
4
  import flet as ft
5
-
6
5
  from flet_map.map_layer import MapLayer
7
6
 
8
7
  __all__ = ["SimpleAttribution"]
flet_map/tile_layer.py CHANGED
@@ -2,7 +2,6 @@ from dataclasses import field
2
2
  from typing import Optional
3
3
 
4
4
  import flet as ft
5
-
6
5
  from flet_map.map_layer import MapLayer
7
6
  from flet_map.types import (
8
7
  FadeInTileDisplay,
flet_map/types.py CHANGED
@@ -3,6 +3,7 @@ from enum import Enum, IntFlag
3
3
  from typing import TYPE_CHECKING, Optional
4
4
 
5
5
  import flet as ft
6
+ from flet.controls.animation import AnimationCurve
6
7
 
7
8
  if TYPE_CHECKING:
8
9
  from flet_map.map import Map # noqa
@@ -620,7 +621,7 @@ class CameraFit:
620
621
 
621
622
  Raises:
622
623
  AssertionError: If both [`bounds`][(c).] and [`coordinates`][(c).]
623
- are `None` or not `None`.
624
+ are `None` or not `None`.
624
625
  """
625
626
 
626
627
  bounds: Optional[MapLatitudeLongitudeBounds] = None
@@ -794,7 +795,7 @@ class KeyboardConfiguration:
794
795
  default_factory=lambda: ft.Duration(milliseconds=450)
795
796
  )
796
797
  """
797
- Duration of the curved ([`Curve.EASE_IN`][flet.Curve.EASE_IN])
798
+ Duration of the curved ([`AnimationCurve.EASE_IN`][flet.AnimationCurve.EASE_IN])
798
799
  portion of the animation occuring
799
800
  after a key down event (and after a key up event if
800
801
  [`animation_curve_reverse_duration`][..] is `None`)
@@ -804,13 +805,14 @@ class KeyboardConfiguration:
804
805
  default_factory=lambda: ft.Duration(milliseconds=600)
805
806
  )
806
807
  """
807
- Duration of the curved (reverse [`Curve.EASE_IN`][flet.Curve.EASE_IN])
808
+ Duration of the curved (reverse
809
+ [`AnimationCurve.EASE_IN`][flet.AnimationCurve.EASE_IN])
808
810
  portion of the animation occuring after a key up event.
809
811
 
810
812
  Set to `None` to use [`animation_curve_duration`][..].
811
813
  """
812
814
 
813
- animation_curve_curve: bool = True
815
+ animation_curve_curve: AnimationCurve = AnimationCurve.EASE_IN_OUT
814
816
  """
815
817
  Curve of the curved portion of the animation occuring after
816
818
  key down and key up events.
@@ -895,8 +897,6 @@ class KeyboardConfiguration:
895
897
 
896
898
  The larger the number, the larger the movement during a leap.
897
899
  To change the duration of a leap, see [`leap_max_of_curve_component`][..].
898
-
899
- This may cause the pan velocity to exceed [`max_pan_velocity`][..].
900
900
  """
901
901
 
902
902
  rotate_leap_velocity_multiplier: ft.Number = 3
@@ -1,24 +1,24 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flet-map
3
- Version: 0.2.0.dev505
4
- Summary: Display interactive Maps in your Flet apps.
3
+ Version: 0.70.0.dev6293
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://flet-dev.github.io/flet-map
9
- Project-URL: Repository, https://github.com/flet-dev/flet-map
10
- Project-URL: Issues, https://github.com/flet-dev/flet-map/issues
8
+ Project-URL: Documentation, https://docs.flet.dev/map
9
+ Project-URL: Repository, https://github.com/flet-dev/flet/tree/main/sdk/python/packages/flet-map
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.70.0.dev0
14
+ Requires-Dist: flet==0.70.0.dev6293
15
15
  Dynamic: license-file
16
16
 
17
17
  # flet-map
18
18
 
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
- [![license](https://img.shields.io/github/license/flet-dev/flet-map.svg)](https://github.com/flet-dev/flet-map/blob/main/LICENSE)
21
+ [![license](https://img.shields.io/github/license/flet-dev/flet.svg)](https://github.com/flet-dev/flet/blob/main/sdk/python/packages/flet-map/LICENSE)
22
22
 
23
23
  A [Flet](https://flet.dev) extension for displaying interactive maps.
24
24
 
@@ -26,20 +26,13 @@ It is based on the [flutter_map](https://pub.dev/packages/flutter_map) Flutter p
26
26
 
27
27
  ## Documentation
28
28
 
29
- Detailed documentation to this package can be found [here](https://flet-dev.github.io/flet-map/).
29
+ Detailed documentation to this package can be found [here](https://docs.flet.dev/map/).
30
30
 
31
31
  ## Platform Support
32
32
 
33
- This package supports the following platforms:
34
-
35
- | Platform | Supported |
36
- |----------|:---------:|
37
- | Windows | ✅ |
38
- | macOS | ✅ |
39
- | Linux | ✅ |
40
- | iOS | ✅ |
41
- | Android | ✅ |
42
- | Web | ✅ |
33
+ | Platform | Windows | macOS | Linux | iOS | Android | Web |
34
+ |----------|---------|-------|-------|-----|---------|-----|
35
+ | Supported| ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
43
36
 
44
37
  ## Usage
45
38
 
@@ -58,11 +51,6 @@ To install the `flet-map` package and add it to your project dependencies:
58
51
  ```
59
52
  After this, you will have to manually add this package to your `requirements.txt` or `pyproject.toml`.
60
53
 
61
- - Using `poetry`:
62
- ```bash
63
- poetry add flet-map
64
- ```
65
-
66
54
  ### Examples
67
55
 
68
- For examples, see [these](./examples).
56
+ For examples, see [these](https://github.com/flet-dev/flet/tree/main/sdk/python/examples/controls/map).
@@ -0,0 +1,31 @@
1
+ flet_map/__init__.py,sha256=51zK0yd9ZWJ-LwCSG2Kk_cQis2A41cjCTtv60oIBYkQ,2254
2
+ flet_map/circle_layer.py,sha256=jfmtvAzQ4kQIA_psc5tIMt0wzanAAHO7gx_fod1imvE,1615
3
+ flet_map/map.py,sha256=zRcXwJaQxAw2_Y7kkQcln5ycj5S9EICJFd_q94x35cw,12970
4
+ flet_map/map_layer.py,sha256=8LEPoUAtvo_YnkVLNghEJbi-_RhpiOsyYIZdLjrYK3g,400
5
+ flet_map/marker_layer.py,sha256=m4HKT9D-Qtx-4fzRPrQhvjUZHg2J_lC56NU_qZrG-fk,2695
6
+ flet_map/polygon_layer.py,sha256=-2-ic8lH0cMBwmFeZ9CRx9QM-H3YozrW4Tw3Pn2HQ0w,3571
7
+ flet_map/polyline_layer.py,sha256=ynEfyZL9f1InC32HFjg9IMB7elFQXxOxBf5U8ci4_HY,3049
8
+ flet_map/rich_attribution.py,sha256=kwN_c4VY3lcBu8JuTB6nzgt-gJ8dlsMM9OzfGvlObgk,1990
9
+ flet_map/simple_attribution.py,sha256=Roa9kS30aUyJEEN3uPh_NE2wp6WRXX7rQDDkfpouWuY,794
10
+ flet_map/source_attribution.py,sha256=qD5TReUTLRliA_nTHyGAdWBrL7vi7rxuRzUsKnHi-5Q,2155
11
+ flet_map/tile_layer.py,sha256=A0cu2RA32A1_G0xU1Eu2pY9XNLqU-ZgLHz5rnieYrYE,7533
12
+ flet_map/types.py,sha256=piFBYs9PWebNEREhcYNIq8KNw5Qt3LHdnG-9TAYqq3Q,30914
13
+ flet_map-0.70.0.dev6293.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
14
+ flutter/flet_map/analysis_options.yaml,sha256=32kjGAc-zF87inWaH5M46yGZWQDTwrwfvNLHeAocfG4,154
15
+ flutter/flet_map/pubspec.yaml,sha256=A3VqfFEJcMvpXd7gsrErbJQresmjgIBAa_F0QaF_zDQ,404
16
+ flutter/flet_map/lib/flet_map.dart,sha256=2bvpVma1FeJxU0EOQq8g5Mi68w4Kr4BQSgqgGyEJ_jw,63
17
+ flutter/flet_map/lib/src/circle_layer.dart,sha256=uF2nQL5fPh1d46cqTA87waEJ_NR05HknWevZsbQ17bs,1124
18
+ flutter/flet_map/lib/src/extension.dart,sha256=c0aJ2d5NWHgBv1iL34ryelPyIeyIqobR9Ml53-H1mLI,1200
19
+ flutter/flet_map/lib/src/map.dart,sha256=xkxONOtpjm99o2JJcImDt4gYQJXvNM063E5kXbEP-FY,4209
20
+ flutter/flet_map/lib/src/marker_layer.dart,sha256=NyyD-5szI0KlBZ5d4WweOe2gG-vp_EMZBF_tYnl4CI4,1313
21
+ flutter/flet_map/lib/src/polygon_layer.dart,sha256=EEVlhLK7FT87fypAdktZreUx0SNITED4eCdrtm6W2FY,1865
22
+ flutter/flet_map/lib/src/polyline_layer.dart,sha256=S2wkYRzNJaeUZ9yqLTLYxokIkVbkcAFZGZYKPy3oC_I,2084
23
+ flutter/flet_map/lib/src/rich_attribution.dart,sha256=POeCreCQHzV4DY_ukjPkvA1ny2m0Ceu15FhoUcUZwdA,2297
24
+ flutter/flet_map/lib/src/simple_attribution.dart,sha256=bbp9ovo_fpsOHgu_T_IgDQdxKIxXJjD9Ir3g8bNobJg,797
25
+ flutter/flet_map/lib/src/tile_layer.dart,sha256=uB_Kh1QglBKUWUzcGxrzXMxFiTSe8IIwy49Qrqioaw4,2584
26
+ flutter/flet_map/lib/src/utils/attribution_alignment.dart,sha256=B6l2GU-EHrk2ggLNWTI9yn-Ivd2BwwSNjoELqFIguCw,372
27
+ flutter/flet_map/lib/src/utils/map.dart,sha256=Uz2MKqdVgORhBoMdzOmdo8Clzf6YXh6LmpwyaQsf8zo,12198
28
+ flet_map-0.70.0.dev6293.dist-info/METADATA,sha256=iiOaWxkEII2tERnHOWeQ0SBmkzol_6fcz6GQx9pdk_4,1871
29
+ flet_map-0.70.0.dev6293.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
30
+ flet_map-0.70.0.dev6293.dist-info/top_level.txt,sha256=HjaN5dGb0-hj6ciqBzy1aqisp22P0mbT98qC8rvoEjg,17
31
+ flet_map-0.70.0.dev6293.dist-info/RECORD,,
@@ -2,7 +2,6 @@ import 'package:flet/flet.dart';
2
2
  import 'package:flutter/material.dart';
3
3
  import 'package:flutter/widgets.dart';
4
4
  import 'package:flutter_map/flutter_map.dart';
5
- import 'package:flutter_map_cancellable_tile_provider/flutter_map_cancellable_tile_provider.dart';
6
5
 
7
6
  import './utils/map.dart';
8
7
 
@@ -36,7 +35,7 @@ class TileLayerControl extends StatelessWidget {
36
35
  ?.map((e) => e.toString())
37
36
  .toList() ??
38
37
  ['a', 'b', 'c'],
39
- tileProvider: CancellableNetworkTileProvider(),
38
+ tileProvider: NetworkTileProvider(),
40
39
  tileDisplay: parseTileDisplay(
41
40
  control.get("display_mode"), const TileDisplay.fadeIn())!,
42
41
  tileDimension: control.getInt("tile_size", 256)!,
@@ -1,25 +1,24 @@
1
1
  name: flet_map
2
2
  description: Flet Map control
3
- homepage: https://flet.dev
4
- repository: https://github.com/flet-dev/flet-map/src/flutter/flet_map
5
- version: 0.2.0
3
+ version: 0.1.0
6
4
  publish_to: none
5
+
7
6
  environment:
8
7
  sdk: '>=3.2.3 <4.0.0'
9
- flutter: '>=1.17.0'
8
+ flutter: ">=1.17.0"
9
+
10
10
  dependencies:
11
11
  flutter:
12
12
  sdk: flutter
13
+
13
14
  collection: ^1.16.0
14
- flutter_map: ^8.1.1
15
- flutter_map_animations: ^0.9.0
16
- flutter_map_cancellable_tile_provider: ^3.1.0
17
- latlong2: ^0.9.1
15
+ flutter_map: 8.2.2
16
+ flutter_map_animations: 0.9.0
17
+ latlong2: 0.9.1
18
+
18
19
  flet:
19
- git:
20
- url: https://github.com/flet-dev/flet.git
21
- path: packages/flet
22
- ref: main
20
+ path: ../../../../../../../packages/flet
21
+
23
22
  dev_dependencies:
24
23
  flutter_test:
25
24
  sdk: flutter
@@ -1,35 +0,0 @@
1
- flet_map/__init__.py,sha256=U8OzGnP0Sejqo_YCFGn33Rr9-d-IAttVT9zN7W5Vav0,2198
2
- flet_map/circle_layer.py,sha256=e4De6EEu2lZOrPD3xWPDYxzTTLWsRalsno1y_LzpTrI,1616
3
- flet_map/map.py,sha256=wfRaElqkzJ2xhg-bKT0ViMpga57SBXbHll51ocY9eLI,12976
4
- flet_map/map_layer.py,sha256=8LEPoUAtvo_YnkVLNghEJbi-_RhpiOsyYIZdLjrYK3g,400
5
- flet_map/marker_layer.py,sha256=_bFBRDrxICeuGTBLyjc7fXLV930MnILDBkdDSCCmL5I,2696
6
- flet_map/polygon_layer.py,sha256=H9xQTFUSj45AZzqMFnW1XfpQV0FW0P02IRD0Vj0f33k,3205
7
- flet_map/polyline_layer.py,sha256=wc2ZAo3wUBFsAXgoSRoAaz1DjFWwuoGmcTvRf2F3mJk,2822
8
- flet_map/rich_attribution.py,sha256=Ri5ZB_aJ9u4Ea8GstY_7XFh5IJsNP0Q9VLeIxSUnB2Y,1991
9
- flet_map/simple_attribution.py,sha256=hXpDsfRjifSXGwo4p82O1RrHJ7BX6HWYxzIdEsS_SXs,795
10
- flet_map/source_attribution.py,sha256=qD5TReUTLRliA_nTHyGAdWBrL7vi7rxuRzUsKnHi-5Q,2155
11
- flet_map/tile_layer.py,sha256=ghL96EZw_3a-ew0GWWKbXoz2utOSCuqRnLttvAjTI5E,7534
12
- flet_map/types.py,sha256=5S-z0mc8vfxrGNw3PPCnD3HqD6tRhD6VyCAAmviR_Jk,30860
13
- flet_map-0.2.0.dev505.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
14
- flutter/flet_map/CHANGELOG.md,sha256=-7pCYFGML9PyWTbSp2ZOQ6MM9bBaeYIk82Ngeuy3oNM,56
15
- flutter/flet_map/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
16
- flutter/flet_map/README.md,sha256=ABBaDRlbz2HalnmHeD_Y8KyT1JCh4Axkl1cqv4vFZqI,56
17
- flutter/flet_map/analysis_options.yaml,sha256=32kjGAc-zF87inWaH5M46yGZWQDTwrwfvNLHeAocfG4,154
18
- flutter/flet_map/pubspec.lock,sha256=kpbubHuKcQZxQzWUNxgq6vbF7h2QQ0o-_Fy4IrLWoP0,26780
19
- flutter/flet_map/pubspec.yaml,sha256=3KxBC9aWbW0M20e8jpT_dZsM_cjXiJ2fkZdnqyjllIk,601
20
- flutter/flet_map/lib/flet_map.dart,sha256=2bvpVma1FeJxU0EOQq8g5Mi68w4Kr4BQSgqgGyEJ_jw,63
21
- flutter/flet_map/lib/src/circle_layer.dart,sha256=uF2nQL5fPh1d46cqTA87waEJ_NR05HknWevZsbQ17bs,1124
22
- flutter/flet_map/lib/src/extension.dart,sha256=c0aJ2d5NWHgBv1iL34ryelPyIeyIqobR9Ml53-H1mLI,1200
23
- flutter/flet_map/lib/src/map.dart,sha256=xkxONOtpjm99o2JJcImDt4gYQJXvNM063E5kXbEP-FY,4209
24
- flutter/flet_map/lib/src/marker_layer.dart,sha256=NyyD-5szI0KlBZ5d4WweOe2gG-vp_EMZBF_tYnl4CI4,1313
25
- flutter/flet_map/lib/src/polygon_layer.dart,sha256=EEVlhLK7FT87fypAdktZreUx0SNITED4eCdrtm6W2FY,1865
26
- flutter/flet_map/lib/src/polyline_layer.dart,sha256=S2wkYRzNJaeUZ9yqLTLYxokIkVbkcAFZGZYKPy3oC_I,2084
27
- flutter/flet_map/lib/src/rich_attribution.dart,sha256=POeCreCQHzV4DY_ukjPkvA1ny2m0Ceu15FhoUcUZwdA,2297
28
- flutter/flet_map/lib/src/simple_attribution.dart,sha256=bbp9ovo_fpsOHgu_T_IgDQdxKIxXJjD9Ir3g8bNobJg,797
29
- flutter/flet_map/lib/src/tile_layer.dart,sha256=k9AXsyH0f07Ls1o6_4i_Jr457eHHMYOzhN_qsHAZ2as,2694
30
- flutter/flet_map/lib/src/utils/attribution_alignment.dart,sha256=B6l2GU-EHrk2ggLNWTI9yn-Ivd2BwwSNjoELqFIguCw,372
31
- flutter/flet_map/lib/src/utils/map.dart,sha256=Uz2MKqdVgORhBoMdzOmdo8Clzf6YXh6LmpwyaQsf8zo,12198
32
- flet_map-0.2.0.dev505.dist-info/METADATA,sha256=nAuW9zEyXEOdKQ-mtx3YnR-gFH_wVOOiyFhCG9DvckU,1901
33
- flet_map-0.2.0.dev505.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
34
- flet_map-0.2.0.dev505.dist-info/top_level.txt,sha256=HjaN5dGb0-hj6ciqBzy1aqisp22P0mbT98qC8rvoEjg,17
35
- flet_map-0.2.0.dev505.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- # 0.2.0
2
-
3
- - TBA
4
-
5
- # 0.1.0
6
-
7
- Initial release of the package.
flutter/flet_map/LICENSE DELETED
@@ -1,201 +0,0 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
178
- APPENDIX: How to apply the Apache License to your work.
179
-
180
- To apply the Apache License to your work, attach the following
181
- boilerplate notice, with the fields enclosed by brackets "[]"
182
- replaced with your own identifying information. (Don't include
183
- the brackets!) The text should be enclosed in the appropriate
184
- comment syntax for the file format. We also recommend that a
185
- file or class name and description of purpose be included on the
186
- same "printed page" as the copyright notice for easier
187
- identification within third-party archives.
188
-
189
- Copyright [yyyy] [name of copyright owner]
190
-
191
- Licensed under the Apache License, Version 2.0 (the "License");
192
- you may not use this file except in compliance with the License.
193
- You may obtain a copy of the License at
194
-
195
- http://www.apache.org/licenses/LICENSE-2.0
196
-
197
- Unless required by applicable law or agreed to in writing, software
198
- distributed under the License is distributed on an "AS IS" BASIS,
199
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- See the License for the specific language governing permissions and
201
- limitations under the License.
@@ -1,3 +0,0 @@
1
- # Flet `Map` control
2
-
3
- `Map` control to use in Flet apps.