Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. void _onAddMarkerButtonPressed() {
  2. setState(() {
  3. _markers.add(Marker(
  4. // This marker id can be anything that uniquely identifies each marker.
  5. markerId: MarkerId(_lastMapPosition.toString()),
  6. position: _lastMapPosition,
  7. infoWindow: InfoWindow(
  8. title: 'Really cool place',
  9. snippet: '5 Star Rating',
  10. ),
  11. icon: BitmapDescriptor.defaultMarker,
  12. ));
  13. });
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement