diff --git a/reference-1.7.1.html b/reference-1.7.1.html index 85d2f43..a8df606 100644 --- a/reference-1.7.1.html +++ b/reference-1.7.1.html @@ -3676,7 +3676,7 @@

Options 选项

attribution String null - 要在属性控件中显示的字符串,例如:"© OpenStreetMap contributors"。它描述了图层数据,并且通常是对版权所有者和瓦片提供商的法律义务。 + 在属性控件中显示的字符串,例如:"© OpenStreetMap contributors"。它描述了图层数据,并且通常是对版权所有者和瓦片提供商的法律义务。 @@ -23008,7 +23008,7 @@

Event 事件

sourceTarget Object - 最初触发事件的对象。 对于非传播事件,这将与 target相同。 + 最初触发事件的对象。 对于非传播事件,这将与 target 相同。 propagatedFrom @@ -23019,7 +23019,7 @@

Event 事件

layer Object - 废弃的。propagatedFrom相同。 + 废弃的。propagatedFrom 相同。 @@ -23054,7 +23054,7 @@

KeyboardEvent 键盘事件

- +
@@ -23064,37 +23064,34 @@

KeyboardEvent 键盘事件

- - + + - + - + - + - + - +
PropertyTypeDescription类型说明
type StringThe event type (e.g. 'click').事件类型(例如,'click')。
target ObjectThe object that fired the event. For propagated events, the last object in -the propagation chain that fired the event.触发事件的对象。对于传播事件,传播链中触发事件的最后一个对象。
sourceTarget ObjectThe object that originally fired the event. For non-propagated events, this will -be the same as the target.最初触发该事件的对象。对于非传播的事件,这将与 target 相同。
propagatedFrom ObjectFor propagated events, the last object that propagated the event to its -event parent.对于传播的事件,将事件传播到其事件父级的最后一个对象。
layer ObjectDeprecated. The same as propagatedFrom.已弃用。propagatedFrom 相同。
@@ -23145,7 +23142,7 @@

MouseEvent 鼠标事件

- +
@@ -23155,37 +23152,35 @@

MouseEvent 鼠标事件

- - + + - + - + - + - + - +
PropertyTypeDescription类型说明
type StringThe event type (e.g. 'click').事件类型(例如,'click')。
target ObjectThe object that fired the event. For propagated events, the last object in -the propagation chain that fired the event.触发事件的对象。对于传播事件,传播链中触发事件的最后一个对象。
sourceTarget ObjectThe object that originally fired the event. For non-propagated events, this will -be the same as the target.最初触发该事件的对象。对于非传播的事件,这将 + 与 target 相同。
propagatedFrom ObjectFor propagated events, the last object that propagated the event to its -event parent.对于传播的事件,将事件传播到其事件父级的最后一个对象。
layer ObjectDeprecated. The same as propagatedFrom.已弃用。propagatedFrom 相同。
@@ -23256,7 +23251,7 @@

LocationEvent 位置事件

- +
@@ -23266,37 +23261,35 @@

LocationEvent 位置事件

- - + + - + - + - + - + - +
PropertyTypeDescription类型说明
type StringThe event type (e.g. 'click').事件类型(例如,'click')。
target ObjectThe object that fired the event. For propagated events, the last object in -the propagation chain that fired the event.触发事件的对象。对于传播事件,传播链中触发事件的最后一个对象。
sourceTarget ObjectThe object that originally fired the event. For non-propagated events, this will -be the same as the target.最初触发该事件的对象。对于非传播的事件,这将 + 与 target 相同。
propagatedFrom ObjectFor propagated events, the last object that propagated the event to its -event parent.对于传播的事件,将事件传播到其事件父级的最后一个对象。
layer ObjectDeprecated. The same as propagatedFrom.已弃用。propagatedFrom 相同。
@@ -23337,7 +23330,7 @@

ErrorEvent 错误事件

- +
@@ -23347,37 +23340,35 @@

ErrorEvent 错误事件

- - + + - + - + - + - + - +
PropertyTypeDescription类型说明
type StringThe event type (e.g. 'click').事件类型(例如,'click')。
target ObjectThe object that fired the event. For propagated events, the last object in -the propagation chain that fired the event.触发事件的对象。对于传播事件,传播链中触发事件的最后一个对象。
sourceTarget ObjectThe object that originally fired the event. For non-propagated events, this will -be the same as the target.最初触发该事件的对象。对于非传播的事件,这将 + 与 target 相同。
propagatedFrom ObjectFor propagated events, the last object that propagated the event to its -event parent.对于传播的事件,将事件传播到其事件父级的最后一个对象。
layer ObjectDeprecated. The same as propagatedFrom.已弃用。propagatedFrom 相同。
@@ -23413,7 +23404,7 @@

