AGMLMapController constructor

AGMLMapController(
  1. int id
)

Implementation

AGMLMapController(int id) {
  _channel = MethodChannel('plugins.flutter.io/arcgis_maps:$id');

  _mapServiceLayers = [];
  _mapLocalLayers = [];

  _channel.setMethodCallHandler((call) async {
    if (call.method == '/getSelectedFeatureInFeatureLayer') {
      final selectedLayers = call.arguments as List<dynamic>;
      _selectedLayerStreamController.add(selectedLayers);
    }
  });
}