WebCAD-Lib-TS API 文档 - v1.0.0
    Preparing search index...

    Interface IOpenMapResponse

    地图打开返回成功参数

    interface IOpenMapResponse {
        mapid?: string;
        version?: string;
        layer?: string;
        mapopenway?: MapOpenWay;
        dbid?: string;
        fileid?: string;
        filename?: string;
        bounds?: GeoBounds;
        mapBounds?: GeoBounds;
        dbBounds?: GeoBounds;
        drawBounds?: GeoBounds;
        styles?: any;
        layers?: any;
        maptype?: string;
        status?: string;
        darkMode?: boolean;
        type?: string;
        ucsorg?: string;
        uploadname?: string;
        description?: string;
        lineWidthDisplay?: boolean;
        layouts?: string[];
        mapfrom?: string;
        mapdependencies?: string;
        subfrom?: string;
        subdependencies?: string;
        renderAccuracy?: number;
        initViewScale?: number;
        view?: { center?: [number, number]; zoom?: number; bearing?: number };
        maxzoom?: number;
        imageWidth?: number;
        imageHeight?: number;
        imageLeft?: number;
        imageTop?: number;
        imageResolution?: number;
        isMap3d?: boolean;
        createTime?: string;
        geomRecordCount?: string;
    }
    Index

    Properties

    mapid?: string

    地图ID.

    version?: string

    版本号(缺省: "" ).

    layer?: string

    图层名称

    mapopenway?: MapOpenWay

    地图打开方式(缺省: GeomRender) .

    dbid?: string

    DbID.

    fileid?: string

    文件唯一ID.

    filename?: string

    文件名称.

    bounds?: GeoBounds

    地图范围(如果通过clipBounds打开,则是clipBounds的范围).

    mapBounds?: GeoBounds

    地图范围(地图的范围,如果没有通过clipBounds打开,则为空).

    dbBounds?: GeoBounds

    数据库地图范围

    drawBounds?: GeoBounds

    图形中有数据的范围(此范围是非精确值,精确的数据范围需调用cmdGetDrawBounds去获取)

    styles?: any

    图层样式.

    layers?: any

    图层列表.

    maptype?: string

    地图类型. 为空时表示是cad类型,image表示是图像

    status?: string

    状态.

    darkMode?: boolean

    暗黑模式(背景色为黑时).

    type?: string

    类型.

    ucsorg?: string

    ucs基点坐标.

    uploadname?: string

    上传的文件名.

    description?: string

    描述.

    lineWidthDisplay?: boolean

    默认是否显示线宽.

    layouts?: string[]

    所有布局.

    mapfrom?: string

    地图来源参数.

    mapdependencies?: string

    地图依赖项.

    subfrom?: string

    地图来源参数(这是子项的设置,与mapfrom不同的是,这个没有转化为基础图形,有可能还有依赖关系).如与mapfrom一样的话,则为空

    subdependencies?: string

    地图依赖项(这是子项的设置,与mapdependencies不同的是,这个没有转化为基础图形,有可能还有依赖关系).如与mapdependencies一样的话,则为空

    renderAccuracy?: number

    渲染精度,默认1,有时候图形特别大导致圆或圆弧精度不够时,不够光滑,可以先清空之前的缓存数据,再重新上传时,改变渲染精度来使圆或圆弧光滑些。注:提高精度会导致空间数据文件增大,渲染性能下降

    initViewScale?: number

    初始视图缩放倍数,bounds * initViewScale = dbBounds

    view?: { center?: [number, number]; zoom?: number; bearing?: number }

    初始视图.

    Type Declaration

    • Optionalcenter?: [number, number]

      初始视图中心点.

    • Optionalzoom?: number

      初始视图级别.

    • Optionalbearing?: number

      初始视图方位角.

    maxzoom?: number

    图像类型时最大级别

    imageWidth?: number

    图像类型时图像像素宽

    imageHeight?: number

    图像类型时图像像素高

    imageLeft?: number

    图像左上角坐标x

    imageTop?: number

    图像左上角坐标y

    imageResolution?: number

    图像分辨率 一个像素单位代表多少地理长度,计算公式为 真实坐标长度 / 图像像素宽

    isMap3d?: boolean

    是否是3d地图

    createTime?: string

    创建时间

    geomRecordCount?: string

    空间数据记录条数