图层事件

- +
@@ -23423,32 +23414,30 @@

图层事件

- - + + - + - + - + - +
PropertyTypeDescription类型说明
type StringThe event type (e.g. 'click').事件类型(例如,'click')。
target ObjectThe object that fired the event. For propagated events, the last object in -the propagation chain that fired the event.触发事件的对象。对于传播事件,传播链中触发事件的最后一个对象。
sourceTarget ObjectThe object that originally fired the event. For non-propagated events, this will -be the same as the target.最初触发该事件的对象。对于非传播的事件,这将 + 与 target 相同。
propagatedFrom ObjectFor propagated events, the last object that propagated the event to its -event parent.对于传播的事件,将事件传播到其事件父级的最后一个对象。
@@ -23489,7 +23478,7 @@

LayersControlEvent 图层控制事件

- +
@@ -23499,32 +23488,29 @@

LayersControlEvent 图层控制事件

- - + + - + - + - + - +
PropertyTypeDescription类型说明
type StringThe event type (e.g. 'click').事件类型(例如,'click')。
target ObjectThe object that fired the event. For propagated events, the last object in -the propagation chain that fired the event.触发事件的对象。对于传播事件,传播链中触发事件的最后一个对象。
sourceTarget ObjectThe object that originally fired the event. For non-propagated events, this will -be the same as the target.最初触发该事件的对象。对于非传播的事件,这将与 target 相同。
propagatedFrom ObjectFor propagated events, the last object that propagated the event to its -event parent.对于传播的事件,将事件传播到其事件父级的最后一个对象。
@@ -23565,7 +23551,7 @@

TileEvent 瓦片事件

- +
@@ -23575,37 +23561,34 @@

TileEvent 瓦片事件

- - + + - + - + - + - + - +
PropertyTypeDescription类型说明
type StringThe event type (e.g. 'click').事件类型(例如,'click')。
target ObjectThe object that fired the event. For propagated events, the last object in -the propagation chain that fired the event.触发事件的对象。对于传播事件,传播链中触发事件的最后一个对象。
sourceTarget ObjectThe object that originally fired the event. For non-propagated events, this will -be the same as the target.最初触发该事件的对象。对于非传播的事件,这将与 target 相同。
propagatedFrom ObjectFor propagated events, the last object that propagated the event to its -event parent.对于传播的事件,将事件传播到其事件父级的最后一个对象。
layer ObjectDeprecated. The same as propagatedFrom.已弃用。propagatedFrom 相同。
@@ -23651,7 +23634,7 @@

TileErrorEvent 瓦片错误事件

- +
@@ -23661,37 +23644,34 @@

TileErrorEvent 瓦片错误事件

- - + + - + - + - + - + - +
PropertyTypeDescription类型说明
type StringThe event type (e.g. 'click').事件类型(例如,'click')。
target ObjectThe object that fired the event. For propagated events, the last object in -the propagation chain that fired the event.触发事件的对象。对于传播事件,传播链中触发事件的最后一个对象。
sourceTarget ObjectThe object that originally fired the event. For non-propagated events, this will -be the same as the target.最初触发该事件的对象。对于非传播的事件,这将与 target 相同。
propagatedFrom ObjectFor propagated events, the last object that propagated the event to its -event parent.对于传播的事件,将事件传播到其事件父级的最后一个对象。
layer ObjectDeprecated. The same as propagatedFrom.已弃用。propagatedFrom 相同。
@@ -23732,7 +23712,7 @@

ResizeEvent 调整尺寸事件

- +
@@ -23742,37 +23722,34 @@

ResizeEvent 调整尺寸事件

- - + + - + - + - + - + - +
PropertyTypeDescription类型说明
type StringThe event type (e.g. 'click').事件类型(例如,'click')。
target ObjectThe object that fired the event. For propagated events, the last object in -the propagation chain that fired the event.触发事件的对象。对于传播事件,传播链中触发事件的最后一个对象。
sourceTarget ObjectThe object that originally fired the event. For non-propagated events, this will -be the same as the target.最初触发该事件的对象。对于非传播的事件,这将与 target 相同。
propagatedFrom ObjectFor propagated events, the last object that propagated the event to its -event parent.对于传播的事件,将事件传播到其事件父级的最后一个对象。
layer ObjectDeprecated. The same as propagatedFrom.已弃用。propagatedFrom 相同。
@@ -23823,7 +23800,7 @@

GeoJSONEvent GeoJSON事件

- +
@@ -23833,32 +23810,29 @@

