Class: WebPrintingJobNorthArrowOptions

WebPrintingJobNorthArrowOptions

Web 打印地图指北针参数类。此类用于设置 Web 打印地图指北针的图片元素,可传入 Base64 位图片信息,也可传入图片 URL 地址。

new WebPrintingJobNorthArrowOptions(option)

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

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

参数。

Name Type Description
picAsUrl string

指北针的图片 URL 地址。

picAsBase64 string 可选

指北针的 Base64 位图片信息。

Version:
  • 10.1.0

Members

picAsBase64string

指北针的 Base64 位图片信息。

picAsUrlstring

指北针的图片 URL 地址。

Methods

destroy()

common/iServer/WebPrintingJobNorthArrowOptions.js, line 34

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

toJSON(){string}

common/iServer/WebPrintingJobNorthArrowOptions.js, line 43

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

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