title: Flutter: How to display location layer in Google Map
body: <p>I am currently unable to display a location layer in my embedded GoogleMap within a Flutter application using the <a href="https://pub.dev/packages/google_maps_flutter" rel="nofollow noreferrer">google_maps_flutter</a> package. I have declared the required permissions in both the AndroidManifest.xml and Info.plist files and am setting the map's myLocationEnabled property to true. The resulting map displays neither the current location icon nor the "my location" button.</p>
  
  <p>Questions such as <a href="https://stackoverflow.com/questions/54426364/flutter-google-map-does-not-show-my-location">this</a> seem to suggest that another dependency may be required in order to display the Google Map location layer. However, I do not believe this is the case.</p>
  
  <p>Am I missing something in my current approach or do I require an additional dependency?</p>
  
  <p>I have included the following in my AndroidManifest.xml:</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/&gt;
  </code></pre>
  
  <p>And the following in my Info.plist:</p>
  
  <pre><code>&lt;key&gt;io.flutter.embedded_views_preview&lt;/key&gt;
  &lt;true/&gt;
  &lt;key&gt;NSLocationWhenInUseUsageDescription&lt;/key&gt;
  &lt;string&gt;Application needs to access your current location&lt;/string&gt;
  &lt;key&gt;NSLocationAlwaysUsageDescription&lt;/key&gt;
  &lt;string&gt;Application needs to access your current location&lt;/string&gt;
  </code></pre>
  
  <p>Map code:</p>
  
  <pre><code>return GoogleMap(
            mapType: MapType.normal,
            initialCameraPosition: _lakeGenevaPos,
            markers: _markers,
            polylines: _polylines,
            myLocationEnabled: true,
            onMapCreated: (GoogleMapController controller) =&gt; _onMapCreated(controller),
          );
  </code></pre>
  
  <p>pubspec.yaml dependency:</p>
  
  <pre><code>google_maps_flutter: ^0.5.13
  </code></pre>