GeoJSONEvent GeoJSON事件

- - + + - + - + - + - +
PropertyTypeDescription类型说明
type StringThe event type (e.g. 'click').事件类型(例如,'click')。
target ObjectThe object that fired the event. For propagated events, the last object in -the propagation chain that fired the event.触发事件的对象。对于传播事件,传播链中触发事件的最后一个对象。
sourceTarget ObjectThe object that originally fired the event. For non-propagated events, this will -be the same as the target.最初触发该事件的对象。对于非传播的事件,这将与 target 相同。
propagatedFrom ObjectFor propagated events, the last object that propagated the event to its -event parent.对于传播的事件,将事件传播到其事件父级的最后一个对象。
@@ -23894,7 +23868,7 @@

PopupEvent 弹窗事件

- +
@@ -23904,37 +23878,34 @@

PopupEvent 弹窗事件

- - + + - + - + - + - + - +
PropertyTypeDescription类型说明
type StringThe event type (e.g. 'click').事件类型(例如,'click')。
target ObjectThe object that fired the event. For propagated events, the last object in -the propagation chain that fired the event.触发事件的对象。对于传播事件,传播链中触发事件的最后一个对象。
sourceTarget ObjectThe object that originally fired the event. For non-propagated events, this will -be the same as the target.最初触发该事件的对象。对于非传播的事件,这将与 target 相同。
propagatedFrom ObjectFor propagated events, the last object that propagated the event to its -event parent.对于传播的事件,将事件传播到其事件父级的最后一个对象。
layer ObjectDeprecated. The same as propagatedFrom.已弃用。propagatedFrom 相同。
@@ -23970,7 +23941,7 @@

TooltipEvent 工具提示事件

- +
@@ -23980,37 +23951,34 @@

TooltipEvent 工具提示事件

- - + + - + - + - + - + - +
PropertyTypeDescription类型说明
type StringThe event type (e.g. 'click').事件类型(例如,'click')。
target ObjectThe object that fired the event. For propagated events, the last object in -the propagation chain that fired the event.触发事件的对象。对于传播事件,传播链中触发事件的最后一个对象。
sourceTarget ObjectThe object that originally fired the event. For non-propagated events, this will -be the same as the target.最初触发该事件的对象。对于非传播的事件,这将与 target 相同。
propagatedFrom ObjectFor propagated events, the last object that propagated the event to its -event parent.对于传播的事件,将事件传播到其事件父级的最后一个对象。
layer ObjectDeprecated. The same as propagatedFrom.已弃用。propagatedFrom 相同。
@@ -24046,7 +24014,7 @@

DragEndEvent 拖动结束事件

- +
@@ -24056,37 +24024,34 @@

DragEndEvent 拖动结束事件

- - + + - + - + - + - + - +
PropertyTypeDescription类型说明
type StringThe event type (e.g. 'click').事件类型(例如,'click')。
target ObjectThe object that fired the event. For propagated events, the last object in -the propagation chain that fired the event.触发事件的对象。对于传播事件,传播链中触发事件的最后一个对象。
sourceTarget ObjectThe object that originally fired the event. For non-propagated events, this will -be the same as the target.最初触发该事件的对象。对于非传播的事件,这将与 target 相同。
propagatedFrom ObjectFor propagated events, the last object that propagated the event to its -event parent.对于传播的事件,将事件传播到其事件父级的最后一个对象。
layer ObjectDeprecated. The same as propagatedFrom.已弃用。propagatedFrom 相同。
@@ -24132,7 +24097,7 @@

ZoomAnimEvent 缩放动画事件

- +
@@ -24142,37 +24107,34 @@

ZoomAnimEvent 缩放动画事件

- - + + - + - + - + - + - +
PropertyTypeDescription类型说明
type StringThe event type (e.g. 'click').事件类型(例如,'click')。
target ObjectThe object that fired the event. For propagated events, the last object in -the propagation chain that fired the event.触发事件的对象。对于传播事件,传播链中触发事件的最后一个对象。
sourceTarget ObjectThe object that originally fired the event. For non-propagated events, this will -be the same as the target.最初触发该事件的对象。对于非传播的事件,这将与 target 相同。
propagatedFrom ObjectFor propagated events, the last object that propagated the event to its -event parent.对于传播的事件,将事件传播到其事件父级的最后一个对象。
layer ObjectDeprecated. The same as propagatedFrom.已弃用。propagatedFrom 相同。
@@ -24222,7 +24184,7 @@

Options 选项

- +
@@ -24231,17 +24193,17 @@

Options 选项

