getMapType method Null safety
获取地图图层类型
Implementation
static Future<MapType> getMapType() async {
String typeString = await _channel.invokeMethod('getMapType');
switch (typeString) {
case 'NORMAL':
return MapType.NORMAL;
case 'NIGHT':
return MapType.NIGHT;
case 'NAVI':
return MapType.NAVI;
case 'BUS':
return MapType.BUS;
case 'SATELLITE':
return MapType.SATELLITE;
default:
return MapType.NORMAL;
}
}