Skip to content

Commit

Permalink
mapPage new place fix
Browse files Browse the repository at this point in the history
  • Loading branch information
miakh committed Nov 16, 2023
1 parent 02009e5 commit ef5e782
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/pages/MapPage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ class _MapPageState extends State<MapPage> {
loadPlaces(placeId: placeModel?.id);
}
else{
if(placeModel.latLng.toString().isEmpty)
{
placeModel.latLng = DataService.globalSettingsModel!.defaultMapLocation;
}
PageTitle = placeModel.title ?? config.map_page;
addPlacesToMap([placeModel]);
runEditPositionMode(_markers.single);
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ dev_dependencies:
# activated in the `analysis_options.yaml` file located at the root of your
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
flutter_lints: ^2.0.0
flutter_lints: ^3.0.1

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
Expand Down

0 comments on commit ef5e782

Please sign in to comment.