- - - - + + + + - +
OptionTypeDefaultDescription选项类型默认描述
attribution String nullString to be shown in the attribution control, e.g. "© OpenStreetMap contributors". It describes the layer data and is often a legal obligation towards copyright holders and tile providers.在属性控件中显示的字符串,例如:"© OpenStreetMap contributors"。它描述了图层数据,并且通常是对版权所有者和瓦片提供商的法律义务。
@@ -24256,7 +24218,7 @@

Events

- +
@@ -24265,20 +24227,20 @@

Events

- - - + + + - + - +
EventDataDescription事件数据说明
add EventFired after the layer is added to a map在图层添加到地图后触发
remove EventFired after the layer is removed from a map从地图中移除图层后触发
@@ -24287,7 +24249,7 @@

Events

- +
@@ -24296,20 +24258,20 @@

Events

- - - + + + - + - +
EventDataDescription事件数据说明
popupopen PopupEventFired when a popup bound to this layer is opened当绑定到该层的弹出窗口(popup)打开时触发
popupclose PopupEventFired when a popup bound to this layer is closed当绑定到该层的弹出窗口(popup)关闭时触发
@@ -24318,7 +24280,7 @@

Events

- +
@@ -24327,20 +24289,20 @@

Events

- - - + + + - + - +
EventDataDescription事件数据说明
tooltipopen TooltipEventFired when a tooltip bound to this layer is opened.当绑定到该层的工具提示(tooltip)打开时触发。
tooltipclose TooltipEventFired when a tooltip bound to this layer is closed.当绑定到该层的工具提示(tooltip)关闭时触发。
@@ -24355,7 +24317,7 @@

Methods

- +
@@ -24364,45 +24326,45 @@

Methods

- - - + + + - - - - - -
MethodReturnsDescription方法返回值说明
addTo(<Map|LayerGroup> map) this

Adds the layer to the given map or layer group.

+

将图层添加到指定的地图或图层组(LayerGroup)。

remove() this

Removes the layer from the map it is currently active on.

+

从当前处于活动状态的地图中删除图层。

removeFrom(<Map> map) this

Removes the layer from the given map

+

从指定的地图中删除图层

removeFrom(<LayerGroup> group) this

Removes the layer from the given LayerGroup

+

从指定的LayerGroup中删除该图层。

getPane(<String> name?) HTMLElement

Returns the HTMLElement representing the named pane on the map. If name is omitted, returns the pane for this layer.

+

返回代表地图上指定窗格的 HTMLElement。如果 name 被省略,则返回该层的窗格。

getAttribution() String

Used by the attribution control, returns the attribution option.

+

attribution控件 使用,返回 attribution 选项

@@ -24412,7 +24374,7 @@

Methods

- +
@@ -24421,59 +24383,57 @@

Methods

- - - + + + - - - - - - - -
MethodReturnsDescription方法返回值说明
bindPopup(<String|HTMLElement|Function|Popup> content, <Popup options> options?) this

Binds a popup to the layer with the passed content and sets up the -necessary event listeners. If a Function is passed it will receive -the layer as the first argument and should return a String or HTMLElement.

+

将一个弹出式窗口与传入的 content 层绑定,并设置必要的事件监听器。如果 Function 被传递,它将接收图层作为第一个参数,并应返回 StringHTMLElement

unbindPopup() this

Removes the popup previously bound with bindPopup.

+
移除之前用 bindPopup 绑定的弹出窗口。

openPopup(<LatLng> latlng?) this

Opens the bound popup at the specified latlng or at the default popup anchor if no latlng is passed.

+

在指定的 latlng 处打开绑定的弹出窗口,如果没有设置 latlng,则在默认的位置打开弹窗(popup)。

closePopup() this

Closes the popup bound to this layer if it is open.

+

如果与当前图层绑定的弹窗(popup)时打开的,则关闭当前弹窗。

togglePopup() this

Opens or closes the popup bound to this layer depending on its current state.

+

根据当前状态,打开或关闭与该层绑定的弹出窗口。

isPopupOpen() boolean

Returns true if the popup bound to this layer is currently open.

+

如果与该层绑定的弹出窗口当前已打开,则返回 true

setPopupContent(<String|HTMLElement|Popup> content) this

Sets the content of the popup bound to this layer.

+

设置绑定到该图层的弹出窗口的内容。

getPopup() Popup

Returns the popup bound to this layer.

+

返回绑定到该图层的弹出窗口。

@@ -24483,7 +24443,7 @@

Methods

- +
@@ -24492,59 +24452,57 @@

Methods

- - - + + + - - - - - - - -
MethodReturnsDescription方法返回值描述
bindTooltip(<String|HTMLElement|Function|Tooltip> content, <Tooltip options> options?) this

