gis.updateVectorLayerFileById

GIS-更新矢量图层文件

模块:GIS调用:piclient.emit('gis.updateVectorLayerFileById', {...})

全球环境下更新矢量图层文件

输入

参数类型必填默认值说明
layerIdstring0
layerTypestring00 SHP File,1 GeoJson,2 CustomJson
filePathstring
offsetstring
enablePointbooleantrue是否启用显示,false则不显示
enableLinestring1是否启用显示,false则不显示
enableFacebooleantrue是否启用显示,false则不显示
snapLandbooleantrue是否贴合地形,false则不显示
pointColorstring#FFFFFF
lineColorstring#FFFFFF
faceColorstring#FFFFFF

调用

typescript
piclient.emit("gis.updateVectorLayerFileById",{
	layerId: "0",
	layerType: "0", //0 SHP File,1 GeoJson,2 CustomJson
	filePath: "",
	offset: "",
	enablePoint: true, //是否启用显示,false则不显示
	enableLine: "1", //是否启用显示,false则不显示
	enableFace: true, //是否启用显示,false则不显示
	snapLand: true, //是否贴合地形,false则不显示
	pointColor: "#FFFFFF",
	lineColor: "#FFFFFF",
	faceColor: "#FFFFFF",
})
← 返回 GIS 模块