You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 25, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on Jun 25, 2019. It is now read-only.
Set current position as initial camera position? #63
Is there a simple way to set the current location for the initial position? When I use onLocationUpdated to set the updated position, it takes quite some time to update.
Reacted by Marcin Szałek, Youssef Hassan and RafaO
@nicosalazar
I've stopped using this plugin, since this plugin is also being abandoned.
Google is working on an official Google Maps plugin. I suggest you use that one instead.
Did you specify the other location plugin in your pubspec ?
Activity
matthewtsmith commentedon Jun 15, 2018
You could get the location first using something like: https://pub.dartlang.org/packages/location
then pass that in when you call the showMap.
enyceedanny commentedon Jun 15, 2018
Hi thanks for the response.
I've actually been trying that but can't seem to get it to work. Would you be able to provide me a bit more insight? New to flutter/dart. Thanks.
jeffersonatsafe commentedon Sep 13, 2018
@enyceedanny
here's how to do that.
do note that there is a class name clash for
Location, so you'd have to alias one of the package names.nicosalazar commentedon Mar 21, 2019
@jeffersonatsafe i try use your code but i have the error in Location . Undefined class. can you help me ?
do note that there is a class name clash for Location, so you'd have to alias one of the package names.???
jeffersonatsafe commentedon Mar 21, 2019
@nicosalazar
I've stopped using this plugin, since this plugin is also being abandoned.
Google is working on an official Google Maps plugin. I suggest you use that one instead.
Did you specify the other
locationplugin in your pubspec ?