Skip to content

Commit a895c6a

Browse files
authored
v6 Release Preparation (#1632)
1 parent 4ba3d02 commit a895c6a

File tree

75 files changed

+737
-684
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+737
-684
lines changed

.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
custom: "https://docs.fleaflet.dev/supporters#support-us"

.github/ISSUE_TEMPLATE/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Get Help
4-
url: https://discord.gg/egEGeByf4q
4+
url: https://discord.gg/BwpEsjqMAH
55
about: Don't quite understand how to implement something, or just want to talk? Join the Discord server!
66
- name: Frequently Asked Questions
77
url: https://docs.fleaflet.dev/frequently-asked-questions

CHANGELOG.md

+79-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,84 @@
11
# Changelog
22

3-
## [5.0.0] - 2023/06/XX
3+
## [6.0.0] - 2023/09/XX
4+
5+
**"Photography"**
6+
7+
Contains the following user-affecting changes:
8+
9+
- 🟢 Added new `MapCamera` object to reduce scope of `MapController` & re-implemented internal state management - [#1551](https://github.com/fleaflet/flutter_map/pull/1551) with [#1614](https://github.com/fleaflet/flutter_map/pull/1614)
10+
- 🟢 Added support for rotation on desktop with cursor/pointer and keyboard trigger - [#1592](https://github.com/fleaflet/flutter_map/pull/1592) & [#1642](https://github.com/fleaflet/flutter_map/pull/1642) for [#1568](https://github.com/fleaflet/flutter_map/issues/1568)
11+
- 🟢 Added support for cancelling in-loading tiles to `TileProvider`s & refactored methods - [#1622](https://github.com/fleaflet/flutter_map/pull/1622)
12+
- 🟢 Added new `FlutterMap.simple` constructor for super-fast set up - [#1615](https://github.com/fleaflet/flutter_map/pull/1615)
13+
- 🟢 Added support for allowing gestures to bubble down to all layers - [#1615](https://github.com/fleaflet/flutter_map/pull/1615)
14+
- 🟢 Added `minZoom` property to `CameraFit`s - [#1562](https://github.com/fleaflet/flutter_map/pull/1562)
15+
- 🟢 Added `InteractiveFlag.doubleTapDragZoom` - [#1603](https://github.com/fleaflet/flutter_map/pull/1603)
16+
- 🟢 Added in-memory caching support for tiles loaded by `NetworkTileProvider`, to reduce tile loading times and reduce unnecessary tile server requests - [#1629](https://github.com/fleaflet/flutter_map/pull/1629)
17+
- 🟢 Added new options for rotation support to bounds fitting - [#1550](https://github.com/fleaflet/flutter_map/pull/1550) for [#1342](https://github.com/fleaflet/flutter_map/issues/1342)
18+
- 🟢 Added new '{d}' 'dimension' placeholder to `TileLayer.urlTemplate` (via `TileProvider.generateReplacementMap`) to be filled with `TileLayer.tileSize` - [#1665](https://github.com/fleaflet/flutter_map/pull/1665) for [#1664](https://github.com/fleaflet/flutter_map/issues/1664)
19+
- 🟡 Replaced interaction configurations from `MapOptions` with `InteractionOptions` (accessed from `MapOptions`) - [#1551](https://github.com/fleaflet/flutter_map/pull/1551)
20+
- 🟡 Replaced `MapOptions.` `center`, `bounds`, `zoom`, and `rotation` with `initialCenter`, `initialCameraFit`, `initialZoom`, and `initialRotation` - [#1551](https://github.com/fleaflet/flutter_map/pull/1551)
21+
- 🟡 Replaced `MapOptions.maxBounds` with `MapOptions.cameraConstraint` - [#1551](https://github.com/fleaflet/flutter_map/pull/1551)
22+
- 🟡 Replaced `TileLayer.backgroundColor` property with `MapOptions.backgroundColor` to simplify interaction when using multiple tile layers - [#1578](https://github.com/fleaflet/flutter_map/pull/1578) & [#1647](https://github.com/fleaflet/flutter_map/pull/1647) for [#1577](https://github.com/fleaflet/flutter_map/issues/1577) & [#1566](https://github.com/fleaflet/flutter_map/issues/1566)
23+
- 🟡 Replaced `FlutterMap.nonRotatedChildren` with an inverse purpose (usually internal) `MobileLayerTransformer` - [#1615](https://github.com/fleaflet/flutter_map/pull/1615)
24+
- 🟡 Replaced `Marker.anchor` with `Marker.alignment` that uses built-in `Alignment` object - [#1659](https://github.com/fleaflet/flutter_map/pull/1659)
25+
- 🟡 Replaced `Marker.builder` with non-builder `Marker.child` - [#1659](https://github.com/fleaflet/flutter_map/pull/1659)
26+
- 🟡 Changed `TileLayer.retinaMode` behaviour - [#1673](https://github.com/fleaflet/flutter_map/pull/1673) for [#1670](https://github.com/fleaflet/flutter_map/issues/1670)
27+
- 🟡 Changed some default arguments, including `TileLayer.panBuffer` and `MapOptions.cameraConstraint` - multiple PRs
28+
- 🔴 Removed `CustomPoint` in favour of extension methods on `Point<T>` - [#1585](https://github.com/fleaflet/flutter_map/pull/1585) for [#1522](https://github.com/fleaflet/flutter_map/issues/1522)
29+
- 🔴 Removed `MoveAndRotateResult` in favour of a `Record` in format of `({bool moveSuccess, bool rotateSuccess})` - [#1636](https://github.com/fleaflet/flutter_map/pull/1636)
30+
- 🔴 Removed `Anchor`, `AnchorPos`, and all anchor related terminology - [#1659](https://github.com/fleaflet/flutter_map/pull/1659)
31+
- 🔴 Removed dedicated plugins API import - [#1632](https://github.com/fleaflet/flutter_map/pull/1632)
32+
33+
Contains the following user-affecting bug fixes:
34+
35+
- Handled exceptions correctly in default image provider if no `fallbackUrl` is defined - [#1555](https://github.com/fleaflet/flutter_map/pull/1555) for [#1554](https://github.com/fleaflet/flutter_map/issues/1554)
36+
- Ignored gestures on closed `RichAnimationWidget` when using `FadeRAWA` - [#1591](https://github.com/fleaflet/flutter_map/pull/1591) for [#1589](https://github.com/fleaflet/flutter_map/issues/1589)
37+
- Avoided setting 'User-Agent' header in `TileProvider` when running on the web, to avoid polluting the debug console with ignorable error messages - [#1677](https://github.com/fleaflet/flutter_map/pull/1677) for [#1654](https://github.com/fleaflet/flutter_map/issues/1654)
38+
- Fixed some `Polygon` edge-cases - [#1598](https://github.com/fleaflet/flutter_map/pull/1598) & [#1599](https://github.com/fleaflet/flutter_map/pull/1599)
39+
- Fixed `TileLayer.reset` failing to load new tiles - [#1620](https://github.com/fleaflet/flutter_map/pull/1620) for [#1619](https://github.com/fleaflet/flutter_map/issues/1619)
40+
- Fixed incorrect `Marker` anchoring when counter-rotating - [#1623](https://github.com/fleaflet/flutter_map/pull/1623) for [#1500](https://github.com/fleaflet/flutter_map/issues/1500)
41+
- Fixed `fitBounds` failing to load new tiles - [#1626](https://github.com/fleaflet/flutter_map/pull/1626) for [#1563](https://github.com/fleaflet/flutter_map/issues/1563)
42+
- Fixed `maxNativeZoom` apparently failing to have any effect - [#1627](https://github.com/fleaflet/flutter_map/pull/1627) for [#1625](https://github.com/fleaflet/flutter_map/issues/1625)
43+
- Fixed `hasGesture` being `false` after double tap zoom in `onPositionChanged` callback - [#1465](https://github.com/fleaflet/flutter_map/issues/1465) for [#1630](https://github.com/fleaflet/flutter_map/pull/1630)
44+
- Fixed failure to attempt tile requests with `fallbackUrl` when an exception is thrown whilst `decode`ing instead of during the network request - [#1648](https://github.com/fleaflet/flutter_map/pull/1648) for [#1649](https://github.com/fleaflet/flutter_map/issues/1649)
45+
- Fixed potential issues with building `RichAttributionWidget` - [#1661](https://github.com/fleaflet/flutter_map/pull/1661)
46+
- Fixed `TileLayer.fallbackUrl` not being attempted when `FlutterMapNetworkImageProvider` failed to decode a non-image - part of [#1662](https://github.com/fleaflet/flutter_map/pull/1662) for [#1667](https://github.com/fleaflet/flutter_map/issues/1667)
47+
- Fixed "PositionedTapDetector2" not correctly transforming global coords to local coords when the `FlutterMap` widget was `Transform`ed - [#1676](https://github.com/fleaflet/flutter_map/pull/1676) for [#1675](https://github.com/fleaflet/flutter_map/issues/1675)
48+
49+
Contains the following user-affecting performance improvements:
50+
51+
- Created official plugin to reduce tile loading times when running on web, using [#1622](https://github.com/fleaflet/flutter_map/pull/1622)'s infrastructure - [flutter_map_cancellable_tile_provider](https://pub.dev/packages/flutter_map_cancellable_tile_provider)
52+
- Improved `Polygon` performance when using labels, by increasing batching ability and label location calculations - [#1607](https://github.com/fleaflet/flutter_map/pull/1607) & [#1641](https://github.com/fleaflet/flutter_map/pull/1641)
53+
- Improved `CircleMarker` performance, by using a single `CustomPainter` instance and more efficient draw calls - [#1679](https://github.com/fleaflet/flutter_map/pull/1679)
54+
- Improved internal code style and strictness - [#1594](https://github.com/fleaflet/flutter_map/pull/1594)
55+
- Added logging to warn of potential performance issues and recommend workarounds (such as 'flutter_map_cancellable_tile_provider') - [#1632](https://github.com/fleaflet/flutter_map/pull/1632)
56+
57+
In other news:
58+
59+
- There's many new performance and cost-reducing improvments available (some may need some manual work to enable): please see the [Highlights section](https://docs.fleaflet.dev/getting-started/migrating-to-v6#changelog-and-highlights) on the Migrating To v6 docs page!
60+
- We now accept one-time donations! We're extremely grateful for anything you can spare. We'll donate 15% of what we receive to the OpenStreetMap Foundation, as a thanks for their excellent work. For more info, please see [Support Us](https://docs.fleaflet.dev/supporters#support-us).
61+
- We're looking for sponsors and OSS projects that use FM significantly, and want to be advertised! For more info, please see [Showcase](https://docs.fleaflet.dev/showcase).
62+
- We're on the hunt for maintainers to join the team! For more information, please see [the application form](https://docs.fleaflet.dev/credits#apply-to-be-a-maintainer).
63+
- OpenStreetMap Operations has warned us that users should move away from using subdomains with their tile servers, so please do! Appropriate warnings will now be logged in console should you fail to do this.
64+
65+
Many thanks to these contributors (in no particular order):
66+
67+
- @jjoelson
68+
- @envomer
69+
- @rorystephenson
70+
- @Robbendebiene
71+
- @ignatz
72+
- @josxha
73+
- @lonelyteapot
74+
- @s6o
75+
- @bramp
76+
- @Alexays
77+
- ... and all the maintainers
78+
79+
And an additional special thanks to @rorystephenson for investing so much of their time into this project recently - we appreciate it!
80+
81+
## [5.0.0] - 2023/06/04
482

583
**"Dart The Third"**
684

CONTRIBUTING.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
# Contributing
22

3-
'flutter_map' is only as big and useful as it is because of generous open-source contributors!
3+
'flutter_map' is only as great as it is because of generous open-source contributors!
44

55
We're always happy to receive improvements and fixes, so please submit them whenever you can! A few key points are listed below.
66

77
> Many feature additions are more suitable for plugins, instead of being added to the core. This is aimed to reduce the future maintenance burden/cost on the maintainers.
88
If we deny your PR for this reason, please do consider publishing a plugin, and we'll be happy to add it to the [Plugins List](https://docs.fleaflet.dev/plugins/list)! See [Making A Plugin](https://docs.fleaflet.dev/plugins/making-a-plugin) for more information.
99

10+
* If your PR will add a major or breaking change, please discuss it with us first, via the Issue Tracker
1011
* Always link your PR to at least one issue, and as many as are resolved
1112
* Create a draft PR as soon as work starts, and take it out of draft status when ready for review
1213
* Avoid changing the package version or GitHub workflows
13-
* Fix issues reported by the GitHub workflows (such as lints & formatting)
14+
* Fix issues reported by the GitHub workflows (such as formatting) yourself

LICENSE

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
Copyright (c) 2018-2023, the 'flutter_map' authors and maintainers, loosely based on the original works of 'leaflet.js' by Vladimir Agafonkin & CloudMade
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2018-2023, the 'flutter_map' authors and maintainers
24

35
All rights reserved.
46

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
A versatile mapping package for Flutter. Simple and easy to learn, yet completely customizable and configurable, it's the best choice for mapping in your Flutter app.
44

5-
[![Pub.dev](https://img.shields.io/pub/v/flutter_map.svg?label=Latest+Version)](https://pub.dev/packages/flutter_map) [![Checks & Tests](https://badgen.net/github/checks/fleaflet/flutter_map?label=Checks+%26+Tests&color=orange)](https://github.com/fleaflet/flutter_map/actions?query=branch%3Amaster) [![points](https://img.shields.io/pub/points/flutter_map?logo=flutter)](https://pub.dev/packages/flutter_map/score)
6-
[![stars](https://badgen.net/github/stars/fleaflet/flutter_map?label=stars&color=green&icon=github)](https://github.com/fleaflet/flutter_map/stargazers) [![likes](https://img.shields.io/pub/likes/flutter_map?logo=flutter)](https://pub.dev/packages/flutter_map/score)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[![Open Issues](https://badgen.net/github/open-issues/fleaflet/flutter_map?label=Open+Issues&color=green)](https://GitHub.com/fleaflet/flutter_map/issues) [![Open PRs](https://badgen.net/github/open-prs/fleaflet/flutter_map?label=Open+PRs&color=green)](https://GitHub.com/fleaflet/flutter_map/pulls)
5+
[![pub.dev](https://img.shields.io/pub/v/flutter_map.svg?label=Latest+Version)](https://pub.dev/packages/flutter_map) [![stars](https://badgen.net/github/stars/fleaflet/flutter_map?label=stars&color=green&icon=github)](https://github.com/fleaflet/flutter_map/stargazers) [![likes](https://img.shields.io/pub/likes/flutter_map?logo=flutter)](https://pub.dev/packages/flutter_map/score)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[![Open Issues](https://badgen.net/github/open-issues/fleaflet/flutter_map?label=Open+Issues&color=green)](https://GitHub.com/fleaflet/flutter_map/issues) [![Open PRs](https://badgen.net/github/open-prs/fleaflet/flutter_map?label=Open+PRs&color=green)](https://GitHub.com/fleaflet/flutter_map/pulls)
76

8-
---
7+
## [Donate](https://docs.fleaflet.dev/supporters#support-us)
8+
9+
We now accept one-time donations via Stripe! We're extremely grateful for anything you can spare. We'll donate 15% of what we receive to the OpenStreetMap Foundation, as a thanks for their excellent work.
10+
For more information, details about benefits, and the link to donate, please see [Donate](https://docs.fleaflet.dev/supporters#support-us).
911

1012
## [Documentation](https://docs.fleaflet.dev/)
1113

example/.metadata

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
# This file tracks properties of this Flutter project.
22
# Used by Flutter tool to assess capabilities and perform upgrades etc.
33
#
4-
# This file should be version controlled.
4+
# This file should be version controlled and should not be manually edited.
55

66
version:
7-
revision: 4b12645012342076800eb701bcdfe18f87da21cf
8-
channel: stable
7+
revision: "2524052335ec76bb03e04ede244b071f1b86d190"
8+
channel: "stable"
99

1010
project_type: app
1111

1212
# Tracks metadata for the flutter migrate command
1313
migration:
1414
platforms:
1515
- platform: root
16-
create_revision: 4b12645012342076800eb701bcdfe18f87da21cf
17-
base_revision: 4b12645012342076800eb701bcdfe18f87da21cf
18-
- platform: web
19-
create_revision: 4b12645012342076800eb701bcdfe18f87da21cf
20-
base_revision: 4b12645012342076800eb701bcdfe18f87da21cf
16+
create_revision: 2524052335ec76bb03e04ede244b071f1b86d190
17+
base_revision: 2524052335ec76bb03e04ede244b071f1b86d190
18+
- platform: windows
19+
create_revision: 2524052335ec76bb03e04ede244b071f1b86d190
20+
base_revision: 2524052335ec76bb03e04ede244b071f1b86d190
2121

2222
# User provided section
2323

example/assets/ProjectIcon.ico

-4.19 KB
Binary file not shown.

example/lib/main.dart

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 'package:flutter/material.dart';
22
import 'package:flutter_map_example/pages/animated_map_controller.dart';
3-
import 'package:flutter_map_example/pages/cancellable_tile_provider/cancellable_tile_provider.dart';
3+
import 'package:flutter_map_example/pages/cancellable_tile_provider.dart';
44
import 'package:flutter_map_example/pages/circle.dart';
55
import 'package:flutter_map_example/pages/custom_crs/custom_crs.dart';
66
import 'package:flutter_map_example/pages/epsg3413_crs.dart';
@@ -19,15 +19,15 @@ import 'package:flutter_map_example/pages/offline_map.dart';
1919
import 'package:flutter_map_example/pages/overlay_image.dart';
2020
import 'package:flutter_map_example/pages/plugin_scalebar.dart';
2121
import 'package:flutter_map_example/pages/plugin_zoombuttons.dart';
22-
import 'package:flutter_map_example/pages/point_to_latlng.dart';
22+
import 'package:flutter_map_example/pages/screen_point_to_latlng.dart';
2323
import 'package:flutter_map_example/pages/polygon.dart';
2424
import 'package:flutter_map_example/pages/polyline.dart';
2525
import 'package:flutter_map_example/pages/reset_tile_layer.dart';
2626
import 'package:flutter_map_example/pages/retina.dart';
2727
import 'package:flutter_map_example/pages/secondary_tap.dart';
2828
import 'package:flutter_map_example/pages/sliding_map.dart';
2929
import 'package:flutter_map_example/pages/stateful_markers.dart';
30-
import 'package:flutter_map_example/pages/tile_builder_example.dart';
30+
import 'package:flutter_map_example/pages/tile_builder.dart';
3131
import 'package:flutter_map_example/pages/tile_loading_error_handle.dart';
3232
import 'package:flutter_map_example/pages/wms_tile_layer.dart';
3333
import 'package:url_strategy/url_strategy.dart';
@@ -71,16 +71,17 @@ class MyApp extends StatelessWidget {
7171
TileLoadingErrorHandle.route: (context) =>
7272
const TileLoadingErrorHandle(),
7373
TileBuilderPage.route: (context) => const TileBuilderPage(),
74-
InteractiveTestPage.route: (context) => const InteractiveTestPage(),
74+
InteractiveFlagsPage.route: (context) => const InteractiveFlagsPage(),
7575
ManyMarkersPage.route: (context) => const ManyMarkersPage(),
7676
StatefulMarkersPage.route: (context) => const StatefulMarkersPage(),
7777
MapInsideListViewPage.route: (context) => const MapInsideListViewPage(),
7878
ResetTileLayerPage.route: (context) => const ResetTileLayerPage(),
7979
EPSG4326Page.route: (context) => const EPSG4326Page(),
8080
EPSG3413Page.route: (context) => const EPSG3413Page(),
81-
PointToLatLngPage.route: (context) => const PointToLatLngPage(),
82-
LatLngScreenPointTestPage.route: (context) =>
83-
const LatLngScreenPointTestPage(),
81+
ScreenPointToLatLngPage.route: (context) =>
82+
const ScreenPointToLatLngPage(),
83+
LatLngToScreenPointPage.route: (context) =>
84+
const LatLngToScreenPointPage(),
8485
FallbackUrlNetworkPage.route: (context) =>
8586
const FallbackUrlNetworkPage(),
8687
SecondaryTapPage.route: (context) => const SecondaryTapPage(),

example/lib/pages/animated_map_controller.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import 'package:flutter_map_example/widgets/drawer.dart';
44
import 'package:latlong2/latlong.dart';
55

66
class AnimatedMapControllerPage extends StatefulWidget {
7-
static const String route = 'map_controller_animated';
7+
static const String route = '/map_controller_animated';
88

99
const AnimatedMapControllerPage({Key? key}) : super(key: key);
1010

example/lib/pages/cancellable_tile_provider/cancellable_tile_provider.dart example/lib/pages/cancellable_tile_provider.dart

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import 'package:flutter/material.dart';
22
import 'package:flutter_map/flutter_map.dart';
3-
import 'package:flutter_map/plugin_api.dart';
4-
import 'package:flutter_map_example/pages/cancellable_tile_provider/ctp_impl.dart';
3+
import 'package:flutter_map_cancellable_tile_provider/flutter_map_cancellable_tile_provider.dart';
54
import 'package:flutter_map_example/widgets/drawer.dart';
65
import 'package:latlong2/latlong.dart';
76

0 commit comments

Comments
 (0)