Skip to content
Snippets Groups Projects
Commit 8f31097f authored by Sara Savanovic Djordjevic's avatar Sara Savanovic Djordjevic
Browse files

upate: visual, choro map

parent 4d7fbddc
No related branches found
No related tags found
1 merge request!3Choropleth map implementation
...@@ -59,11 +59,15 @@ class _MapContainerWidgetState extends State<MapContainerWidget> { ...@@ -59,11 +59,15 @@ class _MapContainerWidgetState extends State<MapContainerWidget> {
borderRadius: BorderRadius.circular(20), borderRadius: BorderRadius.circular(20),
child: Stack( // Stack of quick view, map layer, satellite layer, and buttons child: Stack( // Stack of quick view, map layer, satellite layer, and buttons
children: [ children: [
SizedBox( /*SizedBox(
width: screenWidth * boxWidth, width: screenWidth * boxWidth,
height: screenWidth * boxHeight, height: screenWidth * boxHeight,
child: ChoroplethMap(relation: widget.relation), child: Stack(
/*FlutterMap( children: [
SatLayer(markerList: widget.markerList), // Satellite layer
Visibility(
visible: satLayer, // Only show layer if satellite button is toggled on
child: FlutterMap(
options: MapOptions( options: MapOptions(
center: mapCenter, center: mapCenter,
zoom: 9.0, zoom: 9.0,
...@@ -97,21 +101,26 @@ class _MapContainerWidgetState extends State<MapContainerWidget> { ...@@ -97,21 +101,26 @@ class _MapContainerWidgetState extends State<MapContainerWidget> {
}).toList(), }).toList(),
), ),
], ],
),
),
],
),
),*/ ),*/
SizedBox( // Colored box behind map
width: screenWidth * boxWidth,
height: screenWidth * boxHeight,
child: Container(
color: const Color(0x883366ff)
), ),
/*SizedBox( ),
SizedBox( // Lake map
width: screenWidth * boxWidth, width: screenWidth * boxWidth,
height: screenWidth * boxHeight, height: screenWidth * boxHeight,
child: Stack( child: Padding(
children: [ padding: const EdgeInsets.all(15.0), // Padding around map
SatLayer(markerList: widget.markerList), // Satellite layer child: ChoroplethMap(relation: widget.relation),
Visibility(
visible: satLayer, // Only show layer if satellite button is toggled on
child: SatLayer(markerList: widget.markerList),
), ),
],
), ),
),*/
Positioned( // Quick view box layered over map Positioned( // Quick view box layered over map
bottom: 10, bottom: 10,
right: 10, right: 10,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment