Skip to content
This repository has been archived by the owner on Jul 11, 2021. It is now read-only.

markerWidget not visible or range 0 error #103

Open
MichalNemec opened this issue Jun 8, 2021 · 0 comments
Open

markerWidget not visible or range 0 error #103

MichalNemec opened this issue Jun 8, 2021 · 0 comments

Comments

@MichalNemec
Copy link

MichalNemec commented Jun 8, 2021

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'main page'
  2. Click on 'FAB to show location'
  3. Scroll down to 'none'
  4. 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
    );
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant