diff --git a/reference.html b/reference.html index 57eac7c5..ee394994 100644 --- a/reference.html +++ b/reference.html @@ -5224,25 +5224,46 @@ Popups will also be automatically opened when the layer is clicked on and closed
addListener(
+ on(
<HTMLElement> el ,
- <String> type ,
+ <String> types ,
<Function> fn ,
<Object> context? )
this
- Adds a listener fn
to the element's DOM event of the specified type. this
keyword inside the listener will point to context
, or to the element if not specified.
+ Adds a listener fn
to the element's DOM events. types
is a space-separated list of DOM event types to listen to. this
keyword inside the listener will point to context
, or to the element if not specified.
removeListener(
+ addListener(
<HTMLElement> el ,
- <String> type ,
+ <String> types ,
+ <Function> fn ,
+ <Object> context? )
+
+
+ this
+ Alias for DomEvent.on.
+
off(
+ <HTMLElement> el ,
+ <String> types ,
<Function> fn )
this
fn
from the element, for the DOM event types in types
(a space-separated list). fn must be equal to the function currently listening to the event for it to be removed.removeListener(
+ <HTMLElement> el ,
+ <String> types ,
+ <Function> fn )
+
this
stopPropagation(
@@ -5344,6 +5365,20 @@ Popups will also be automatically opened when the layer is clicked on and closed
Creates an element with tagName
, sets the className
, and optionally appends it to container
element.
remove(
+ <HTMLElement> el )
+
el
from its parent element.empty(
+ <HTMLElement> el )
+
el
's children elements from el
.disableTextSelection()
false
. Useful for vendor-prefixed styles like transform
.getTranslateString(
- <Point> point )
+ setTransform(
+ <HTMLElement> el ,
+ <Point> offset ,
+ <Number> scale? )
-
- String
- Returns a CSS transform string to move an element by the offset provided in the given point. Uses 3D translate on WebKit for hardware-accelerated transforms and 2D on other browsers.
-
getScaleString(
- <Number> scale ,
- <Point> origin )
-
String
el
so it is translated by offset
and optionally scaled by scale
. Does not have an effect if the browser doesn't support 3D CSS transforms.setPosition(
<HTMLElement> el ,
- <Point> point ,
- <Boolean> disable3D? )
+ <Point> point )
point
, using CSS translate or top/left positioning depending on the browser (used by Leaflet internally to position its layers). Forces top/left positioning if disable3D
is true
.point
, using CSS translate or top/left positioning depending on the browser (used by Leaflet internally to position its layers).getPosition(