Skip to content

Commit

Permalink
fix send zoomOption while init map
Browse files Browse the repository at this point in the history
  • Loading branch information
liodali committed Jan 1, 2024
1 parent 7ca94e5 commit 73ba7a4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/src/widgets/mobile_osm_flutter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,8 @@ class PlatformView extends StatelessWidget {
if (userlocation) {
params.putIfAbsent("userlocation", () => userlocation);
}
if (initlocation != null) {
params.putIfAbsent("zoomOption", () => zoomOption.toMap);
}
params.putIfAbsent("zoomOption", () => zoomOption.toMap);

return params;
}
}

0 comments on commit 73ba7a4

Please sign in to comment.