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