Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void _onAddMarkerButtonPressed() {
- setState(() {
- _markers.add(Marker(
- // This marker id can be anything that uniquely identifies each marker.
- markerId: MarkerId(_lastMapPosition.toString()),
- position: _lastMapPosition,
- infoWindow: InfoWindow(
- title: 'Really cool place',
- snippet: '5 Star Rating',
- ),
- icon: BitmapDescriptor.defaultMarker,
- ));
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement