Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PROG2900
Manage
Activity
Members
Labels
Plan
Issues
7
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sara Savanovic Djordjevic
PROG2900
Commits
4e8ca1bd
Commit
4e8ca1bd
authored
10 months ago
by
Sara Savanovic Djordjevic
Browse files
Options
Downloads
Patches
Plain Diff
update: toggle osm and sat layers when the other is enabled
parent
2d127437
No related branches found
Branches containing commit
No related tags found
1 merge request
!19
Clhp map, license agreement
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/lib/widgets/main_layout.dart
+2
-0
2 additions, 0 deletions
app/lib/widgets/main_layout.dart
with
2 additions
and
0 deletions
app/lib/widgets/main_layout.dart
+
2
−
0
View file @
4e8ca1bd
...
...
@@ -141,6 +141,7 @@ class _MapContainerWidgetState extends State<MapContainerWidget> {
onTap:
()
{
setState
(()
{
satLayer
=
!
satLayer
;
// Toggle satellite layer state on press
osmLayer
=
false
;
// Turn OSM layer off if it was turned on
});
},
child:
Container
(
...
...
@@ -163,6 +164,7 @@ class _MapContainerWidgetState extends State<MapContainerWidget> {
onTap:
()
{
setState
(()
{
osmLayer
=
!
osmLayer
;
// Toggle satellite layer state on press
satLayer
=
false
;
// Turn sat layer off if it was turned on
});
},
child:
Container
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment