Global

Members

AggregationTypesstring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.AggregationTypes.TAG;

</script>
// ES6 Import
import { AggregationTypes } from '@supermap/iclient-leaflet';

const result = AggregationTypes.TAG;

iportal资源聚合查询的类型。

Properties:
Name Type Default Description
TAG string TAG

标签。

TYPE string TYPE

资源类型。

Version:
  • 10.0.1

AlongLineDirectionstring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.AlongLineDirection.NORMAL;

</script>
// ES6 Import
import { AlongLineDirection } from '@supermap/iclient-leaflet';

const result = AlongLineDirection.NORMAL;

标签沿线标注方向枚举。

Properties:
Name Type Default Description
NORMAL string ALONG_LINE_NORMAL

沿线的法线方向放置标签。

LB_TO_RT string LEFT_BOTTOM_TO_RIGHT_TOP

从下到上,从左到右放置。

LT_TO_RB string LEFT_TOP_TO_RIGHT_BOTTOM

从上到下,从左到右放置。

RB_TO_LT string RIGHT_BOTTOM_TO_LEFT_TOP

从下到上,从右到左放置。

RT_TO_LB string RIGHT_TOP_TO_LEFT_BOTTOM

从上到下,从右到左放置。

AnalystAreaUnitstring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.AnalystAreaUnit.SQUAREMETER;

</script>
// ES6 Import
import { AnalystAreaUnit } from '@supermap/iclient-leaflet';

const result = AnalystAreaUnit.SQUAREMETER;

分布式分析面积单位。

Properties:
Name Type Default Description
SQUAREMETER string SquareMeter

平方米。

SQUAREKILOMETER string SquareKiloMeter

平方千米。

HECTARE string Hectare

公顷。

ARE string Are

公亩。

ACRE string Acre

英亩。

SQUAREFOOT string SquareFoot

平方英尺。

SQUAREYARD string SquareYard

平方码。

SQUAREMILE string SquareMile

平方英里。

AnalystSizeUnitstring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.AnalystSizeUnit.METER;

</script>
// ES6 Import
import { AnalystSizeUnit } from '@supermap/iclient-leaflet';

const result = AnalystSizeUnit.METER;

分布式分析单位。

Properties:
Name Type Default Description
METER string Meter

米。

KILOMETER string Kilometer

千米。

YARD string Yard

码。

FOOT string Foot

英尺。

MILE string Mile

英里。

BoundsTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.BoundsType.UNION;

</script>
// ES6 Import
import { BoundsType } from '@supermap/iclient-leaflet';

const result = BoundsType.UNION;

范围类型。

Properties:
Name Type Default Description
CUSTOM string CUSTOM

自定义范围。

INTERSECTION string INTERSECTION

输入栅格数据集范围的交集。

UNION string UNION

输入栅格数据集范围的并集。

Version:
  • 11.1.1

constant BrowserObject

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.Browser.name;

</script>
// ES6 Import
import { Browser } from '@supermap/iclient-leaflet';

const result = Browser.name;

浏览器名称,依赖于 userAgent 属性,BROWSER_NAME 可以是空,或者以下浏览器: * "opera" -- Opera * "msie" -- Internet Explorer * "safari" -- Safari * "firefox" -- Firefox * "mozilla" -- Mozilla

BucketAggTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.BucketAggType.GEOHASH_GRID;

</script>
// ES6 Import
import { BucketAggType } from '@supermap/iclient-leaflet';

const result = BucketAggType.GEOHASH_GRID;

格网聚合查询枚举类,该类定义了Elasticsearch数据服务中聚合查询模式常量

Properties:
Name Type Default Description
GEOHASH_GRID string geohash_grid

格网聚合类型。

BufferEndTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.BufferEndType.FLAT;

</script>
// ES6 Import
import { BufferEndType } from '@supermap/iclient-leaflet';

const result = BufferEndType.FLAT;

缓冲区分析BufferEnd类型。

Properties:
Name Type Default Description
FLAT string FLAT

平头缓冲。

ROUND string ROUND

圆头缓冲。

BufferRadiusUnitstring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.BufferRadiusUnit.CENTIMETER;

</script>
// ES6 Import
import { BufferRadiusUnit } from '@supermap/iclient-leaflet';

const result = BufferRadiusUnit.CENTIMETER;

缓冲区距离单位枚举。该类定义了一系列缓冲距离单位类型。

Properties:
Name Type Default Description
CENTIMETER string CENTIMETER

厘米。

DECIMETER string DECIMETER

分米。

FOOT string FOOT

英尺。

INCH string INCH

英寸。

KILOMETER string KILOMETER

千米。

METER string METER

米。

MILE string MILE

英里。

MILLIMETER string MILLIMETER

毫米。

YARD string YARD

码。

CellSizeTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.CellSizeType.MAX;

</script>
// ES6 Import
import { CellSizeType } from '@supermap/iclient-leaflet';

const result = CellSizeType.MAX;

单元格类型。

Properties:
Name Type Default Description
CUSTOM string CUSTOM

用户自己输入的单元格值大小作为单元格大小类型。

MAX string MAX

输入栅格数据集中单元格最大值作为单元格大小类型。

MIN string MIN

输入栅格数据集中单元格最小值作为单元格大小类型。

Version:
  • 11.1.1

ChartTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.ChartType.BAR;

</script>
// ES6 Import
import { ChartType } from '@supermap/iclient-leaflet';

const result = ChartType.BAR;

客户端专题图图表类型。

Properties:
Name Type Default Description
BAR string Bar

柱状图。

BAR3D string Bar3D

三维柱状图。

CIRCLE string Circle

圆形图。

PIE string Pie

饼图。

POINT string Point

散点图。

LINE string Line

折线图。

RING string Ring

环状图。

ClientTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.ClientType.IP;

</script>
// ES6 Import
import { ClientType } from '@supermap/iclient-leaflet';

const result = ClientType.IP;

token申请的客户端标识类型。

Properties:
Name Type Default Description
IP string IP

指定的 IP 地址。

REFERER string Referer

指定的 URL。

REQUESTIP string RequestIP

发送申请令牌请求的客户端 IP。

NONE string NONE

不做任何验证。

SERVER string SERVER

SERVER。

WEB string WEB

WEB。

ClipAnalystModestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.ClipAnalystMode.CLIP;

</script>
// ES6 Import
import { ClipAnalystMode } from '@supermap/iclient-leaflet';

const result = ClipAnalystMode.CLIP;

裁剪分析模式

Properties:
Name Type Default Description
CLIP string clip

CLIP。

INTERSECT string intersect

INTERSECT。

ColorGradientTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.ColorGradientType.BLACK_WHITE;

</script>
// ES6 Import
import { ColorGradientType } from '@supermap/iclient-leaflet';

const result = ColorGradientType.BLACK_WHITE;

渐变颜色枚举。

Properties:
Name Type Default Description
BLACK_WHITE string BLACKWHITE

黑白渐变色。

BLUE_BLACK string BLUEBLACK

蓝黑渐变色。

BLUE_RED string BLUERED

蓝红渐变色。

BLUE_WHITE string BLUEWHITE

蓝白渐变色。

CYAN_BLACK string CYANBLACK

青黑渐变色。

CYAN_BLUE string CYANBLUE

青蓝渐变色。

CYAN_GREEN string CYANGREEN

青绿渐变色。

CYAN_WHITE string CYANWHITE

青白渐变色。

GREEN_BLACK string GREENBLACK

绿黑渐变色。

GREEN_BLUE string GREENBLUE

绿蓝渐变色。

GREEN_ORANGE_VIOLET string GREENORANGEVIOLET

绿橙紫渐变色。

GREEN_RED string GREENRED

绿红渐变色。

GREEN_WHITE string GREENWHITE

蓝红渐变色。

PINK_BLACK string PINKBLACK

粉黑渐变色。

PINK_BLUE string PINKBLUE

粉蓝渐变色。

PINK_RED string PINKRED

粉红渐变色。

PINK_WHITE string PINKWHITE

粉白渐变色。

RAIN_BOW string RAINBOW

彩虹色。

RED_BLACK string REDBLACK

红黑渐变色。

RED_WHITE string REDWHITE

红白渐变色。

SPECTRUM string SPECTRUM

光谱渐变。

TERRAIN string TERRAIN

地形渐变,用于三维显示效果较好。

YELLOW_BLACK string YELLOWBLACK

黄黑渐变色。

YELLOW_BLUE string YELLOWBLUE

黄蓝渐变色。

YELLOW_GREEN string YELLOWGREEN

黄绿渐变色。

YELLOW_RED string YELLOWRED

黄红渐变色。

YELLOW_WHITE string YELLOWWHITE

黄白渐变色。

ColorSpaceTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.ColorSpaceType.CMYK;

</script>
// ES6 Import
import { ColorSpaceType } from '@supermap/iclient-leaflet';

const result = ColorSpaceType.CMYK;

色彩空间枚举。 由于成色原理的不同,决定了显示器、投影仪这类靠色光直接合成颜色的颜色设备和打印机、 印刷机这类靠使用颜料的印刷设备在生成颜色方式上的区别。 针对上述不同成色方式,SuperMap 提供两种色彩空间, 分别为 RGB 和 CMYK。RGB 主要用于显示系统中,CMYK 主要用于印刷系统中。

Properties:
Name Type Default Description
CMYK string CMYK

该类型主要在印刷系统使用。

RGB string RGB

该类型主要在显示系统中使用。

DataFormatstring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.DataFormat.GEOJSON;

</script>
// ES6 Import
import { DataFormat } from '@supermap/iclient-leaflet';

const result = DataFormat.GEOJSON;

服务请求返回结果数据类型

Properties:
Name Type Default Description
GEOJSON string GEOJSON

GEOJSON

ISERVER string ISERVER

ISERVER

FGB string FGB

FGB

DataItemOrderBy

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.DataItemOrderBy.FILENAME;

</script>
// ES6 Import
import { DataItemOrderBy } from '@supermap/iclient-leaflet';

const result = DataItemOrderBy.FILENAME;

数据排序字段。

Properties:
Name Type Default Description
FILENAME FILENAME

文件名。

ID ID

ID。

LASTMODIFIEDTIME LASTMODIFIEDTIME

最后修改时间。

NICKNAME NICKNAME

作者昵称。

SERVICESTATUS SERVICESTATUS

SERVICESTATUS。

SIZE SIZE

大小。

STATUS STATUS

状态。

TYPE TYPE

类型。

UPDATETIME UPDATETIME

更新时间。

USERNAME USERNAME

作者名。

DataItemTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.DataItemType.GEOJSON;

</script>
// ES6 Import
import { DataItemType } from '@supermap/iclient-leaflet';

const result = DataItemType.GEOJSON;

iportal数据类型。

Properties:
Name Type Default Description
GEOJSON string GEOJSON

geojson 数据。

UGCV5_MVT string UGCV5_MVT

UGCV5_MVT。

JSON string JSON

json数据。

AUDIO string AUDIO

音频文件。

COLOR string COLOR

Color 颜色。

COLORSCHEME string COLORSCHEME

ColorScheme 颜色方案。

CSV string CSV

CSV 数据。

EXCEL string EXCEL

EXCEL 数据。

FILLSYMBOL string FILLSYMBOL

FillSymbol 填充符号库。

IMAGE string IMAGE

图片类型。

LAYERTEMPLATE string LAYERTEMPLATE

LayerTemplate 图层模板。

LAYOUTTEMPLATE string LAYOUTTEMPLATE

LayoutTemplate 布局模板。

LINESYMBOL string LINESYMBOL

LineSymbol 线符号库。

MAPTEMPLATE string MAPTEMPLATE

MapTemplate 地图模板。

MARKERSYMBOL string MARKERSYMBOL

MarkerSymbol 点符号库。

MBTILES string MBTILES

MBTILES。

PHOTOS string PHOTOS

照片。

SHP string SHP

SHP 空间数据。

SMTILES string SMTILES

SMTILES。

SVTILES string SVTILES

SVTILES。

THEMETEMPLATE string THEMETEMPLATE

ThemeTemplate 专题图模板。

TPK string TPK

TPK。

UDB string UDB

UDB 数据源。

UGCV5 string UGCV5

UGCV5。

UNKNOWN string UNKNOWN

其他类型(普通文件)。

VIDEO string VIDEO

视频文件。

WORKENVIRONMENT string WORKENVIRONMENT

WorkEnviroment 工作环境。

WORKSPACE string WORKSPACE

工作空间。

Version:
  • 10.0.1

DataReturnModestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.DataReturnMode.DATASET_AND_RECORDSET;

</script>
// ES6 Import
import { DataReturnMode } from '@supermap/iclient-leaflet';

const result = DataReturnMode.DATASET_AND_RECORDSET;

数据返回模式枚举。 该枚举用于指定空间分析返回结果模式,包含返回数据集标识和记录集、只返回数据集标识(数据集名称@数据源名称)及只返回记录集三种模式。

Properties:
Name Type Default Description
DATASET_AND_RECORDSET string DATASET_AND_RECORDSET

返回结果数据集标识(数据集名称@数据源名称)和记录集(RecordSet)。

DATASET_ONLY string DATASET_ONLY

只返回数据集标识(数据集名称@数据源名称)。

RECORDSET_ONLY string RECORDSET_ONLY

只返回记录集(RecordSet)。

DirectionTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.DirectionType.EAST;

</script>
// ES6 Import
import { DirectionType } from '@supermap/iclient-leaflet';

const result = DirectionType.EAST;

网络分析中方向枚举。 在行驶引导子项中使用。

Properties:
Name Type Default Description
EAST string EAST

东。

NONE string NONE

无方向。

NORTH string NORTH

北。

SOURTH string SOURTH

南。

WEST string WEST

西。

EditTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.EditType.ADD;

</script>
// ES6 Import
import { EditType } from '@supermap/iclient-leaflet';

const result = {namespace}.EditType.ADD;

要素集更新模式枚举。 该枚举用于指定数据服务中要素集更新模式,包含添加要素集、更新要素集和删除要素集。

Properties:
Name Type Default Description
ADD string add

增加操作。

UPDATE string update

修改操作。

DELETE string delete

删除操作。

EngineTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.EngineType.IMAGEPLUGINS;

</script>
// ES6 Import
import { EngineType } from '@supermap/iclient-leaflet';

const result = EngineType.IMAGEPLUGINS;

数据源引擎类型枚举。

Properties:
Name Type Default Description
IMAGEPLUGINS string IMAGEPLUGINS

影像只读引擎类型,文件引擎,针对通用影像格式如 BMP,JPG,TIFF 以及超图自定义影像格式 SIT 等。

OGC string OGC

OGC 引擎类型,针对于 Web 数据源,Web 引擎,目前支持的类型有 WMS,WFS,WCS。

ORACLEPLUS string ORACLEPLUS

Oracle 引擎类型,针对 Oracle 数据源,数据库引擎。

SDBPLUS string SDBPLUS

SDB 引擎类型,文件引擎,即 SDB 数据源。

SQLPLUS string SQLPLUS

SQL Server 引擎类型,针对 SQL Server 数据源,数据库引擎。

UDB string UDB

UDB 引擎类型,文件引擎。

EntityTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.EntityType.DEPARTMENT;

</script>
// ES6 Import
import { EntityType } from '@supermap/iclient-leaflet';

const result = EntityType.DEPARTMENT;

iportal资源实体类型。

Properties:
Name Type Default Description
DEPARTMENT string DEPARTMENT

部门。

GROUP string GROUP

用户组。

IPORTALGROUP string IPORTALGROUP

群组。

ROLE string ROLE

角色。

USER string USER

用户。

Version:
  • 10.0.1

Exponentstring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.Exponent.EXP1;

</script>
// ES6 Import
import { Exponent } from '@supermap/iclient-leaflet';

const result = Exponent.EXP1;

定义了泛克吕金(UniversalKriging)插值时样点数据中趋势面方程的阶数。

Properties:
Name Type Default Description
EXP1 string EXP1

阶数为1。

EXP2 string EXP2

阶数为2。

FillGradientModestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.FillGradientMode.NONE;

</script>
// ES6 Import
import { FillGradientMode } from '@supermap/iclient-leaflet';

const result = FillGradientMode.NONE;

渐变填充风格的渐变类型枚举。

Properties:
Name Type Default Description
NONE string NONE

无渐变。

LINEAR string LINEAR

线性渐变填充。

RADIAL string RADIAL

辐射渐变填充。

CONICAL string CONICAL

圆锥渐变填充。

SQUARE string SQUARE

四角渐变填充。

FilterFieldnumber

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.FilterField.LINKPAGE;

</script>
// ES6 Import
import { FilterField } from '@supermap/iclient-leaflet';

const result = FilterField.LINKPAGE;

关键字查询时的过滤字段。

Properties:
Name Type Default Description
LINKPAGE number LINKPAGE

服务地址。

MAPTITLE number MAPTITLE

服务中包含的地图的名称。

NICKNAME number NICKNAME

服务创建者昵称。

RESTITLE number RESTITLE

服务名称。

USERNAME number USERNAME

服务创建者用户名。

GeometryTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.GeometryType.LINE;

</script>
// ES6 Import
import { GeometryType } from '@supermap/iclient-leaflet';

const result = GeometryType.LINE;

几何对象枚举,定义了一系列几何对象类型。

Properties:
Name Type Default Description
LINE string LINE

线几何对象类型。

LINEM string LINEM

路由对象。

POINT string POINT

点几何对象类型。

REGION string REGION

面几何对象类型。

POINTEPS string POINTEPS

EPS点几何对象。

LINEEPS string LINEEPS

EPS线几何对象。

REGIONEPS string REGIONEPS

EPS面几何对象。

ELLIPSE string ELLIPSE

椭圆。

CIRCLE string CIRCLE

圆。

TEXT string TEXT

文本几何对象类型。

RECTANGLE string RECTANGLE

矩形。

UNKNOWN string UNKNOWN

未定义。

GEOCOMPOUND string GEOCOMPOUND

复合几何对象类型。

GetFeatureModestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.GetFeatureMode.BOUNDS;

</script>
// ES6 Import
import { GetFeatureMode } from '@supermap/iclient-leaflet';

const result = GetFeatureMode.BOUNDS;

feature 查询方式。

Properties:
Name Type Default Description
BOUNDS string BOUNDS

通过范围查询来获取要素。

BUFFER string BUFFER

通过几何对象的缓冲区来获取要素。

ID string ID

通过 ID 来获取要素。

SPATIAL string SPATIAL

通过空间查询模式来获取要素。

SQL string SQL

通过 SQL 查询来获取要素。

GraduatedModestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.GraduatedMode.CONSTANT;

</script>
// ES6 Import
import { GraduatedMode } from '@supermap/iclient-leaflet';

const result = GraduatedMode.CONSTANT;

专题图分级模式枚举。

Properties:
Name Type Default Description
CONSTANT string CONSTANT

常量分级模式。

LOGARITHM string LOGARITHM

对数分级模式。

SQUAREROOT string SQUAREROOT

平方根分级模式。

GraphAxesTextDisplayModestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.GraphAxesTextDisplayMode.ALL;

</script>
// ES6 Import
import { GraphAxesTextDisplayMode } from '@supermap/iclient-leaflet';

const result = GraphAxesTextDisplayMode.ALL;

统计专题图坐标轴文本显示模式。

Properties:
Name Type Default Description
ALL string ALL

显示全部文本。

NONE string NONE

不显示。

YAXES string YAXES

显示Y轴的文本。

GridTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.GridType.CROSS;

</script>
// ES6 Import
import { GridType } from '@supermap/iclient-leaflet';

const result = GridType.CROSS;

地图背景格网类型枚举。

Properties:
Name Type Default Description
CROSS string CROSS

十字叉丝。

GRID string GRID

网格线。

POINT string POINT

点。

InterpolationAlgorithmTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.InterpolationAlgorithmType.KRIGING;

</script>
// ES6 Import
import { InterpolationAlgorithmType } from '@supermap/iclient-leaflet';

const result = InterpolationAlgorithmType.KRIGING;

插值分析的算法的类型。

Properties:
Name Type Default Description
KRIGING string KRIGING

普通克吕金插值法。

SimpleKriging string SimpleKriging

简单克吕金插值法。

UniversalKriging string UniversalKriging

泛克吕金插值法。

JoinTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.JoinType.INNERJOIN;

</script>
// ES6 Import
import { JoinType } from '@supermap/iclient-leaflet';

const result = JoinType.INNERJOIN;

关联查询时的关联类型常量。 该类定义了两个表之间的连接类型常量,决定了对两个表之间进行连接查询时,查询结果中得到的记录的情况。

Properties:
Name Type Default Description
INNERJOIN string INNERJOIN

内连接。

LEFTJOIN string LEFTJOIN

左连接。

LabelBackShapestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.LabelBackShape.DIAMOND;

</script>
// ES6 Import
import { LabelBackShape } from '@supermap/iclient-leaflet';

const result = LabelBackShape.DIAMOND;

标签专题图中标签背景的形状枚举。

Properties:
Name Type Default Description
DIAMOND string DIAMOND

菱形背景,即标签背景的形状为菱形。

ELLIPSE string ELLIPSE

椭圆形背景,即标签背景的行状为椭圆形。

MARKER string MARKER

符号背景,即标签背景的形状为设定的符号。

NONE string NONE

空背景,即不使用任何形状作为标签的背景。

RECT string RECT

矩形背景,即标签背景的形状为矩形。

ROUNDRECT string ROUNDRECT

圆角矩形背景,即标签背景的形状为圆角矩形。

TRIANGLE string TRIANGLE

三角形背景,即标签背景的形状为三角形。

LabelOverLengthModestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.LabelOverLengthMode.NEWLINE;

</script>
// ES6 Import
import { LabelOverLengthMode } from '@supermap/iclient-leaflet';

const result = LabelOverLengthMode.NEWLINE;

标签专题图中超长标签的处理模式枚举。

Properties:
Name Type Default Description
NEWLINE string NEWLINE

换行显示。

NONE string NONE

对超长标签不进行处理。

OMIT string OMIT

省略超出部分。

LayerTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.LayerType.UGC;

</script>
// ES6 Import
import { LayerType } from '@supermap/iclient-leaflet';

const result = LayerType.UGC;

图层类型。

Properties:
Name Type Default Description
UGC string UGC

SuperMap UGC 类型图层。如矢量图层、栅格(Grid)图层、影像图层。

WMS string WMS

WMS 图层。

WFS string WFS

WFS 图层。

CUSTOM string CUSTOM

自定义图层。

MeasureModestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.MeasureMode.DISTANCE;

</script>
// ES6 Import
import { MeasureMode } from '@supermap/iclient-leaflet';

const result = MeasureMode.DISTANCE;

量算模式枚举。

Properties:
Name Type Default Description
DISTANCE string DISTANCE

距离测量。

AREA string AREA

面积测量。

MetricsAggTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.MetricsAggType.AVG;

</script>
// ES6 Import
import { MetricsAggType } from '@supermap/iclient-leaflet';

const result = MetricsAggType.AVG;

指标聚合类型枚举类,该类定义了Elasticsearch数据服务中聚合查询模式常量。

Properties:
Name Type Default Description
AVG string avg

平均值聚合类型。

MAX string max

最大值聚合类型。

MIN string min

最小值聚合类型。

SUM string sum

求和聚合类型。

OrderBystring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.OrderBy.UPDATETIME;

</script>
// ES6 Import
import { OrderBy } from '@supermap/iclient-leaflet';

const result = OrderBy.UPDATETIME;

iportal资源排序字段。

Properties:
Name Type Default Description
UPDATETIME string UPDATETIME

按更新时间排序。

HEATLEVEL string HEATLEVEL

按热度(可能是访问量、下载量)排序。

RELEVANCE string RELEVANCE

按相关性排序。

Version:
  • 10.0.1

OrderTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.OrderType.ASC;

</script>
// ES6 Import
import { OrderType } from '@supermap/iclient-leaflet';

const result = OrderType.ASC;

iportal资源升序还是降序过滤。

Properties:
Name Type Default Description
ASC string ASC

升序。

DESC string DESC

降序。

Version:
  • 10.0.1

OutputTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.OutputType.INDEXEDHDFS;

</script>
// ES6 Import
import { OutputType } from '@supermap/iclient-leaflet';

const result = OutputType.INDEXEDHDFS;

分布式分析输出类型枚举。

Properties:
Name Type Default Description
INDEXEDHDFS string INDEXEDHDFS

INDEXEDHDFS

UDB string UDB

UDB

MONGODB string MONGODB

MONGODB

PG string PG

PG

OverlayOperationTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.OverlayOperationType.CLIP;

</script>
// ES6 Import
import { OverlayOperationType } from '@supermap/iclient-leaflet';

const result = OverlayOperationType.CLIP;

叠加分析类型枚举。

Properties:
Name Type Default Description
CLIP string CLIP

操作数据集(几何对象)裁剪被操作数据集(几何对象)。

ERASE string ERASE

在被操作数据集(几何对象)上擦除掉与操作数据集(几何对象)相重合的部分。

IDENTITY string IDENTITY

对被操作数据集(几何对象)进行同一操作,即操作执行后,被操作数据集(几何对象)包含来自操作数据集(几何对象)的几何形状。

INTERSECT string INTERSECT

对两个数据集(几何对象)求交,返回两个数据集(几何对象)的交集。

UNION string UNION

对两个面数据集(几何对象)进行合并操作。

UPDATE string UPDATE

对两个面数据集(几何对象)进行更新操作。

XOR string XOR

对两个面数据集(几何对象)进行对称差操作。

PermissionTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.PermissionType.SEARCH;

</script>
// ES6 Import
import { PermissionType } from '@supermap/iclient-leaflet';

const result = PermissionType.SEARCH;

iportal资源权限类型。

Properties:
Name Type Default Description
SEARCH string SEARCH

可检索。

READ string READ

可查看。

READWRITE string READWRITE

可编辑。

DELETE string DELETE

可删除。

DOWNLOAD string DOWNLOAD

可下载,包括可读、可检索。

Version:
  • 10.0.1

PixelFormatstring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.PixelFormat.BIT16;

</script>
// ES6 Import
import { PixelFormat } from '@supermap/iclient-leaflet';

const result = PixelFormat.BIT16;

栅格与影像数据存储的像素格式枚举。

Properties:
Name Type Default Description
BIT16 string BIT16

每个像元用16个比特(即2个字节)表示。

BIT32 string BIT32

每个像元用32个比特(即4个字节)表示。

BIT64 string BIT64

每个像元用64个比特(即8个字节)表示,只提供给栅格数据集使用。

SINGLE string SINGLE

每个像元用4个字节来表示,只提供给栅格数据集使用。

DOUBLE string DOUBLE

每个像元用8个字节来表示,只提供给栅格数据集使用。

UBIT1 string UBIT1

每个像元用1个比特表示。

UBIT4 string UBIT4

每个像元用4个比特来表示。

UBIT8 string UBIT8

每个像元用8个比特(即1个字节)来表示。

UBIT24 string UBIT24

每个像元用24个比特(即3个字节)来表示。

UBIT32 string UBIT32

每个像元用32个比特(即4个字节)来表示。

QueryOptionstring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.QueryOption.ATTRIBUTE;

</script>
// ES6 Import
import { QueryOption } from '@supermap/iclient-leaflet';

const result = QueryOption.ATTRIBUTE;

查询结果类型枚举,描述查询结果返回类型,包括只返回属性、只返回几何实体以及返回属性和几何实体。

Properties:
Name Type Default Description
ATTRIBUTE string ATTRIBUTE

属性。

ATTRIBUTEANDGEOMETRY string ATTRIBUTEANDGEOMETRY

属性和几何对象。

GEOMETRY string GEOMETRY

几何对象。

RangeModestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.RangeMode.CUSTOMINTERVAL;

</script>
// ES6 Import
import { RangeMode } from '@supermap/iclient-leaflet';

const result = RangeMode.CUSTOMINTERVAL;

范围分段专题图分段方式枚举。

Properties:
Name Type Default Description
CUSTOMINTERVAL string CUSTOMINTERVAL

自定义分段法。

EQUALINTERVAL string EQUALINTERVAL

等距离分段法。

LOGARITHM string LOGARITHM

对数分段法。

QUANTILE string QUANTILE

等计数分段法。

SQUAREROOT string SQUAREROOT

平方根分段法。

STDDEVIATION string STDDEVIATION

标准差分段法。

RasterFunctionTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.GetFeatureMode.NDVI;

</script>
// ES6 Import
import { GetFeatureMode } from '@supermap/iclient-leaflet';

const result = GetFeatureMode.NDVI;

栅格分析方法。

Properties:
Name Type Default Description
NDVI string NDVI

归一化植被指数。

HILLSHADE string HILLSHADE

阴影面分析。

ResourceTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.GetFeatureMode.MAP;

</script>
// ES6 Import
import { GetFeatureMode } from '@supermap/iclient-leaflet';

const result = GetFeatureMode.MAP;

iportal资源类型。

Properties:
Name Type Default Description
MAP string MAP

地图。

SERVICE string SERVICE

服务。

SCENE string SCENE

场景。

DATA string DATA

数据。

INSIGHTS_WORKSPACE string INSIGHTS_WORKSPACE

洞察。

MAP_DASHBOARD string MAP_DASHBOARD

大屏。

Version:
  • 10.0.1

SearchModestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.SearchMode.KDTREE_FIXED_COUNT;

</script>
// ES6 Import
import { SearchMode } from '@supermap/iclient-leaflet';

const result = SearchMode.KDTREE_FIXED_COUNT;

内插时使用的样本点的查找方式枚举。

Properties:
Name Type Default Description
KDTREE_FIXED_COUNT string KDTREE_FIXED_COUNT

使用 KDTREE 的固定点数方式查找参与内插分析的点。

KDTREE_FIXED_RADIUS string KDTREE_FIXED_RADIUS

使用 KDTREE 的定长方式查找参与内插分析的点。

NONE string NONE

不进行查找,使用所有的输入点进行内插分析。

QUADTREE string QUADTREE

使用 QUADTREE 方式查找参与内插分析的点,仅对样条(RBF)插值和普通克吕金(Kriging)有用。

SearchTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.SearchType.PUBLIC;

</script>
// ES6 Import
import { SearchType } from '@supermap/iclient-leaflet';

const result = SearchType.PUBLIC;

iportal资源查询的范围进行过滤。

Properties:
Name Type Default Description
PUBLIC string PUBLIC

公开资源。

MY_RES string MY_RES

我的资源。

MYGROUP_RES string MYGROUP_RES

我的群组资源。

MYDEPARTMENT_RES string MYDEPARTMENT_RES

我的部门资源。

SHARETOME_RES string SHARETOME_RES

分享给我的资源。

Version:
  • 10.0.1

ServerTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.ServerType.ISERVER;

</script>
// ES6 Import
import { ServerType } from '@supermap/iclient-leaflet';

const result = ServerType.ISERVER;

服务器类型

Properties:
Name Type Default Description
ISERVER string ISERVER

ISERVER

IPORTAL string IPORTAL

IPORTAL

ONLINE string ONLINE

ONLINE

ServiceStatus

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.ServiceStatus.DOES_NOT_INVOLVE;

</script>
// ES6 Import
import { ServiceStatus } from '@supermap/iclient-leaflet';

const result = ServiceStatus.DOES_NOT_INVOLVE;

服务发布状态。

Properties:
Name Type Default Description
DOES_NOT_INVOLVE DOES_NOT_INVOLVE

不涉及,不可发布。

PUBLISH_FAILED PUBLISH_FAILED

发布失败。

PUBLISHED PUBLISHED

已发布。

PUBLISHING PUBLISHING

正在发布。

UNPUBLISHED UNPUBLISHED

未发布。

UNPUBLISHED_FAILED UNPUBLISHED_FAILED

取消服务失败。

SideTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.SideType.LEFT;

</script>
// ES6 Import
import { SideType } from '@supermap/iclient-leaflet';

const result = SideType.LEFT;

行驶位置枚举。 表示在行驶在路的左边、右边或者路上的枚举,该类用在行驶导引子项类中。

Properties:
Name Type Default Description
LEFT string LEFT

路的左侧。

MIDDLE string MIDDLE

在路上(即路的中间)。

NONE string NONE

无效值。

RIGHT string RIGHT

路的右侧。

SmoothMethodstring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.SmoothMethod.BSPLINE;

</script>
// ES6 Import
import { SmoothMethod } from '@supermap/iclient-leaflet';

const result = SmoothMethod.BSPLINE;

光滑方法枚举。 用于从Grid 或DEM数据生成等值线或等值面时对等值线或者等值面的边界线进行平滑处理的方法。

Properties:
Name Type Default Description
BSPLINE string BSPLINE

B 样条法。

POLISH string POLISH

磨角法。

SpatialQueryModestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.SpatialQueryMode.CONTAIN;

</script>
// ES6 Import
import { SpatialQueryMode } from '@supermap/iclient-leaflet';

const result = SpatialQueryMode.CONTAIN;

空间查询模式枚举。该类定义了空间查询操作模式常量。

Properties:
Name Type Default Description
CONTAIN string CONTAIN

包含空间查询模式。

CROSS string CROSS

交叉空间查询模式。

DISJOINT string DISJOINT

分离空间查询模式。

IDENTITY string IDENTITY

重合空间查询模式。

INTERSECT string INTERSECT

相交空间查询模式。

NONE string NONE

无空间查询。

OVERLAP string OVERLAP

叠加空间查询模式。

TOUCH string TOUCH

邻接空间查询模式。

WITHIN string WITHIN

被包含空间查询模式。

SpatialRelationTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.SpatialRelationType.CONTAIN;

</script>
// ES6 Import
import { SpatialRelationType } from '@supermap/iclient-leaflet';

const result = {namespace}.SpatialRelationType.CONTAIN;

数据集对象间的空间关系枚举。 该类定义了数据集对象间的空间关系类型常量。

Properties:
Name Type Default Description
CONTAIN string CONTAIN

包含关系。

INTERSECT string INTERSECT

相交关系。

WITHIN string WITHIN

被包含关系。

StatisticAnalystModestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.StatisticAnalystMode.MAX;

</script>
// ES6 Import
import { StatisticAnalystMode } from '@supermap/iclient-leaflet';

const result = StatisticAnalystMode.MAX;

分布式分析统计模式。

Properties:
Name Type Default Description
MAX string max

统计所选字段的最大值。

MIN string min

统计所选字段的最小值。

AVERAGE string average

统计所选字段的平均值。

SUM string sum

统计所选字段的总和。

VARIANCE string variance

统计所选字段的方差。

STDDEVIATION string stdDeviation

统计所选字段的标准差。

StatisticModestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.StatisticMode.AVERAGE;

</script>
// ES6 Import
import { StatisticMode } from '@supermap/iclient-leaflet';

const result = StatisticMode.AVERAGE;

字段统计方法类型。

Properties:
Name Type Default Description
AVERAGE string AVERAGE

统计所选字段的平均值。

MAX string MAX

统计所选字段的最大值。

MIN string MIN

统计所选字段的最小值。

STDDEVIATION string STDDEVIATION

统计所选字段的标准差

SUM string SUM

统计所选字段的总和。

VARIANCE string VARIANCE

统计所选字段的方差。

SummaryTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.SummaryType.SUMMARYMESH;

</script>
// ES6 Import
import { SummaryType } from '@supermap/iclient-leaflet';

const result = SummaryType.SUMMARYMESH;

分布式分析聚合类型。

Properties:
Name Type Default Description
SUMMARYMESH string SUMMARYMESH

格网聚合。

SUMMARYREGION string SUMMARYREGION

多边形聚合。

SupplyCenterTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.SupplyCenterType.FIXEDCENTER;

</script>
// ES6 Import
import { SupplyCenterType } from '@supermap/iclient-leaflet';

const result = SupplyCenterType.FIXEDCENTER;

资源供给中心类型枚举。 该枚举定义了网络分析中资源中心点的类型,主要用于资源分配和选址分区。 资源供给中心点的类型包括非中心,固定中心和可选中心。固定中心用于资源分配分析;固定中心和可选中心用于选址分析;非中心在两种网络分析时都不予考虑。

Properties:
Name Type Default Description
FIXEDCENTER string FIXEDCENTER

固定中心点。

NULL string NULL

非中心点。

OPTIONALCENTER string OPTIONALCENTER

可选中心点。

SurfaceAnalystMethodstring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.SurfaceAnalystMethod.ISOLINE;

</script>
// ES6 Import
import { SurfaceAnalystMethod } from '@supermap/iclient-leaflet';

const result = SurfaceAnalystMethod.ISOLINE;

表面分析方法枚举。 通过对数据进行表面分析,能够挖掘原始数据所包含的信息,使某些细节明显化,易于分析。

Properties:
Name Type Default Description
ISOLINE string ISOLINE

等值线提取。

ISOREGION string ISOREGION

等值面提取。

TextAlignmentstring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.TextAlignment.TOPLEFT;

</script>
// ES6 Import
import { TextAlignment } from '@supermap/iclient-leaflet';

const result = TextAlignment.TOPLEFT;

文本对齐枚举。

Properties:
Name Type Default Description
TOPLEFT string TOPLEFT

左上角对齐。

TOPCENTER string TOPCENTER

顶部居中对齐。

TOPRIGHT string TOPRIGHT

右上角对齐。

BASELINELEFT string BASELINELEFT

基准线左对齐。

BASELINECENTER string BASELINECENTER

基准线居中对齐。

BASELINERIGHT string BASELINERIGHT

基准线右对齐。

BOTTOMLEFT string BOTTOMLEFT

左下角对齐。

BOTTOMCENTER string BOTTOMCENTER

底部居中对齐。

BOTTOMRIGHT string BOTTOMRIGHT

右下角对齐。

MIDDLELEFT string MIDDLELEFT

左中对齐。

MIDDLECENTER string MIDDLECENTER

中心对齐。

MIDDLERIGHT string MIDDLERIGHT

右中对齐。

ThemeGraphTextFormatstring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.ThemeGraphTextFormat.CAPTION;

</script>
// ES6 Import
import { ThemeGraphTextFormat } from '@supermap/iclient-leaflet';

const result = ThemeGraphTextFormat.CAPTION;

统计专题图文本显示格式枚举。

Properties:
Name Type Default Description
CAPTION string CAPTION

标题。以各子项的标题来进行标注。

CAPTION_PERCENT string CAPTION_PERCENT

标题 + 百分数。以各子项的标题和所占的百分比来进行标注。

CAPTION_VALUE string CAPTION_VALUE

标题 + 实际数值。以各子项的标题和真实数值来进行标注。

PERCENT string PERCENT

百分数。以各子项所占的百分比来进行标注。

VALUE string VALUE

实际数值。以各子项的真实数值来进行标注。

ThemeGraphTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.ThemeGraphType.AREA;

</script>
// ES6 Import
import { ThemeGraphType } from '@supermap/iclient-leaflet';

const result = ThemeGraphType.AREA;

统计专题图类型枚举。

Properties:
Name Type Default Description
AREA string AREA

面积图。

BAR string BAR

柱状图。

BAR3D string BAR3D

三维柱状图。

LINE string LINE

折线图。

PIE string PIE

饼图。

PIE3D string PIE3D

三维饼图。

POINT string POINT

点状图。

RING string RING

环状图。

ROSE string ROSE

玫瑰图。

ROSE3D string ROSE3D

三维玫瑰图。

STACK_BAR string STACK_BAR

堆叠柱状图。

STACK_BAR3D string STACK_BAR3D

三维堆叠柱状图。

STEP string STEP

阶梯图。

ThemeTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.ThemeType.DOTDENSITY;

</script>
// ES6 Import
import { ThemeType } from '@supermap/iclient-leaflet';

const result = ThemeType.DOTDENSITY;

专题图类型枚举。

Properties:
Name Type Default Description
DOTDENSITY string DOTDENSITY

点密度专题图。

GRADUATEDSYMBOL string GRADUATEDSYMBOL

等级符号专题图。

GRAPH string GRAPH

统计专题图。

LABEL string LABEL

标签专题图。

RANGE string RANGE

分段专题图。

UNIQUE string UNIQUE

単值专题图。

TopologyValidatorRulestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.TopologyValidatorRule.REGIONNOOVERLAP;

</script>
// ES6 Import
import { TopologyValidatorRule } from '@supermap/iclient-leaflet';

const result = TopologyValidatorRule.REGIONNOOVERLAP;

拓扑检查模式枚举。该类定义了拓扑检查操作模式常量。

Properties:
Name Type Default Description
REGIONNOOVERLAP string REGIONNOOVERLAP

面内无重叠,用于对面数据进行拓扑检查。

REGIONNOOVERLAPWITH string REGIONNOOVERLAPWITH

面与面无重叠,用于对面数据进行拓扑检查。

REGIONCONTAINEDBYREGION string REGIONCONTAINEDBYREGION

面被面包含,用于对面数据进行拓扑检查。

REGIONCOVEREDBYREGION string REGIONCOVEREDBYREGION

面被面覆盖,用于对面数据进行拓扑检查。

LINENOOVERLAP string LINENOOVERLAP

线与线无重叠,用于对线数据进行拓扑检查。

LINENOOVERLAPWITH string LINENOOVERLAPWITH

线内无重叠,用于对线数据进行拓扑检查。

POINTNOIDENTICAL string POINTNOIDENTICAL

点不相同,用于对点数据进行拓扑检查。

TransferPreferencestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.TransferPreference.BUS;

</script>
// ES6 Import
import { TransferPreference } from '@supermap/iclient-leaflet';

const result = TransferPreference.BUS;

公交换乘策略枚举。 该枚举用于指定交通换乘服务中设置地铁优先、公交优先、不乘地铁、无偏好等偏好设置。

Properties:
Name Type Default Description
BUS string BUS

公交汽车优先。

SUBWAY string SUBWAY

地铁优先。

NO_SUBWAY string NO_SUBWAY

不乘坐地铁。

NONE string NONE

无乘车偏好。

TransferTacticstring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.TransferTactic.LESS_TIME;

</script>
// ES6 Import
import { TransferTactic } from '@supermap/iclient-leaflet';

const result = TransferTactic.LESS_TIME;

公交换乘策略枚举。 该枚举用于指定公交服务中要素集更新模式,包含添加要素集、更新要素集和删除要素集。

Properties:
Name Type Default Description
LESS_TIME string LESS_TIME

时间短。

LESS_TRANSFER string LESS_TRANSFER

少换乘。

LESS_WALK string LESS_WALK

少步行。

MIN_DISTANCE string MIN_DISTANCE

距离最短。

TurnTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.TurnType.AHEAD;

</script>
// ES6 Import
import { TurnType } from '@supermap/iclient-leaflet';

const result = TurnType.AHEAD;

转弯方向枚举。 用在行驶引导子项类中,表示转弯的方向。

Properties:
Name Type Default Description
AHEAD string AHEAD

向前直行。

BACK string BACK

掉头。

END string END

终点,不拐弯。

LEFT string LEFT

左转弯。

NONE string NONE

无效值。

RIGHT string RIGHT

右转弯。

UGCLayerTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.UGCLayerType.THEME;

</script>
// ES6 Import
import { UGCLayerType } from '@supermap/iclient-leaflet';

const result = UGCLayerType.THEME;

SuperMap 图层类型。

Properties:
Name Type Default Description
THEME string THEME

专题图层。

VECTOR string VECTOR

矢量图层。

GRID string GRID

栅格图层。

IMAGE string IMAGE

影像图层。

Unitstring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.Unit.METER;

</script>
// ES6 Import
import { Unit } from '@supermap/iclient-leaflet';

const result = Unit.METER;

距离单位枚举。 该类定义了一系列距离单位类型。

Properties:
Name Type Default Description
METER string METER

米。

KILOMETER string KILOMETER

千米。

MILE string MILE

英里。

YARD string YARD

码。

DEGREE string DEGREE

度。

MILLIMETER string MILLIMETER

毫米。

CENTIMETER string CENTIMETER

厘米。

INCH string INCH

英寸。

DECIMETER string DECIMETER

分米。

FOOT string FOOT

英尺。

SECOND string SECOND

秒。

MINUTE string MINUTE

分。

RADIAN string RADIAN

弧度。

VariogramModestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.VariogramMode.EXPONENTIAL;

</script>
// ES6 Import
import { VariogramMode } from '@supermap/iclient-leaflet';

const result = VariogramMode.EXPONENTIAL;

克吕金(Kriging)插值时的半变函数类型枚举。

Properties:
Name Type Default Description
EXPONENTIAL string EXPONENTIAL

指数函数。

GAUSSIAN string GAUSSIAN

高斯函数。

SPHERICAL string SPHERICAL

球型函数。

VectorTileFormatstring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.VectorTileFormat.JSON;

</script>
// ES6 Import
import { VectorTileFormat } from '@supermap/iclient-leaflet';

const result = VectorTileFormat.JSON;

矢量瓦片格式。

Properties:
Name Type Default Description
JSON string JSON

JSON

MVT string MVT

MVT

PBF string PBF

PBF

WebExportFormatTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.WebExportFormatType.PNG;

</script>
// ES6 Import
import { WebExportFormatType } from '@supermap/iclient-leaflet';

const result = WebExportFormatType.PNG;

Web 打印输出的格式。

Properties:
Name Type Default Description
PNG string PNG

PNG

PDF string PDF

PDF

Version:
  • 10.0.1

WebScaleOrientationTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.WebScaleOrientationType.HORIZONTALLABELSBELOW;

</script>
// ES6 Import
import { WebScaleOrientationType } from '@supermap/iclient-leaflet';

const result = WebScaleOrientationType.HORIZONTALLABELSBELOW;

Web 比例尺的方位样式。

Properties:
Name Type Default Description
HORIZONTALLABELSBELOW string HORIZONTALLABELSBELOW

horizontal labels below.

HORIZONTALLABELSABOVE string HORIZONTALLABELSABOVE

horizontal labels above.

VERTICALLABELSLEFT string VERTICALLABELSLEFT

vertical labels left.

VERTICALLABELSRIGHT string VERTICALLABELSRIGHT

vertical labels right.

Version:
  • 10.0.1

WebScaleTypestring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.WebScaleType.LINE;

</script>
// ES6 Import
import { WebScaleType } from '@supermap/iclient-leaflet';

const result = WebScaleType.LINE;

Web 比例尺的样式。

Properties:
Name Type Default Description
LINE string LINE

line.

BAR string BAR

bar.

BAR_SUB string BAR_SUB

bar sub.

Version:
  • 10.0.1

WebScaleUnitstring

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.WebScaleUnit.METER;

</script>
// ES6 Import
import { WebScaleUnit } from '@supermap/iclient-leaflet';

const result = WebScaleUnit.METER;

Web 比例尺的单位制。

Properties:
Name Type Default Description
METER string METER

米。

FOOT string FOOT

英尺。

DEGREES string DEGREES

度。

Version:
  • 10.0.1

Methods

conversionDegree(degrees){string}

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.conversionDegree(degrees);

</script>

// ES6 Import
import { conversionDegree } from '@supermap/iclient-leaflet';

const result = conversionDegree(degrees);
common/util/MapCalculateUtil.js, line 85

转换经纬度。

Name Type Description
degrees number

经度或纬度。

Returns:
Type Description
string 返回度分秒。

createMapService(){MapService}

common/iServer/InitMapServiceBase.js, line 32

初始化 MapService。

Returns:
Type Description
MapService

crsFromMapJSON(mapJSONObj, mapOptions){CRS}

leaflet/mapping/initMap.js, line 68

通过iServer REST地图的配置信息,构建地图的CRS(非平面投影、EPSG:3857、EPSG:4326需要先注册投影)。

Name Type Description
mapJSONObj Object

地图参数。

Name Type Description
prjCoordSys Object

投影配置。

bounds Object

范围。

dpi number

DPI。

visibleScales Array

自定义比例尺。

coordUnit Array

地图单位。

mapOptions Object 可选

地图参数。

Name Type Default Description
maxZoom number 22 可选

地图最大缩放级别。没有设置固定比例尺时生效。

Version:
  • 11.0.1
Returns:
Type Description
CRS 返回CRS。

getEpsgCode(prjCoordSys){string}

common/iServer/InitMapServiceBase.js, line 94

获取 EPSG Code。

Name Type Description
prjCoordSys Object
Returns:
Type Description
string

getIntersection(extent1, extent2){Array}

common/util/MapCalculateUtil.js, line 245

获取两个范围的交集

Name Type Description
extent1 Array

Extent 1

extent2 Array

Extent 2

Returns:
Type Description
Array 相交范围数组.

getMapInfo(){Promise}

common/iServer/InitMapServiceBase.js, line 50

获取地图信息。

Returns:
Type Description
Promise

getMapInfo(){Promise}

common/iServer/InitMapServiceBase.js, line 64

获取坐标投影 WKT。

Returns:
Type Description
Promise

getMeterPerMapUnit(mapUnit){number}

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.getMeterPerMapUnit(mapUnit);

</script>

// ES6 Import
import { getMeterPerMapUnit } from '@supermap/iclient-leaflet';

const result = getMeterPerMapUnit(mapUnit);
common/util/MapCalculateUtil.js, line 3

单位换算,把米|度|千米|英寸|英尺换成米。

Name Type Description
mapUnit string

地图单位。

Returns:
Type Description
number 返回地图的距离单位。

getRequestTimeout(){number}

Usage
// 浏览器
  <script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
  <script>
    L.supermap.getRequestTimeout();

    // 弃用的写法
    SuperMap.getRequestTimeout();

  </script>

  // ES6 Import
  import { getRequestTimeout } from '@supermap/iclient-leaflet';

  getRequestTimeout();
common/util/FetchRequest.js, line 255

获取请求超时时间。

Returns:
Type Description
number 请求超时时间。

getResolutionFromScaleDpi(scale, dpi, coordUnit, datumAxis){number}

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.Util.getResolutionFromScaleDpi(scale, dpi, coordUnit, datumAxis);

  // 弃用的写法
  const result = L.supermap.Util.GetResolutionFromScaleDpi(scale, dpi, coordUnit, datumAxis);
  const result = L.Util.GetResolutionFromScaleDpi(scale, dpi, coordUnit, datumAxis);
</script>

// ES6 Import
import { getResolutionFromScaleDpi } from '@supermap/iclient-leaflet';

const result = getResolutionFromScaleDpi(scale, dpi, coordUnit, datumAxis);
leaflet/core/Util.js, line 181

根据比例尺和 DPI 计算屏幕分辨率。

Name Type Default Description
scale number

比例尺。

dpi number

图像分辨率,表示每英寸内的像素个数。

coordUnit string 可选

投影坐标系统的地图单位。

datumAxis number 6378137 可选

地理坐标系统椭球体长半轴。用户自定义地图的 Options 时,若未指定该参数的值,则 DPI 默认按照 WGS84 参考系的椭球体长半轴 6378137 来计算。

Returns:
Type Description
number 当前比例尺下的屏幕分辨率。

getWrapNum(x, includeMax, includeMin, range){number}

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.getWrapNum(x, includeMax, includeMin, range);

</script>

// ES6 Import
import { getWrapNum } from '@supermap/iclient-leaflet';

const result = getWrapNum(x, includeMax, includeMin, range);
common/util/MapCalculateUtil.js, line 44

获取该坐标系的经纬度范围的经度或纬度。

Name Type Description
x number

经度或纬度。

includeMax boolean

是否获取经度或纬度的最大值。

includeMin boolean

是否获取经度或纬度的最小值。

range number

坐标系的经纬度范围。

Returns:
Type Description
number 返回经度或纬度的值。

getZoomByResolution(resolution, resolutions){number}

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.getZoomByResolution(resolution, resolutions);

</script>

// ES6 Import
import { getZoomByResolution } from '@supermap/iclient-leaflet';

const result = getZoomByResolution(resolution, resolutions);
common/util/MapCalculateUtil.js, line 156

通过分辨率获取地图级别。

Name Type Description
resolution number

分辨率。

resolutions Array

分辨率数组。

Version:
  • 11.0.1
Returns:
Type Description
number 地图级别。

initMap(url, options){Promise}

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const initMap = L.supermap.initMap;
  initMap(url, {mapOptions, layerOptions});

</script>
// ES6 Import
  import { initMap } from "@supermap/iclient-leaflet";

  initMap(url, {mapOptions, layerOptions});

leaflet/mapping/initMap.js, line 13

根据 SuperMap iServer 服务参数,创建地图与图层。目前仅支持SuperMap iServer 地图服务,创建的图层为 TiledMapLayer。

Name Type Description
url string

服务地址,例如: http://{ip}:{port}/iserver/services/map-world/rest/maps/World。

options Object 可选

参数。

Name Type Default Description
mapOptions L.MapOptions 可选

地图参数,未设置的情况下,默认使用 SuperMap iServer 服务参数进行设置。

layerOptions Object 可选

图层参数,参考TiledMapLayer的参数。

proxy string 可选

服务代理地址。

withCredentials boolean false 可选

请求是否携带 cookie。

crossOrigin boolean 可选

是否允许跨域请求。

headers Object 可选

请求头。

Version:
  • 11.0.1
Returns:
Type Description
Promise Promise 对象,返回{ map, layer }。
Example
initMap(url, {mapOptions, layerOptions});

intersects(extent1, extent2){boolean}

common/util/MapCalculateUtil.js, line 229

范围是否相交

Name Type Description
extent1 Array

范围1

extent2 Array

范围2

Returns:
Type Description
boolean 范围是否相交。

isCORS(){boolean}

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.isCORS();

  // 弃用的写法
  const result = SuperMap.isCORS();

</script>

// ES6 Import
import { isCORS } from '@supermap/iclient-leaflet';

const result = isCORS();
common/util/FetchRequest.js, line 200

是是否允许跨域请求。

Returns:
Type Description
boolean 是否允许跨域请求。

isPlaneProjection(type){boolean}

common/iServer/InitMapServiceBase.js, line 84

是否是平面坐标系。

Name Type Description
type string

投影坐标系类型

Returns:
Type Description
boolean

normalizeScale(scale){number}

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.Util.normalizeScale(scale);

 // 弃用的写法
  const result = L.supermap.Util.NormalizeScale(scale);
  const result = L.Util.NormalizeScale(scale);
</script>

// ES6 Import
import { normalizeScale } from '@supermap/iclient-leaflet';

const result = normalizeScale(scale);
leaflet/core/Util.js, line 153

转换比例尺。

Name Type Description
scale number

比例尺。

Returns:
Type Description
number 正常的 scale 值。

refreshDragedNodePosition()

common/overlay/knowledge-graph/G6Render.js, line 953

更新拖拽后节点的x ,y

resolutionToScale(resolution, dpi, mapUnit){number}

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.Util.resolutionToScale(resolution, dpi, mapUnit);

</script>

// ES6 Import
import { resolutionToScale } from '@supermap/iclient-leaflet';

const result = resolutionToScale(resolution, dpi, mapUnit);
leaflet/core/Util.js, line 90

通过分辨率计算比例尺。

Name Type Description
resolution number

分辨率。

dpi number

屏幕分辨率。

mapUnit string

地图单位。

Returns:
Type Description
number 比例尺。

scalesToResolutions(scales, bounds, dpi, mapUnit, level){number}

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.scalesToResolutions(scales, bounds, dpi, mapUnit);

</script>

// ES6 Import
import { scalesToResolutions } from '@supermap/iclient-leaflet';

const result = scalesToResolutions(scales, bounds, dpi, mapUnit);
common/util/MapCalculateUtil.js, line 115

通过比例尺数组计算分辨率数组,没有传入比例尺数组时通过地图范围与地图最大级别进行计算。

Name Type Default Description
scales Array

比例尺数组。

bounds Object

地图范围。

dpi number

屏幕分辨率。

mapUnit string

地图单位。

level number 22 可选

地图最大级别。

Version:
  • 11.0.1
Returns:
Type Description
number 分辨率。

scaleToResolution(scale, dpi, mapUnit){number}

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.scaleToResolution(scale, dpi, mapUnit);

</script>

// ES6 Import
import { scaleToResolution } from '@supermap/iclient-leaflet';

const result = scaleToResolution(scale, dpi, mapUnit);
common/util/MapCalculateUtil.js, line 193

通过比例尺计算分辨率。

Name Type Description
scale number

比例尺。

dpi number

屏幕分辨率。

mapUnit string

地图单位。

Version:
  • 11.0.1
Returns:
Type Description
number 分辨率。

scaleToResolution(scale, dpi, mapUnit){number}

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.Util.scaleToResolution(scale, dpi, mapUnit);

</script>

// ES6 Import
import { scaleToResolution } from '@supermap/iclient-leaflet';

const result = scaleToResolution(scale, dpi, mapUnit);
leaflet/core/Util.js, line 122

通过比例尺计算分辨率。

Name Type Description
scale number

比例尺。

dpi number

屏幕分辨率。

mapUnit string

地图单位。

Returns:
Type Description
number 分辨率。

setCORS(cors)

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  L.supermap.setCORS(cors);

  // 弃用的写法
  SuperMap.setCORS(cors);

</script>

// ES6 Import
import { setCORS } from '@supermap/iclient-leaflet';

setCORS(cors);
common/util/FetchRequest.js, line 174

设置是否允许跨域请求,全局配置,优先级低于 service 下的 crossOring 参数。

Name Type Description
cors boolean

是否允许跨域请求。

setRequestTimeout(timeout)

Usage
// 浏览器
  <script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
  <script>
    L.supermap.setRequestTimeout(timeout);

    // 弃用的写法
    SuperMap.setRequestTimeout(timeout);

  </script>

  // ES6 Import
  import { setRequestTimeout } from '@supermap/iclient-leaflet';

  setRequestTimeout(timeout);
common/util/FetchRequest.js, line 229

设置请求超时时间。

Name Type Default Description
timeout number 45 可选

请求超时时间,单位秒。

toGeoJSON(feature)

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.Util.toGeoJSON(feature);

</script>

// ES6 Import
import { toGeoJSON } from '@supermap/iclient-leaflet';

const result = toGeoJSON(feature);
leaflet/core/Util.js, line 12

将传入对象转为 GeoJSON 格式。

Name Type Description
feature Object

待转参数。

toSuperMapGeometry(geometry)

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.Util.toSuperMapGeometry(geometry);

</script>

// ES6 Import
import { toSuperMapGeometry } from '@supermap/iclient-leaflet';

const result = toSuperMapGeometry(geometry);
leaflet/core/Util.js, line 39

将 GeoJSON 对象转为 SuperMap 几何图形。

Name Type Description
geometry GeoJSONObject

GeoJSON 对象。

transform(feature, sourceCRS, targetCRS){GeoJSONObject}

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  const result = L.supermap.Util.transform(feature, sourceCRS, targetCRS);

  // 弃用的写法: 
  L.Util.transform(feature, sourceCRS, targetCRS);

</script>

// ES6 Import
import { transform } from '@supermap/iclient-leaflet';

const result = transform(feature, sourceCRS, targetCRS);
leaflet/core/Transform.js, line 7

转换要素坐标。

Name Type Default Description
feature L.Marker | L.CircleMarker | L.Polyline | L.Polygon | L.Rectangle | L.LatLngBounds | L.Bounds | Object

待转换要素:Leaflet Vector Layers 的 L.Marker|L.CircleMarker|L.Polyline|L.Polygon|L.Rectangle|L.LatLngBounds|L.Bounds|GeoJSONObject 类型。

sourceCRS CRS L.CRS.EPSG4326 可选

转换要素的源坐标系。

targetCRS CRS

转换要素的目标坐标系。

Returns:
Type Description
GeoJSONObject 返回 GeoJSON 规范的数据类型。

Type Definitions

RequestCallback(serviceResult)

common/iServer/CommonServiceBase.js, line 391

服务器请求回调函数。

Name Type Description
serviceResult Object
Name Type Description
result Object

服务器返回结果。

object Object

发布应用程序事件的对象。

type Object

事件类型。

options Object

请求参数。

Example
var requestCallback = function (serviceResult){
     console.log(serviceResult.result);
}
new QueryService(url).queryByBounds(param, requestCallback);