Erweiterungen
This commit is contained in:
1 parent
85d6d49258
commit
286c6537b9
2 files changed
+23
-3
No files matched your search
@@ -104,6 +104,16 @@ void showMapPopup(BuildContext context, JobTour currentTour, List<JobTour> tourL
|
||||
|
||||
final ValueNotifier<bool> valueNotifier = ValueNotifier<bool>(true);
|
||||
|
||||
List<Marker> markers = [];
|
||||
for (var tour in tourList) {
|
||||
markers.add(
|
||||
Marker(
|
||||
builder: (context) => const Icon(Icons.person_pin_circle, size: 56, color: Colors.blue),
|
||||
point: LatLng(tour.pos!.lat, tour.pos!.long)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
return Container(
|
||||
padding: const EdgeInsets.fromLTRB(30, 0, 30, 0),
|
||||
key: GlobalKey(),
|
||||
@@ -184,6 +194,9 @@ void showMapPopup(BuildContext context, JobTour currentTour, List<JobTour> tourL
|
||||
urlTemplate: 'https://google-maps.assecutor.de/vt/lyrs=m@130&hl=en&x={x}&y={y}&z={z}',
|
||||
userAgentPackageName: 'com.example.app',
|
||||
),
|
||||
MarkerLayer(
|
||||
markers: markers,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user