Global

Members

(constant) canvasProto

L.Canvas

(constant) divOverlayProto

L.DivOverlay

(constant) domUtilProto

L.DomUtil

(constant) gridLayerProto

L.GridLayer

(constant) ImageOverlay

L.ImageOverlay

(constant) mapProto

L.Map

(constant) markerProto

L.Marker

(constant) popupProto

L.Popup

(constant) rendererProto

L.Renderer

(constant) tooltipProto

L.Tooltip

Methods

_adjustClusterOrMarkerStatus(marker, rbush, zoom){*}

engineExtensions/layer/support/markerclusterUtils.js, line 2948
Name Type Description
marker *
rbush *
zoom *
Returns:
Type Description
*

_animationCreateMarkerIcon(nm){*}

engineExtensions/layer/support/markerclusterUtils.js, line 2198
Name Type Description
nm *
Returns:
Type Description
*

_calcAdjustPoint(rbush, point, rbushItem, cell){*}

engineExtensions/layer/support/markerclusterUtils.js, line 2890
Name Type Description
rbush *
point *
rbushItem *
cell *
Returns:
Type Description
*

_calcRotateOffset(){*}

document/support/mapbox/leafletMapbox.js, line 301
Returns:
Type Description
*

_clearSwipeLayers()

engineExtensions/baseExtend/control/SwipeControl.js, line 54

*************************** 内部接口 ***********************************

_getAdjustPoint(p1, p2, cell){*}

engineExtensions/layer/support/markerclusterUtils.js, line 2874
Name Type Description
p1 *
p2 *
cell *
Returns:
Type Description
*

_getClippingAreaPx(){Array.<Object>|null}

engineExtensions/layer/support/ImageOverlay.js, line 157

计算裁剪区几何对象并缓存

Returns:
Type Description
Array.<Object> | null 裁剪区几何对象

_getLevelValue(level){String}

engineExtensions/baseExtend/layer/tile/L.GridLayer.js, line 109

获取levelValue

Name Type Description
level Number

数组下标值

Returns:
Type Description
String

_initCRS(){*}

engineExtensions/baseExtend/layer/tile/L.GridLayer.js, line 143
Returns:
Type Description
*

_isValidTile(coords){*}

engineExtensions/baseExtend/layer/tile/L.GridLayer.js, line 387
Name Type Description
coords *
Returns:
Type Description
*

_isValidTileZoom(tileZoom){*}

engineExtensions/baseExtend/layer/tile/L.GridLayer.js, line 486
Name Type Description
tileZoom *
Returns:
Type Description
*

_limitZoom(zoom){*}

engineExtensions/baseExtend/map/L.Map.js, line 527

限制地图层级

Name Type Description
zoom Number
Returns:
Type Description
*

_mapZoomToTileZoom(zoom){Number}

engineExtensions/baseExtend/layer/tile/L.GridLayer.js, line 444

转换为tileZoom(不处理拉伸)

Name Type Description
zoom Number

地图zoom

Returns:
Type Description
Number

_resetGrid(){*}

engineExtensions/baseExtend/layer/tile/L.GridLayer.js, line 321
Returns:
Type Description
*

_setZoomTransform(level, center, zoom){*}

engineExtensions/baseExtend/layer/tile/L.GridLayer.js, line 220
Name Type Description
level *
center *
zoom *

地图的zoom

Returns:
Type Description
*

_tileCoordsToBounds(coords){*}

engineExtensions/baseExtend/layer/tile/L.GridLayer.js, line 364
Name Type Description
coords *
Returns:
Type Description
*

_tileCoordsToNwSe(coords){*}

engineExtensions/baseExtend/layer/tile/L.GridLayer.js, line 350
Name Type Description
coords *
Returns:
Type Description
*

_toMapZoom(zoom){*}

engineExtensions/baseExtend/layer/tile/L.GridLayer.js, line 431
Name Type Description
zoom *
Returns:
Type Description
*

_toTileZoom(zoom){*}

engineExtensions/baseExtend/layer/tile/L.GridLayer.js, line 455
Name Type Description
zoom *
Returns:
Type Description
*

_toTurfGeometry(geojson){Array.<Geometry>}

engineExtensions/layer/support/ImageOverlay.js, line 149

获取turf几何体

Name Type Description
geojson Object

geojson对象

Returns:
Type Description
Array.<Geometry> turf几何对象

_updateLevels(){*}

engineExtensions/baseExtend/layer/tile/L.GridLayer.js, line 249
Returns:
Type Description
*

_updateZoomLevels()

engineExtensions/baseExtend/map/L.Map.js, line 465

