Skip to content
This repository has been archived by the owner on May 8, 2023. It is now read-only.

v3.0.0 #34

Closed
wants to merge 77 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
0a803fd
refacto example + added method getMarker and getMarkers
Jul 23, 2020
6c0cb7e
Merge branch 'get_precise_marker'
Jul 23, 2020
04ca54c
upgrade version
Jul 23, 2020
acb63a8
Update README.md
Jul 23, 2020
914c1e9
Update pubspec.yaml
Aug 5, 2020
f131ef8
Update pubspec.yaml
Aug 5, 2020
864a039
added method getLine and getLines
Sep 2, 2020
fcc5e6c
Merge branch 'features/get_precise_lines'
Sep 2, 2020
ac20dd7
prepare v0.8.2
Sep 2, 2020
b7febc6
added method addPolyline
Sep 2, 2020
c65936f
Merge branch 'features/addPolyline'
Sep 2, 2020
bac5330
prepare v0.8.3
Sep 2, 2020
ea53b08
bump flutter_map version
Feb 11, 2021
04ac310
change version to 0.9.0 and update other dependencies
Feb 11, 2021
3a073c2
Merge pull request #1 from TesteurManiak/features/update_0.8.4
Feb 11, 2021
864ef2a
upgraded dependencies
TesteurManiak Apr 30, 2021
531a291
Merge branch 'v0.10.0'
TesteurManiak Apr 30, 2021
ecb2b01
update dependencies
Jul 6, 2021
745f7ea
updated
Jul 6, 2021
e7696a6
Merge branch 'upgrade_dependencies'
Jul 6, 2021
73d367e
nullsafety version
TesteurManiak Sep 6, 2021
2bc3df1
Merge branch 'features/nullsafety'
TesteurManiak Sep 6, 2021
652fcc3
update CHANGELOG
TesteurManiak Sep 6, 2021
e74c11a
updated pubspec
TesteurManiak Oct 7, 2021
a10d69b
Merge branch 'features/upgrade_dependencies' into dev
TesteurManiak Oct 7, 2021
1d2431c
added removeLines and updated the methods
TesteurManiak Oct 7, 2021
e9d40e4
putted back geojson
TesteurManiak Oct 7, 2021
5ab17f4
replaced foreach with for-in and removed Future
TesteurManiak Oct 7, 2021
b84bd71
migrate to android
TesteurManiak Oct 7, 2021
af19fcc
updated example and fixed nullsafe migration
TesteurManiak Oct 7, 2021
9968cba
Merge branch 'features/removeLines' into dev
TesteurManiak Oct 7, 2021
901212e
fixes
TesteurManiak Oct 7, 2021
7d855f3
added check on mutate to ensure the marker exists
TesteurManiak Nov 15, 2021
b2f7f5d
linted code
TesteurManiak Nov 15, 2021
d9d0d11
added unit tests
TesteurManiak Nov 15, 2021
b329e00
tested zoom out
TesteurManiak Nov 15, 2021
218ab17
Merge branch 'features/unit_tests' into dev
TesteurManiak Nov 15, 2021
9c1411f
Create flutter.yml
TesteurManiak Nov 15, 2021
1ccb4b3
Merge remote-tracking branch 'origin/master' into dev
TesteurManiak Nov 15, 2021
b6d7ff3
nullsafety fix
TesteurManiak Nov 15, 2021
ae7da0f
upgrade version to 0.13.0
TesteurManiak Nov 15, 2021
3d89332
Merge branch 'dev'
TesteurManiak Nov 15, 2021
573cbc8
refacto: rebranded to map_controller_plus
TesteurManiak Apr 15, 2022
64b0cf7
Merge branch 'refacto/update' into dev
TesteurManiak Apr 15, 2022
8188480
Merge branch 'dev'
TesteurManiak Apr 15, 2022
6b97930
fix: added meta as dev_dependency
TesteurManiak Apr 15, 2022
74ab88a
Merge branch 'dev'
TesteurManiak Apr 15, 2022
8c90540
prepare release 1.0.0
TesteurManiak Jun 27, 2022
fcb5d86
updated README
TesteurManiak Jun 27, 2022
535cb93
update README
TesteurManiak Jun 27, 2022
4a659bc
fix action script
TesteurManiak Jun 27, 2022
b94979f
Merge pull request #2 from TesteurManiak/dev
TesteurManiak Jun 27, 2022
28cef41
migration flutter_map 3
Oct 7, 2022
0f698eb
Merge branch 'migration_flutter_map_3' into dev
TesteurManiak Oct 7, 2022
43987d5
updated pubspec
TesteurManiak Oct 7, 2022
a4a38bc
Merge branch 'dev'
TesteurManiak Oct 7, 2022
e1b6a57
prepare v2.0.0
TesteurManiak Oct 7, 2022
b2ff5b7
update README
TesteurManiak Oct 7, 2022
758ef1b
fixed README
TesteurManiak Oct 7, 2022
3372c1e
Merge branch 'master' into dev
TesteurManiak Oct 7, 2022
c59f6bd
Update README.md
TesteurManiak Oct 7, 2022
d048282
fixed
TesteurManiak Feb 14, 2023
315bedb
Merge pull request #6 from TesteurManiak/fix/issue-3_verbose-flag-not…
TesteurManiak Feb 14, 2023
38e7fbe
Merge branch 'master' into dev
TesteurManiak Feb 19, 2023
9674658
cleaned code and removed rxdart dependency
TesteurManiak Feb 19, 2023
0f2a82f
cleaned code
TesteurManiak Feb 19, 2023
18180c5
removed old code features that are unneeded
TesteurManiak Feb 19, 2023
78878c6
updated example
TesteurManiak Feb 19, 2023
deed3a8
cleaned code
TesteurManiak Feb 19, 2023
e8e4b8d
prepare v3.0.0-dev.2
TesteurManiak Feb 19, 2023
d0be3d5
throw exceptions instead of returning
TesteurManiak Feb 19, 2023
6b46f80
updated exception throw
TesteurManiak Feb 19, 2023
e24abfe
updated tests
TesteurManiak Feb 19, 2023
618db2c
fixed checks in map
TesteurManiak Feb 20, 2023
eecff59
prepare v3.0.0-dev.4
TesteurManiak Feb 20, 2023
44732a4
added actions
TesteurManiak Feb 20, 2023
0e1dcbc
prepare v3.0.0
TesteurManiak May 7, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed checks in map
  • Loading branch information
