WmsService.withUri constructor

WmsService.withUri(
  1. Uri uri
)

Creates a WmsService with the specified URL to the service.

If you want to specify a different WMS version, set the VERSION parameter in the GetCapabilities URL for the service. For more information, see Parameters of a WMS GetCapabilities request URL.

Parameters:

  • uri — URL of the OGC WMS service.

Implementation

factory WmsService.withUri(
  Uri uri,
) {
  _initializeArcGISEnvironmentIfNeeded();
  final coreURI = _CString(uri.toString());
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_WMSService_createWithURL(
      coreURI.bytes,
      errorHandler,
    );
  });
  final WmsService object = WmsService._withHandle(handle);
  object._uri.cache(uri);
  return object;
}