修改说明:修改leaflet引擎L.Map.prototype._updateZoomLevels默认逻辑 原本逻辑当视图minzoom、maxzoom未设置时,遍历所有图层根据图层上设置的minzoom、maxzoom属性计算视图最小缩放级别和最大缩放级别 修改后,当视图minzoom、maxzoom未设置时,遍历所有图层将图层上设置的minzoom、maxzoom转换为视图zoom层级,设置到视图上 修改人:赵凯 2025/11/21

buildRequestImageSrc(){Promise}

engineExtensions/layer/MapLayerWMS.js, line 39

构建图片Src地址

Returns:
Type Description
Promise 请求对象

buildRequestImageSrc(url){Promise}

engineExtensions/layer/support/ArcGISMapServerForMapLayer.js, line 46

构建图片Src地址

Name Type Description
url String

服务基地址

Returns:
Type Description
Promise 请求对象

buildRequestImageSrc(url, params){Promise}

engineExtensions/layer/support/IGSImageServerForMapLayer.js, line 58

构建图片Src地址

Name Type Description
url String

服务基地址

params Object

需要请求地址后面拼接的参数

Returns:
Type Description
Promise 请求对象

buildRequestImageSrc(){Promise}

engineExtensions/layer/support/IGSMapServerForMapLayer.js, line 58

构建图片Src地址

Returns:
Type Description
Promise 请求对象

buildRequestParamsObject(){Promise}

engineExtensions/layer/MapLayer.js, line 450

构建请求参数对象

Returns:
Type Description
Promise 请求对象

convertClusterSymbol(symbol){*}

document/support/ThemeRenderUtil.js, line 20
Name Type Description
symbol *
Returns:
Type Description
*

convertFeature(feature){*}

util/convertFeatureToLeafletGraphicUtil.js, line 250

转换要素为几何图形

Name Type Description
feature Feature
Returns:
Type Description
*

createGraphic(type, coords, style){*}

util/convertFeatureToLeafletGraphicUtil.js, line 26

根据类型创建marker

Name Type Description
type *
coords *
style *
Returns:
Type Description
*

createTile(coords, done){Image}

engineExtensions/layer/TileLayer.js, line 74

创建瓦片图片对象

Name Type Description
coords Object

瓦片行列号对象

done function

绘制完成的回调函数

Returns:
Type Description
Image 瓦片图片对象

findClusterInfo(clusterInfos, value){*}

document/support/ThemeRenderUtil.js, line 148
Name Type Description
clusterInfos *
value *
Returns:
Type Description
*

fixPosition()

engineExtensions/layer/mapV/MapVLayer.js, line 287

拖动的时候和放大缩小的时候自定义图层不见得会和地图的像素坐标同步计算 因此再绘制自定义图层的时候需要重新计算对应的位置,这里主要是对齐左上角

getBoundByExtent(extent){L.latLngBounds}

view/utils/support/utils.js, line 155

根据common的Extent计算出Leaflet的范围对象

Name Type Description
extent Extent

范围对象

Returns:
Type Description
L.latLngBounds Leaflet的范围对象

getBounds(layer, outSpatialReference){Object}

view/utils/support/utils.js, line 32

获取地图范围,仅在4326相关坐标系下生效,其他坐标系在地图视图的坐标系中设置了范围

Name Type Description
layer Object

基础图层对象

outSpatialReference Number

输出范围对象的目标参考系

Returns:
Type Description
Object leaflet的范围对象

getClippingArea(){Object}

engineExtensions/layer/TileLayer.js, line 175
Returns:
Type Description
Object GeoJSON对象

getContainer(){HTMLElement}

engineExtensions/layer/echarts/EchartsLayer.js, line 80

获取容器

Returns:
Type Description
HTMLElement

getContainer(){HTMLElement}

engineExtensions/layer/MapLayer.js, line 113

获取容器

Returns:
Type Description
HTMLElement

getContainer(){HTMLElement}

engineExtensions/layer/mapV/MapVLayer.js, line 153

获取容器

Returns:
Type Description
HTMLElement

getCrsOptionsByLayer(layer){*}

view/utils/support/utils.js, line 120
Name Type Description
layer *
Returns:
Type Description
*

getExtendBounds(extent, resolution, outSpatialReference, extendPixel){L.latLngBounds}

view/utils/support/utils.js, line 62

据像素扩展的leaflet范围对象

Name Type Description
extent Extent

基础图层对象

resolution Number

分辨率

outSpatialReference Number

输出范围对象的目标参考系

extendPixel Number

扩展的像素

Returns:
Type Description
L.latLngBounds leaflet的范围对象

getLayerBounds(layer, outSpatialReference){Object}

engineExtensions/layer/support/utils.js, line 42

获取图层的Bounds范围

Name Type Description
layer Object

基础图层对象

outSpatialReference Number

输出范围对象的目标参考系

Returns:
Type Description
Object leaflet的范围对象Bounds

getLayerExtendBounds(layer, outSpatialReference, extendPixel){Object}

engineExtensions/layer/support/utils.js, line 57

