类名 Global

成员变量

# constant divOverlayProto

L.DivOverlay

查看源代码 util/extend/layer/DivOverlay.js, line 6

# constant domUtilProto

L.DomUtil

查看源代码 util/extend/dom/L.DomUtil.js, line 6

# constant gridLayerProto

L.GridLayer

查看源代码 util/extend/layer/tile/L.GridLayer.js, line 6

# constant popupProto

L.Popup

查看源代码 util/extend/layer/Popup.js, line 6

# constant rendererProto

L.Renderer

查看源代码 util/extend/layer/vector/L.Renderer.js, line 6

# constant tooltipProto

L.Tooltip

查看源代码 util/extend/layer/Tooltip.js, line 6

方法

# _calcRotateOffset()

查看源代码 document/support/mapbox/leafletMapbox.js, line 228

*

# _clearClippingCache()

查看源代码 util/extend/layer/tile/L.TileLayer.Clip.js, line 168

*

# _drawClippingTile(url, coords, done)

参数:

名称 类型 描述
url *
coords *
done *

查看源代码 util/extend/layer/tile/L.TileLayer.Clip.js, line 181

*

# _getClippingAreaPx()

计算裁剪区像素坐标几何以及更新其四至

查看源代码 util/extend/layer/tile/L.TileLayer.Clip.js, line 149

合并后的点集

Object | null

# _getTileGeometryAndState(x, y, z)

参数:

名称 类型 描述
x *
y *
z *

查看源代码 util/extend/layer/tile/L.TileLayer.Clip.js, line 48

*

# _toMercGeometry(polygon)

获取合并后的点集

参数:

名称 类型 描述
polygon Array.<Array.<Array.<Number>>>

查看源代码 util/extend/layer/tile/L.TileLayer.Clip.js, line 129

计算像素坐标系点

Array.<Array.<Array.<Number>>>

# convertFeature(feature)

转换要素为几何图形

参数:

名称 类型 描述
feature Feature

查看源代码 util/convertFeatureToLeafletGraphicUtil.js, line 244

*

# createGraphic(type, coords, style)

根据类型创建marker

参数:

名称 类型 描述
type *
coords *
style *

查看源代码 util/convertFeatureToLeafletGraphicUtil.js, line 25

*

# fixPosition()

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

查看源代码 view/utils/mapV/MapVLayerPlugin.js, line 227

# getBounds(layer)

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

参数:

名称 类型 描述
layer Object

基础图层对象

查看源代码 view/utils/support/utils.js, line 9

leaflet的范围对象

Object

# getClippingArea()

查看源代码 util/extend/layer/tile/L.TileLayer.Clip.js, line 38

*

# getMapRotateBounds(leafletMap)

参数:

名称 类型 描述
leafletMap *

查看源代码 view/utils/support/utils.js, line 56

*

# refreshClusters(layers)

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

参数:

名称 类型 描述
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.

查看源代码 util/extend/layer/marker/L.markercluster.js, line 2626

L.MarkerClusterGroup

# refreshIconOptions(options, directlyRefreshClusters)

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

参数:

名称 类型 描述
options

map object of icon options.

directlyRefreshClusters

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

查看源代码 util/extend/layer/marker/L.markercluster.js, line 2701

L.Marker

# setClippingArea(data)

参数:

名称 类型 描述
data *

查看源代码 util/extend/layer/tile/L.TileLayer.Clip.js, line 28

*

类型定义

# complete(result)

绘制完成的回调函数

参数:

名称 类型 描述
result Object

回调参数

type String

几何类型

feature Feature

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

drawConfig Object

绘制配置

查看源代码 Widget/Draw/DrawControl.js, line 72

构造函数
成员变量
方法
事件