Skip to content

Instantly share code, notes, and snippets.

@Aditsyal Aditsyal/markers.dart Secret
Created Apr 11, 2019

Embed
What would you like to do?
Future<void> _goToNewYork() async {
double lat = 40.7128;
double long = -74.0060;
GoogleMapController controller = await _controller.future;
controller.animateCamera(CameraUpdate.newLatLngZoom(LatLng(lat, long), _zoom));
setState(() {
_markers.add(
Marker(
markerId: MarkerId('newyork'),
position: LatLng(lat, long),
),
);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.