loadPortalItemFeatureLayer method

Future<void> loadPortalItemFeatureLayer(
  1. AGMLPortalItem agmlPortalItem
)

Implementation

Future<void> loadPortalItemFeatureLayer(AGMLPortalItem agmlPortalItem) async {
  const method = '/loadPortalItemFeatureLayer';

  try {
    final channelResponse = await _channel.invokeMethod(method, agmlPortalItem.toJson()) as String;
    onLoadServiceFeatureChannelResponse(
      AGMLFeatureServiceLayer(
        url: agmlPortalItem.url,
        viewPoint: agmlPortalItem.viewPoint
      ),
      channelResponse
    );
  } on PlatformException catch(e) {
    if(kDebugMode) print(e);
  }
}