title: How to add GeoJson file to Google Maps Flutter as a layer
body: <p>I am doing a project that allows a user to upload a geojson file and add the polygons/polylines to the Google Map as a layer.
  To be clear I'm using google_maps_flutter package: <a href="https://pub.dev/packages/google_maps_flutter" rel="nofollow noreferrer">https://pub.dev/packages/google_maps_flutter</a></p>
  <pre><code> GoogleMap(
              myLocationButtonEnabled: true,
              mapType: _currentMapType,
              zoomGesturesEnabled: true,
              compassEnabled: true,
              myLocationEnabled: true,
              gestureRecognizers: Set()
                ..add(Factory&lt;EagerGestureRecognizer&gt;(
                    () =&gt; EagerGestureRecognizer())),
              zoomControlsEnabled: true,
              initialCameraPosition: cameraPosition ?? _defaultCameraPosition,
              onMapCreated: (controller) {
                _controllerGoogleMap.complete(controller);
                _googleMapController = controller;
  
                _determinePosition();
              },
              markers: _markers),
  </code></pre>
  <p>However, while trying to implement this, I did not find a clear way to implement this. What ways can I use to do this?</p>
  <p>Any help will be appreciated. Thanks</p>