Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setMapId should check if mounted #41

Open
cedvdb opened this issue Apr 7, 2022 · 0 comments
Open

setMapId should check if mounted #41

cedvdb opened this issue Apr 7, 2022 · 0 comments

Comments

@cedvdb
Copy link

cedvdb commented Apr 7, 2022

setMapId should check if mounted. The below code from the lib can create error in some edge scenarios.

  void setMapId(int mapId, {bool withUpdate = true}) async {
    _mapId = mapId;
    _zoom = await GoogleMapsFlutterPlatform.instance.getZoomLevel(mapId: mapId);
    if (withUpdate) updateMap();
  }

related flutter/flutter#101387

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant