ServiceAreaTask.withUrl constructor
- Uri uri
Creates a service area task with URL.
Creates a service area task.
Parameters:
uri
— An URL to online routing services.
Implementation
factory ServiceAreaTask.withUrl(Uri uri) {
_initializeArcGISEnvironmentIfNeeded();
final coreURI = _CString(uri.toString());
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_ServiceAreaTask_createWithURL(
coreURI.bytes, errorHandler);
});
return ServiceAreaTask._withHandle(handle);
}