Terepbejárás: rögzített geometriai rétegek láthatóságának ki- és bekapcsolása
This commit is contained in:
@@ -46,6 +46,7 @@ import 'package:terepi_seged/services/gnss/gnss_device_service.dart';
|
||||
import 'package:terepi_seged/services/gnss/gnss_service.dart';
|
||||
import 'package:terepi_seged/services/ntrip_service.dart';
|
||||
import 'package:terepi_seged/services/project_service.dart';
|
||||
import 'package:terepi_seged/widgets/map/all_layer_overlay.dart';
|
||||
import 'package:terepi_seged/widgets/map/imported_layer_overlay.dart';
|
||||
import 'package:terepi_seged/widgets/map/team_member_widget.dart';
|
||||
import 'package:terepi_seged/widgets/map_edit_tools/color_row.dart';
|
||||
@@ -196,6 +197,10 @@ class MapSurveyController extends GetxController {
|
||||
final teamTrackPoints = <String, List<LatLng>>{}.obs;
|
||||
RealtimeChannel? _teamChannel;
|
||||
|
||||
final showPoints = true.obs;
|
||||
final showLines = true.obs;
|
||||
final showPolygons = true.obs;
|
||||
|
||||
late final PolygonEditorController polygonEditorController;
|
||||
|
||||
final activeEditColor = const Color(0xFF185FA5).obs;
|
||||
@@ -1757,21 +1762,7 @@ class MapSurveyController extends GetxController {
|
||||
),
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.fromLTRB(20, 0, 20, 20),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
const Text('Importált rétegek',
|
||||
style: TextStyle(
|
||||
fontSize: 18, fontWeight: FontWeight.w600)),
|
||||
const SizedBox(height: 16),
|
||||
ImportLayerPanel(
|
||||
onFitBounds: fitImportedLayer,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
AllLayersPanel(ctrl: this)
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -1985,4 +1976,10 @@ class MapSurveyController extends GetxController {
|
||||
alignment: Alignment.bottomCenter,
|
||||
child: TeamMemberWidget(name: name, color: color));
|
||||
}
|
||||
|
||||
void toggleShowPoints() => showPoints.value = !showPoints.value;
|
||||
|
||||
void toggleShowLines() => showLines.value = !showLines.value;
|
||||
|
||||
void toggleShowPolygons() => showPolygons.value = !showPolygons.value;
|
||||
}
|
||||
|
||||
@@ -126,25 +126,31 @@ class MapSurveyView extends GetView<MapSurveyController> {
|
||||
return MarkerLayer(markers: controller.pointNotesMarker.toList());
|
||||
}),
|
||||
Obx(() {
|
||||
// Pontok - terepi bejárás
|
||||
if (controller.mode.value != MapSurveyMode.fieldWalk) {
|
||||
return const SizedBox.shrink();
|
||||
}
|
||||
if (!controller.showPoints.value) return const SizedBox.shrink();
|
||||
|
||||
return MarkerLayer(markers: [...controller.pointNotes]);
|
||||
}),
|
||||
Obx(() {
|
||||
// Vonalak - terepbejárás
|
||||
if (controller.mode.value != MapSurveyMode.fieldWalk) {
|
||||
return const SizedBox.shrink();
|
||||
}
|
||||
if (!controller.showLines.value) return const SizedBox.shrink();
|
||||
|
||||
return PolylineLayer(
|
||||
hitNotifier: controller.polylineHitNotifier,
|
||||
polylines: [...controller.polylineNotes]);
|
||||
}),
|
||||
Obx(() {
|
||||
// Poligonok - terepbejárás
|
||||
if (controller.mode.value != MapSurveyMode.fieldWalk) {
|
||||
return const SizedBox.shrink();
|
||||
}
|
||||
if (!controller.showPolygons.value) return const SizedBox.shrink();
|
||||
|
||||
return PolygonLayer(
|
||||
hitNotifier: controller.polygonHitNotifier,
|
||||
|
||||
Reference in New Issue
Block a user