唯杰地图 logo唯杰地图
VJMAP
EN

Interface: IUpdateMapParam

更新于 2026-09-14约 9 分钟
.md

更新地图参数

Hierarchy

Table of contents

Properties

Properties

accessKey

• Optional accessKey: string

访问权限的key,权限小于secretKey,不能对图进行删除等操作.

Inherited from: IOpenMapBaseParam.accessKey


cadVersion

• Optional cadVersion: string

新建地图有fileDoc时有效

Inherited from: IOpenMapBaseParam.cadVersion


cbInputPassword

• Optional cbInputPassword: (param: { isPasswordError: boolean ; mapid: string ; result: any ; tryPasswordCount: number }) => Promise<string>

要求输入密码回调.

Type declaration

▸ (param: { isPasswordError: boolean ; mapid: string ; result: any ; tryPasswordCount: number }): Promise<string>

Parameters
Name Type
param object
param.isPasswordError boolean
param.mapid string
param.result any
param.tryPasswordCount number

Returns: Promise<string>

Inherited from: IOpenMapBaseParam.cbInputPassword


deleteOldVersion

• Optional deleteOldVersion: boolean

是否删除老版本(缺省: false ).


filedoc

• Optional filedoc: string

文件文档.

Inherited from: IOpenMapBaseParam.filedoc


fileid

• Optional fileid: string

文件唯一ID. 地图ID第一次打开时,需传递fileid

Inherited from: IOpenMapBaseParam.fileid


filename

• Optional filename: string

文件名称.

Inherited from: IOpenMapBaseParam.filename


fontReplaceRule

• Optional fontReplaceRule: string | Record<string, string>

字符替换规则. openMap返回的字段findFonts为系统查找的字体替换规则。如需修改默认的话,请传入替换的字体规则,如fontReplaceRule: {"tssdeng.shx_1": "default.ttc"}

Inherited from: IOpenMapBaseParam.fontReplaceRule


imageLeft

• Optional imageLeft: number

图像左上角坐标x 第一次打开图像类型时有效

Inherited from: IOpenMapBaseParam.imageLeft


imageResolution

• Optional imageResolution: number

图像分辨率 第一次打开图像类型时有效, 一个像素单位代表多少地理长度,计算公式为 真实坐标长度 / 图像像素宽

Inherited from: IOpenMapBaseParam.imageResolution


imageTop

• Optional imageTop: number

图像左上角坐标y 第一次打开图像类型时有效

Inherited from: IOpenMapBaseParam.imageTop


mapdependencies

• Optional mapdependencies: string

地图依赖项.

Inherited from: IOpenMapBaseParam.mapdependencies


mapfrom

• Optional mapfrom: string

地图来源参数.

Inherited from: IOpenMapBaseParam.mapfrom


mapid

• mapid: string

地图ID.

Inherited from: IOpenMapBaseParam.mapid


mapopenway

• Optional mapopenway: Memory | GeomRender

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

Inherited from: IOpenMapBaseParam.mapopenway


notReplaceLineType

• Optional notReplaceLineType: boolean

不自动替换线型.

Inherited from: IOpenMapBaseParam.notReplaceLineType


notUseDefaultShxFont

• Optional notUseDefaultShxFont: boolean

不使用缺省的型文字文件,将使用缺省的字体来代替型文件.

Inherited from: IOpenMapBaseParam.notUseDefaultShxFont


notUseDefaultTtfFont

• Optional notUseDefaultTtfFont: boolean

不使用缺省的字体文件,将使用缺省的型文件来代替字体文件.

Inherited from: IOpenMapBaseParam.notUseDefaultTtfFont


openFinishMaxTryCount

• Optional openFinishMaxTryCount: number

判断是否打开或更新成功重试最大次数。默认 120 次

Inherited from: IOpenMapBaseParam.openFinishMaxTryCount


openFinishTryInterval

• Optional openFinishTryInterval: number

判断是否打开或更新成功重试间隔(秒)。默认 5s 一次

Inherited from: IOpenMapBaseParam.openFinishTryInterval


renderAccuracy

• Optional renderAccuracy: number

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

Inherited from: IOpenMapBaseParam.renderAccuracy


secretKey

• Optional secretKey: string

秘钥(第一次上传打开图时有效,表示此图需要密码保护).

Inherited from: IOpenMapBaseParam.secretKey


style

• Optional style: IMapStyleParam

样式.

Inherited from: IOpenMapBaseParam.style


subdependencies

• Optional subdependencies: string

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

Inherited from: IOpenMapBaseParam.subdependencies


subfrom

• Optional subfrom: string

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

Inherited from: IOpenMapBaseParam.subfrom


uploadname

• Optional uploadname: string

上传时的文件名.

Inherited from: IOpenMapBaseParam.uploadname

vjmap / Exports / IUpdateStyle

这篇文档有帮助吗?