Binds a tooltip to the layer with the passed content and sets up the -necessary event listeners. If a Function is passed it will receive -the layer as the first argument and should return a String or HTMLElement.

+

将工具提示(tooltip)绑定到传入的图层 content 并设置必要的事件侦听器。如果一个 Function 被传递,它将接收图层作为第一个参数,并应返回 StringHTMLElement

unbindTooltip() this

Removes the tooltip previously bound with bindTooltip.

+

移除之前用 bindTooltip 绑定的工具提示(tooltip)。

openTooltip(<LatLng> latlng?) this

Opens the bound tooltip at the specified latlng or at the default tooltip anchor if no latlng is passed.

+

在指定的 latlng 处打开绑定的工具提示(tooltip),如果没有指定 latlng,则在默认的锚点打开工具提示(tooltip)。

closeTooltip() this

Closes the tooltip bound to this layer if it is open.

+

如果该图层处于打开状态,则关闭绑定到该图层的工具提示。

toggleTooltip() this

Opens or closes the tooltip bound to this layer depending on its current state.

+

根据当前状态打开或关闭绑定到该图层的工具提示。

isTooltipOpen() boolean

Returns true if the tooltip bound to this layer is currently open.

+

如果该层绑定的工具提示当前已打开,则返回 true

setTooltipContent(<String|HTMLElement|Tooltip> content) this

Sets the content of the tooltip bound to this layer.

+

设置绑定到该层的工具提示的内容。

getTooltip() Tooltip

Returns the tooltip bound to this layer.

+

返回绑定到该层的工具提示。

@@ -24554,7 +24512,7 @@

Methods

- +
@@ -24563,107 +24521,105 @@

Methods

- - - + + + - - - - - - - - - - - - - - - -
MethodReturnsDescription方法返回值说明
on(<String> type, <Function> fn, <Object> context?) this

Adds a listener function (fn) to a particular event type of the object. You can optionally specify the context of the listener (object the this keyword will point to). You can also pass several space-separated types (e.g. 'click dblclick').

+

为对象的特定事件类型添加一个监听函数(fn)。你可以选择性地指定监听器的上下文(这个关键字将指向的对象)。你也可以传递几个空格分隔的类型(例如,'click dblclick')。

on(<Object> eventMap) this

Adds a set of type/listener pairs, e.g. {click: onClick, mousemove: onMouseMove}

+

添加一组类型/侦听器对,例如 {click: onClick, mousemove: onMouseMove}

off(<String> type, <Function> fn?, <Object> context?) this

Removes a previously added listener function. If no function is specified, it will remove all the listeners of that particular event from the object. Note that if you passed a custom context to on, you must pass the same context to off in order to remove the listener.

+

移除一个先前添加的监听器函数。如果没有指定函数,它将从对象中删除该特定事件的所有监听器。请注意,如果您向 on 传递了一个自定义的上下文,您必须向 off 传递相同的上下文,以便删除监听器。

off(<Object> eventMap) this

Removes a set of type/listener pairs.

+

删除一组类型/侦听器

off() this

Removes all listeners to all events on the object. This includes implicitly attached events.

+

移除该对象上所有事件的所有监听器。这包括隐含的附加事件。

fire(<String> type, <Object> data?, <Boolean> propagate?) this

Fires an event of the specified type. You can optionally provide an data -object — the first argument of the listener function will contain its -properties. The event can optionally be propagated to event parents.

+

触发指定类型的事件。您可以选择提供一个数据对象——侦听器函数的第一个参数将包含其属性,事件可以选择性地传播到事件父级。

listens(<String> type) Boolean

Returns true if a particular event type has any listeners attached to it.

+

如果一个特定的事件类型有任何监听器连接到它,则返回 true

once() this

Behaves as on(…), except the listener will only get fired once and then removed.

+

on(...)的行为一样,不过监听器只会被触发一次后然后被删除。

addEventParent(<Evented> obj) this

Adds an event parent - an Evented that will receive propagated events

+

向父级 Evented 添加事件

removeEventParent(<Evented> obj) this

Removes an event parent, so it will stop receiving propagated events

+

删除之前向父级 Evented 添加的事件

addEventListener() this

Alias to on(…)

+

on(…)

removeEventListener() this

Alias to off(…)

+

off(…)

clearAllEventListeners() this

Alias to off()

+

off()

addOneTimeEventListener() this

Alias to once(…)

+

once(…)

fireEvent() this

Alias to fire(…)

+

fire(…)

hasEventListeners() Boolean

Alias to listens(…)

+

listens(…)