title: Flutter: How to add marker to Google Maps with new Marker API?
body: <pre><code>    mapController.addMarker(
    MarkerOptions(
      position: LatLng(37.4219999, -122.0862462),
    ),
  );
  </code></pre>
  
  <p>I've seen this code snippet in a <a href="https://medium.com/flutter-community/exploring-google-maps-in-flutter-8a86d3783d24" rel="noreferrer">blog post</a>, and I'm trying to add markers to Google Maps.</p>
  
  <blockquote>
    <p>The method 'addMarker' isn't defined for the class 'GoogleMapController'.</p>
  </blockquote>
  
  <p>I think the library has changed and I want to know what's the new way doing this, I've looked up in the <a href="https://github.com/flutter/plugins/blob/master/packages/google_maps_flutter/lib/src/controller.dart" rel="noreferrer">controller.dart</a> and <a href="https://pub.dartlang.org/documentation/google_maps_flutter/latest/" rel="noreferrer">api reference</a> but couldn't figure it out.</p>
  
  <p>I would be happy to see some tutorials and blog posts about it, don't hesitate to share.</p>