showGeoAnalytics method
Future<void>
showGeoAnalytics(
- MapmyIndiaGeoAnalyticsType type,
- String geoboundType,
- String? attribute,
- List<
String> propertyNames, - List<
MapmyIndiaGeoAnalyticsRequest> requests, - String? query,
- bool? transparent,
override
Implementation
@override
Future<void> showGeoAnalytics(MapmyIndiaGeoAnalyticsType type,
String geoboundType,
String? attribute,
List<String> propertyNames,
List<MapmyIndiaGeoAnalyticsRequest> requests,
String? query,
bool? transparent) async {
Map<String, dynamic> map = <String, dynamic>{
'geoAnalyticsType': type.index,
'geoboundType': geoboundType,
'propertyNames': propertyNames,
'geoAnalyticsRequest':
List.generate(requests.length, (index) => requests[index].toJson())
};
if (query != null) {
map['query'] = query;
}
if (transparent != null) {
map['transparent'] = transparent;
}
if (attribute != null) {
map['attribute'] = attribute;
}
await _channel.invokeMethod('style#showGeoAnalytics', map);
}