react-native-mobilex 开发文档
    Preparing search index...

    Interface ExportSourceKMLOptions

    KML 导出。根据已知源 CRS 转为标准 WGS84 经纬度;CRS 未知或含偏移声明时报 UNSUPPORTED_SOURCE_CRS。

    interface ExportSourceKMLOptions {
        conflictOption?: "error" | "overwrite";
        fileName?: string;
        format: "kml";
        onProgress?: (progress: ResourceExportProgress) => void;
        resourceIds: string[];
        signal?: AbortSignal;
        targetUri?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    conflictOption?: "error" | "overwrite"

    目标已存在:error 报错(默认),overwrite 覆盖。经系统保存选择器选定 已有文件视为用户已确认,不判冲突。

    fileName?: string

    保存选择器的建议文件名(含扩展名);省略时按资源名派生。 GDB 统一建议为 名称.zip,ZIP 内为 名称.gdb/;内部目录跟随最终保存文件名。

    format: "kml"
    onProgress?: (progress: ResourceExportProgress) => void

    仅回调本次调用的阶段;回调抛错不会终止导出。

    resourceIds: string[]

    要导出的资源 ID;至少一个,顺序即输出顺序。

    signal?: AbortSignal

    通过 AbortController.abort() 请求取消。已取消的信号不会启动导出。 输出文件落盘前取消不产生输出;取消以 CANCELLED 拒绝。 已完成的任务返回成功;取消不会删除已写出的输出。

    targetUri?: string

    目标文件 URI;省略时打开系统保存选择器,建议文件名由 fileName 派生。