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

update: minor error handling

parent bd0f0248
No related branches found
No related tags found
1 merge request!13Clhp map
......@@ -20,10 +20,10 @@ class ChoroplethMap extends StatefulWidget {
final void Function(int _selectedIndex) onSelectionChanged;
@override
_ChoroplethMapState createState() => _ChoroplethMapState();
ChoroplethMapState createState() => ChoroplethMapState();
}
class _ChoroplethMapState extends State<ChoroplethMap> {
class ChoroplethMapState extends State<ChoroplethMap> {
int _selectedIndex = -1; // Subdivision/map tile index
late MapShapeSource _dataSource;
late final MapZoomPanBehavior _zoomPanBehavior = MapZoomPanBehavior();
......@@ -78,7 +78,6 @@ class _ChoroplethMapState extends State<ChoroplethMap> {
@override
Widget build(BuildContext context) {
print("Map built!");
return Stack(
children: [
SfMapsTheme(
......
......@@ -160,16 +160,6 @@ class _BarDataState extends State<BarData> {
reservedSize: 30,
interval: totalHeight/5,
),
topTitles: SideTitles(
showTitles: true,
getTextStyles: (value) => const TextStyle(color: Colors.white60),
margin: 0,
reservedSize: 10,
getTitles: (value) {
// Return "cm" for a specific value (e.g., 0) and empty string for others
return value == 0 ? 'cm' : '';
},
),
),
groupsSpace: 14,
gridData: FlGridData(
......
......@@ -30,7 +30,6 @@ class MapContainerWidget extends StatefulWidget {
}
class _MapContainerWidgetState extends State<MapContainerWidget> {
bool isMinimized = true; // Quick view box state tacker
bool satLayer = false; // Satellite layer visibility state
......
No preview for this file type
No preview for this file type
......@@ -152,7 +152,8 @@ def write_json_to_file(lake_name: str, json_data: dict):
data.append(lake_name)
with open(LAKE_RELATIONS_PATH + 'all_lake_names.json', 'w') as file:
json.dump(data, file, indent=2)
# json.dump(data, file, indent=2)
json.dump(data, file, ensure_ascii=False, indent=2)
def plot_map(divided_map):
......
[
"Mj\u00c3\u00b8sa",
"Skumsj\u00c3\u00b8en",
"Skumsj\u00f8en"
"Skumsj\u00c3\u00b8en"
]
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment