Class: WebPrintingJobLittleMapOptions

WebPrintingJobLittleMapOptions

Web 打印小地图参数类。输出的地图文档中除了包含一个主地图,还可以添加一个小地图,例如中国地图中南海区域的小地图。 此类用于设置小地图的比例尺、中心点等参数,小地图可以是静态图片或 WebMap 中的图层。

new WebPrintingJobLittleMapOptions(option)

Usage
import { WebPrintingJobLittleMapOptions } from '@supermapgis/iclient-leaflet';

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

参数。

Name Type Description
center GeometryPoint | L.Point | L.LatLng | ol.geom.Point | mapboxgl.LngLat | mapboxgl.Point | Array.<number>

小地图的中心点。

scale number 可选

小地图的比例尺。

layerNames Array.<string> 可选

指定 WebMap 中图层名称的列表,用于渲染小地图。

image WebPrintingJobImage 可选

表达小地图的静态图类。用于设置小地图使用的静态图片信息。

layers WebPrintingJobLayers 可选

指定 WebMap 中的 layers 图层类。

Version:
  • 10.1.0

Members

小地图的中心点。

表达小地图的静态图类。暂不支持。

layerNamesArray.<string>

指定 WebMap 中图层名称的列表,用于渲染小地图。

指定 WebMap 中的 layers 图层类。

scalenumber

小地图的比例尺。

Methods

destroy()

common/iServer/WebPrintingJobLittleMapOptions.js, line 56

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

toJSON(){string}

common/iServer/WebPrintingJobLittleMapOptions.js, line 74

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

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