getMapCenter method
Implementation
Future<GeoPoint> getMapCenter() async {
final mapCenterPoint = (await interop
.centerMap(
mapIdMixin.toJS,
)
.toDart)
.dartify() as Map<String, double>?;
if (mapCenterPoint == null) {
throw Exception("web osm : error to get center geopoint");
}
return GeoPoint.fromMap(Map<String, double>.from(mapCenterPoint));
}