Class: WebPrintingJobScaleBarOptions

WebPrintingJobScaleBarOptions

Web 打印比例尺参数类。此类用于设置 Web 打印地图比例尺的文本信息,方位样式、段数、单位制等参数。

new WebPrintingJobScaleBarOptions(option)

Usage
import { WebPrintingJobScaleBarOptions } from '@supermapgis/iclient-ol';

new WebPrintingJobScaleBarOptions(option);
<script type="text/javascript" src="https://iclient.supermap.io/dist/openlayers/iclient-ol.js"></script>
<script>
  new ol.supermap.WebPrintingJobScaleBarOptions({paramsNames});
  // 弃用的写法
  new SuperMap.WebPrintingJobScaleBarOptions(option);
</script>
common/iServer/WebPrintingJobScaleBarOptions.js, line 6
Name Type Description
option Object

参数。

Name Type Description
scaleText string 可选

比例尺文本信息。例如:1:1000000。

orientation WebScaleOrientationType 可选

比例尺的方位样式。

type WebScaleType 可选

比例尺的样式。

intervals number 可选

比例尺条的段数。

unit WebScaleUnit 可选

比例尺的单位制。

Version:
  • 10.1.0

Members

intervalsObject

比例尺条的段数。

比例尺的方位样式。

scaleTextstring

比例尺文本信息。

比例尺的样式。

比例尺的单位制。

Methods

destroy()

common/iServer/WebPrintingJobScaleBarOptions.js, line 52

释放资源,将引用资源的属性置空。

toJSON(){string}

common/iServer/WebPrintingJobScaleBarOptions.js, line 64

将 WebPrintingJobScaleBarOptions 对象转化为 JSON 字符串。

Returns:
Type Description
string 转换后的 JSON 字符串。