Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
- Go to 'main page'
- Click on 'FAB to show location'
- Scroll down to 'none'
- See error
Expected behavior
A clear and concise description of what you expected to happen.
click on fab, zoom to value specified in userLocationOptions. No zoom happens.
Marker is not visible at all
Screenshots
not needed
Desktop (please complete the following information):
- OS: Windows
- Browser Chrome
- Version 91.0.4472.77 (Official Build) (64-bit)
Smartphone (please complete the following information):
- Device: Android emulator
- OS: Android 10
- Browser stock
- Version 29 i believe
Additional context
userLocationOptions = UserLocationOptions(
showHeading: true,
context: context,
mapController: mapController,
markers: _userMarker, //is empty initialized above
locationUpdateInBackground: true,
onLocationUpdate: (LatLng pos, double? speed) =>
_userPosition = pos, // print("onLocationUpdate ${pos.toString()}"),
updateMapLocationOnPositionChange: false,
showMoveToCurrentLocationFloatingActionButton: true,
zoomToCurrentLocationOnLoad: false,
fabBottom: 16.5,
fabRight: 20,
fabHeight: 55,
fabWidth: 55,
moveToCurrentLocationFloatingActionButton: new FloatingActionButton(
child: const Icon(Icons.near_me),
onPressed: onTapFAB,
),
verbose: false,
onTapFAB: onTapFAB,
locationUpdateIntervalMs: 1000,
defaultZoom: 16, //does not matter if i put 2 or 19 .. its still the same
);