getMapCenter method

Future<GeoPoint> getMapCenter()
inherited

Implementation

Future<GeoPoint> getMapCenter() async {
  final mapCenterPoint = interop
      .centerMap(
        mapIdMixin.toJS,
      )
      .toMap();

  return GeoPoint.fromMap(Map<String, double>.from(mapCenterPoint));
}