WmtsService.withUri constructor
- Uri uri
Creates a WmtsService with the specified URL to the WMTS service.
For some WMTS services it may be necessary to provide a direct URI to the getCapabilities resource, by appending either /1.0.0/WMTSCapabilities.xml or ?service=wmts&request=getCapabilities&version=1.0.0 to the root WMTS URI.
Parameters:
uri
— URL of the OGC WMTS service.
Implementation
factory WmtsService.withUri(
Uri uri,
) {
_initializeArcGISEnvironmentIfNeeded();
final coreURI = _CString(uri.toString());
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_WMTSService_createWithURL(
coreURI.bytes,
errorHandler,
);
});
final WmtsService object = WmtsService._withHandle(handle);
object._uri.cache(uri);
return object;
}