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
aa0aa5a9
Commit
aa0aa5a9
authored
11 months ago
by
Sara Savanovic Djordjevic
Browse files
Options
Downloads
Patches
Plain Diff
update: add OSM back
parent
74f7a4be
No related branches found
Branches containing commit
No related tags found
1 merge request
!10
Clhp map
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/lib/consts.dart
+1
-1
1 addition, 1 deletion
app/lib/consts.dart
app/lib/widgets/main_layout.dart
+17
-1
17 additions, 1 deletion
app/lib/widgets/main_layout.dart
with
18 additions
and
2 deletions
app/lib/consts.dart
+
1
−
1
View file @
aa0aa5a9
...
...
@@ -9,7 +9,7 @@ const String mapEndpoint = "update_map";
const
int
fetchInterval
=
60
;
// Fetch marker data every n minutes
// Map variables
LatLng
mapCenter
=
LatLng
(
60.
7666
,
10.8471
);
LatLng
mapCenter
=
LatLng
(
60.
8000
,
10.8471
);
DateTime
?
lastUpdate
;
// Last time data was fetched from server
// Font variables
...
...
This diff is collapsed.
Click to expand it.
app/lib/widgets/main_layout.dart
+
17
−
1
View file @
aa0aa5a9
...
...
@@ -5,6 +5,7 @@ import 'package:google_fonts/google_fonts.dart';
import
'package:shared_preferences/shared_preferences.dart'
;
import
'satellite_layer.dart'
;
import
'osm_layer.dart'
;
import
'stat_charts.dart'
;
import
'../../consts.dart'
;
import
'choropleth_map.dart'
;
...
...
@@ -97,7 +98,22 @@ class _MapContainerWidgetState extends State<MapContainerWidget> {
color:
Colors
.
white12
,
),
),
SizedBox
(
// Lake map
SizedBox
(
width:
screenWidth
*
boxWidth
,
height:
screenWidth
*
boxHeight
,
child:
Stack
(
children:
[
OSM
(
markerList:
widget
.
markerList
),
// OSM widget as the bottom layer
Positioned
.
fill
(
child:
Container
(
color:
Colors
.
grey
.
shade900
.
withOpacity
(
0.35
),
// Grey box with 50% opacity
// Additional content or widgets can be added here
),
),
],
),
),
SizedBox
(
// Color coded lake polygon
width:
screenWidth
*
boxWidth
,
height:
screenWidth
*
boxHeight
,
child:
Padding
(
...
...
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