ArcGISVectorTiledLayer.withUri constructor
- Uri uri
Creates an ArcGIS Vector Tiled Layer from an ArcGIS Vector Tile Service URL, a Vector Tile Style Sheet URI, or the path to a local vector tile package (.vtpk) file.
Parameters:
uri
— An ArcGIS Vector Tile Service URL, an ArcGIS Vector Tile Style Sheet URI, or the path to a local vector tile package (.vtpk) file.
Implementation
factory ArcGISVectorTiledLayer.withUri(Uri uri) {
_initializeArcGISEnvironmentIfNeeded();
final coreURI = _CString(uri.toString());
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_ArcGISVectorTiledLayer_createWithURI(
coreURI.bytes, errorHandler);
});
return Layer._instanceCache.instanceWith(handle);
}