title: Why does centering a flutter_map not work?
body: <p>I am using flutter_map in a form in my Flutter app and centering the map does not work. The map just shows a piece of the ocean. That's because my fallback value (coordinates) is 0, 0. The marker then get's updated to the correct position from value[0] and value<a href="https://pub.dev/packages/flutter_map" rel="nofollow noreferrer">1</a>, but the center isn't updated.</p>
  <pre><code>new FlutterMap(
              options: new MapOptions(
                // TODO: Center doesn't refresh
                // https://github.com/fleaflet/flutter_map/issues/10
                center: new latlong.LatLng(value[0], value[1]),
                zoom: 13.0,
              ),
              layers: [
                new TileLayerOptions(urlTemplate: &quot;https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png&quot;, subdomains: ['a', 'b', 'c']),
                new MarkerLayerOptions(
                  markers: [
                    new Marker(
                      width: 20.0,
                      height: 20.0,
                      point: new latlong.LatLng(value[0], value[1]),
                      builder: (ctx) =&gt; new Container(
                        child: Icon(
                          Icons.location_on,
                          color: primaryColor,
                        ),
                      ),
                    ),
                  ],
                ),
              ],
            ),
  </code></pre>
  <p>I have no idea why <code>center: new latlong.LatLng(value[0], value[1]),</code> does not work. Can someone help me with that? Here is the Flutter package: <a href="https://pub.dev/packages/flutter_map" rel="nofollow noreferrer">https://pub.dev/packages/flutter_map</a></p>