Skip to content

Got the error: Invalid argument. Only uncompressed packages are supported. #30

Description

@qmjy
        this.tileCache = new TileCache(tpk.getAbsolutePath());
        this.tileCache.loadAsync();
        this.tileCache.addDoneLoadingListener(() -> {
            if (tileCache.getLoadStatus() == LoadStatus.LOADED) {
                if (loadMetadata()) {
                    this.valid = true;
                }
            } else if (tileCache.getLoadStatus() == LoadStatus.FAILED_TO_LOAD) {
                ArcGISRuntimeException error = tileCache.getLoadError();
                if (error != null) {
                    logger.error("{} 加载失败原因: {}", tpk.getName(), error.getMessage());
                } else {
                    logger.error("加载失败,但未捕获到具体的错误对象。");
                }
            } else {
                logger.error("Load tpk failed: {}", tpk.getAbsolutePath());
            }
            this.loaded = true;
        });

can not read compact tpk, only support for compact_v2 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions