turned off card rotaion and added initial marker
This commit is contained in:
@@ -230,11 +230,17 @@ class Karte extends StatefulWidget {
|
||||
}
|
||||
|
||||
class KarteState extends State<Karte> {
|
||||
List<Marker> markers = [];
|
||||
List<Marker> markers = [Marker(point: LatLng(0, 0), child: Icon(Icons.location_on))];
|
||||
LatLng? selectedPosition;
|
||||
Position? updatedPosition;
|
||||
bool saveVisible = false;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
markers = [Marker(point: LatLng(widget.currentPosition.latitude, widget.currentPosition.longitude), child: const Icon(Icons.location_on, color: Colors.red,))];
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
@@ -274,10 +280,12 @@ class KarteState extends State<Karte> {
|
||||
],
|
||||
),
|
||||
body: FlutterMap(
|
||||
mapController: MapController(),
|
||||
options: MapOptions(
|
||||
interactionOptions: const InteractionOptions(flags: InteractiveFlag.pinchZoom | InteractiveFlag.drag | InteractiveFlag.pinchMove),
|
||||
initialCenter: LatLng(widget.currentPosition.latitude,
|
||||
widget.currentPosition.longitude),
|
||||
initialZoom: 13.0,
|
||||
initialZoom: 16.0,
|
||||
onTap: _handleTap,
|
||||
),
|
||||
children: [
|
||||
|
||||
Reference in New Issue
Block a user