TesteurManiak committed Feb 20, 2023
commit 618db2c24a9855737f4c48e9cf931d1b824efe45
10 changes: 4 additions & 6 deletions lib/src/state/lines.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,11 @@ class LinesState {

final multiLine = GeoJsonMultiLine(name: "map_lines");

for (final k in namedLines.keys) {
final polyline = namedLines[k];
for (final entry in namedLines.entries) {
final polyline = entry.value;

if (polyline == null) continue;

final line = GeoJsonLine()..name = k;
final geoSerie = GeoSerie(name: k, type: GeoSerieType.line);
final line = GeoJsonLine()..name = entry.key;
final geoSerie = GeoSerie(name: entry.key, type: GeoSerieType.line);

for (final point in polyline.points) {
geoSerie.geoPoints.add(
Expand Down
22 changes: 10 additions & 12 deletions lib/src/state/markers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,8 @@ class MarkersState {
final multiPoint = GeoJsonMultiPoint();
final geoPoints = <GeoPoint>[];

for (final k in namedMarkers.keys) {
final m = namedMarkers[k];

if (m == null) continue;
for (final entry in namedMarkers.entries) {
final m = entry.value;

geoPoints.add(
GeoPoint(
Expand All @@ -105,17 +103,20 @@ class MarkersState {
),
);
}

const name = "map_markers";

multiPoint
..name = "map_markers"
..name = name
..geoSerie = GeoSerie.fromNameAndType(
name: multiPoint.name!,
name: name,
typeStr: "group",
);
multiPoint.geoSerie?.geoPoints = geoPoints;

final feature = GeoJsonFeature<GeoJsonMultiPoint>()
..type = GeoJsonFeatureType.multipoint
..properties = <String, dynamic>{"name": multiPoint.name}
..properties = <String, dynamic>{"name": name}
..geometry = multiPoint;

return feature;
Expand Down Expand Up @@ -184,11 +185,8 @@ class MarkersState {
/// Fit all markers on map
void fitAll() {
final bounds = LatLngBounds();
for (final m in namedMarkers.keys) {
final marker = namedMarkers[m];

if (marker == null) continue;

for (final entry in namedMarkers.entries) {
final marker = entry.value;
bounds.extend(marker.point);
}
mapController.fitBounds(bounds);
Expand Down
10 changes: 4 additions & 6 deletions lib/src/state/polygons.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,11 @@ class PolygonsState {
if (namedPolygons.isEmpty) return null;

final multiPolygon = GeoJsonMultiPolygon(name: "map_polygons");
for (final k in namedPolygons.keys) {
final mapPolygon = namedPolygons[k];
for (final entry in namedPolygons.entries) {
final mapPolygon = entry.value;
final polygon = GeoJsonPolygon()..name = entry.key;
final geoSerie = GeoSerie(name: entry.key, type: GeoSerieType.polygon);

if (mapPolygon == null) continue;

final polygon = GeoJsonPolygon()..name = k;
final geoSerie = GeoSerie(name: k, type: GeoSerieType.polygon);
for (final point in mapPolygon.points) {
geoSerie.geoPoints.add(
GeoPoint(latitude: point.latitude, longitude: point.longitude),
Expand Down