获取图层扩展像素后的Bounds范围

Name Type Description
layer Object

基础图层对象

outSpatialReference Number

输出范围对象的目标参考系

extendPixel Number

扩展的像素

Returns:
Type Description
Object leaflet的范围对象Bounds

getLayerIndex(layerView){Number}

view/utils/support/utils.js, line 242

获取图层视图在组图层视图中的索引

Name Type Description
layerView LayerView

图层视图对象

Returns:
Type Description
Number 图层视图在组图层视图中的索引

getMapImageLayerOptions(layer){Object}

engineExtensions/layer/support/utils.js, line 79

获取地图图片图层的初始化参数

Name Type Description
layer IGSMapImageLayer

IGSMapImageLayer对象

Returns:
Type Description
Object 地图图片图层的初始化参数

getMapRotateBounds(leafletMap){*}

view/utils/support/utils.js, line 89
Name Type Description
leafletMap *
Returns:
Type Description
*

getParamsString(params){String}

engineExtensions/layer/support/utils.js, line 17

获取请求参数链接,空值的请求参数不会出现在链接中

Name Type Description
params Object

请求参数

Returns:
Type Description
String 请求参数链接字符串

getPixelWorldBounds(zoom){*}

engineExtensions/baseExtend/layer/tile/L.GridLayer.js, line 312
Name Type Description
zoom *
Returns:
Type Description
*

getScaleZoom(scale, fromZoom){*}

engineExtensions/baseExtend/layer/tile/L.GridLayer.js, line 172
Name Type Description
scale *
fromZoom *
Returns:
Type Description
*

getSpatialReferenceFromCRS(crs){SpatialReference|null}

engineExtensions/layer/support/utils.js, line 171

通过L.CRS获取SpatialReference对象

Name Type Description
crs Object

L.CRS对象

Returns:
Type Description
SpatialReference | null SpatialReference对象

getTextByLabelSymbolExpression(textExpressionEx, clusterCount){*}

document/support/ThemeRenderUtil.js, line 117
Name Type Description
textExpressionEx Expression

数值表达式解析器

clusterCount Number
Returns:
Type Description
*

getTileUrl(coords){string}

engineExtensions/layer/ArcGISTileLayer.js, line 61

构造并获取瓦片请求的URL

Name Type Description
coords Object

瓦片行列号对象

Returns:
Type Description
string 瓦片请求的URL

getTileUrl(coords){String}

engineExtensions/layer/IGSImageryTileLayer.js, line 32

构造并获取瓦片请求的URL

Name Type Description
coords Object

瓦片行列号对象

Returns:
Type Description
String 瓦片请求的URL

getTileUrl(coords){String}

engineExtensions/layer/IGSTileLayer.js, line 64

构造并获取瓦片请求的URL

Name Type Description
coords Object

瓦片行列号对象

Returns:
Type Description
String 瓦片请求的URL

getTileUrl(coords)

engineExtensions/layer/support/ArcGISMapServerForTileLayer.js, line 53

重写父类的获取出图地址方法

Name Type Description
coords object

瓦片行列号对象

getTileUrl(coords){String|Object}

engineExtensions/layer/support/IGSImageServerForTileLayer.js, line 62

获取瓦片的请求地址

Name Type Description
coords Object

当前地图中心点

Returns:
Type Description
String | Object 当请求类型为get时返回请求地址,当请求类型为post时返回的时post的请求参数对象

getTileUrl(coords){String|Object}

engineExtensions/layer/support/IGSMapServerForTileLayer.js, line 66

获取瓦片的请求地址

Name Type Description
coords Object

当前地图中心点

Returns:
Type Description
String | Object 当请求类型为get时返回请求地址,当请求类型为post时返回的时post的请求参数对象

getTileUrl(coords){string}

engineExtensions/layer/TileLayerWMS.js, line 36

构造并获取瓦片请求的URL,重写父类的方法

Name Type Description
coords Object

瓦片行列号对象

Returns:
Type Description
string 瓦片请求的URL

getTileUrl(coords){string}

engineExtensions/layer/WebMapTileServiceLayer.js, line 68

构造并获取瓦片请求的URL

Name Type Description
coords Object

瓦片行列号对象

Returns:
Type Description
string 瓦片请求的URL

getTileUrl(coords){String}

engineExtensions/layer/WebTileLayer.js, line 73

构造并获取瓦片请求的URL

Name Type Description
coords Object

瓦片行列号对象

Returns:
Type Description
String 瓦片请求的URL

getValueByValueExpression(){*}

document/support/ThemeRenderUtil.js, line 128
Returns:
Type Description
*

getZoomScale(toZoom, fromZoom){*}

engineExtensions/baseExtend/layer/tile/L.GridLayer.js, line 185
Name Type Description
toZoom *
fromZoom *
Returns:
Type Description
*

initialize(url, options)

engineExtensions/layer/TileLayer.js, line 62

初始化函数

Name Type Description
url String

服务基地址

options Object

额外构造参数

initializeCRS(layer, allLayers){Object}

view/utils/support/utils.js, line 174

使用图层对象来构造Leaflet视图的CRS参数对象

Name Type Description
layer Layer

参考图层,使用其裁图原点、地图范围、级数和分辨率来构造CRS参数对象,支持ArcGISMapImageLayer、ArcGISTileLayer、ArcGISVectorTileLayer、 IGSFeatureLayer、IGSMapImageLayer、IGSTileLayer、MapGISVectorTileLayer、WMSLayer、WMTSLayer、WFSLayer、WebTileLayer

allLayers Array.<Layer>

可选参数,当需要在地图视图中,叠加多个裁图原点相同,裁图方案不同的图层时,可使用此参数,使用多个图层来构配合参考图层构造CRS参数对象

Returns:
Type Description
Object Leaflet视图的CRS参数

onAdd()

engineExtensions/baseExtend/layer/tile/L.GridLayer.js, line 134

leaflet修改说明:GridLayer上支持同空间参考系不同裁图方式瓦片的叠加,因改动范围较大,将内核库内重写的代码全部放置在此注释段内 此部分统改的包含两部分 1、投影关系的改变,采用瓦片独立的像素系 map.project => this.project map.unproject => this.unproject 2、视图zoom层级的改变,把触发视图刷新入口的地图zoom换算成当前zoom this._toMapZoom this._toTileZoom 修改人:赵凯 2024年5月17日 ------------------------- 同空间参考系不同裁图方式扩展 ------------------------------

onAdd(map)

engineExtensions/layer/TileLayer.js, line 82

图层添加事件

Name Type Description
map L.map

leaflet地图视图对象

onRemove(){*}

engineExtensions/layer/TileLayer.js, line 147

图层移除事件

Returns:
Type Description
*

project(latlng, zoom){*}

engineExtensions/baseExtend/layer/tile/L.GridLayer.js, line 197
Name Type Description
latlng *
zoom *
Returns:
Type Description
*

refreshClusters(layers){L.MarkerClusterGroup}

engineExtensions/layer/support/markerclusterUtils.js, line 4069

Updates the icon of all clusters which are parents of the given marker(s). In singleMarkerMode, also updates the given marker(s) icon.

Name Type Description
layers

L.MarkerClusterGroup|L.LayerGroup|Array(L.Marker)|Map(L.Marker)| L.MarkerCluster|L.Marker (optional) list of markers (or single marker) whose parent clusters need to be updated. If not provided, retrieves all child markers of this.

Returns:
Type Description
L.MarkerClusterGroup

refreshIconOptions(options, directlyRefreshClusters){L.Marker}

engineExtensions/layer/support/markerclusterUtils.js, line 4146

Updates the given options in the marker's icon and refreshes the marker.

Name Type Description
options

map object of icon options.

directlyRefreshClusters

boolean (optional) true to trigger MCG.refreshClustersOf() right away with this single marker.

Returns:
Type Description
L.Marker

setClippingArea(图层空间裁剪区域,需要传入geojson对象。仅支持多多边形裁剪、多边形裁剪。){*}

engineExtensions/layer/MapLayer.js, line 411
Name Type Description
图层空间裁剪区域,需要传入geojson对象。仅支持多多边形裁剪、多边形裁剪。 Object
Returns:
Type Description
*

setClippingArea(图层空间裁剪区域,需要传入geojson对象。仅支持多多边形裁剪、多边形裁剪。){*}

engineExtensions/layer/TileLayer.js, line 163
Name Type Description
图层空间裁剪区域,需要传入geojson对象。仅支持多多边形裁剪、多边形裁剪。 Object
Returns:
Type Description
*

setVisible(visible){*}

engineExtensions/layer/MapLayer.js, line 213
Name Type Description
visible Boolean

图层是否可见

Returns:
Type Description
*

setZIndex(index){*}

engineExtensions/layer/MapLayer.js, line 231
Name Type Description
index Number
Returns:
Type Description
*

unproject(point, zoom){*}

engineExtensions/baseExtend/layer/tile/L.GridLayer.js, line 208
Name Type Description
point *
zoom *
Returns:
Type Description
*

wrapLatLngBounds(latlng){*}

engineExtensions/baseExtend/layer/tile/L.GridLayer.js, line 378
Name Type Description
latlng *
Returns:
Type Description
*

Type Definitions

complete(result)

Widget/Draw/DrawControl.js, line 74

绘制完成的回调函数

Name Type Description
result Object

回调参数

Name Type Description
type String 可选

几何类型

feature Feature 可选

绘制完成后返回的要素对象

drawConfig Object 可选

绘制配置