diff --git a/reference.html b/reference.html index cebdd048..07b0a6ae 100644 --- a/reference.html +++ b/reference.html @@ -1292,7 +1292,7 @@ var map = L.map('map', {
bindPopup(
- <String> htmlContent,
+ <String> html | <HTMLElement> el | <Popup> popup,
<Popup options> options? )
this
setPopupContent(
+ <String> html | <HTMLElement> el,
+ <Popup options> options? )
+
this
toGeoJSON()
Object
{s}
means one of the available subdomains (used sequentially to help with browser parallel requests per domain limitation; subdomain values are specified in options; a
, b
or c
by default, can be omitted), {z}
— zoom level, {x}
and {y}
— tile coordinates.
You can use custom keys in the template, which will be evaluated from TileLayer options, like this:
+You can use custom keys in the template, which will be evaluated from TileLayer options, like this:
L.tileLayer('http://{s}.somedomain.com/{foo}/{z}/{x}/{y}.png', {foo: 'bar'});
@@ -1729,6 +1738,12 @@ var map = L.map('map', {
this
getContainer()
+
this
true
false
, the vector will not emit mouse events and will act as a part of the underlying map.pointerEvents
String
null
pointer-events
attribute on the path if SVG backend is used.bindPopup(
- <String> htmlContent ,
+ <String> html | <HTMLElement> el | <Popup> popup,
<Popup options> options? )
this
bindPopup(
+ <Popup> popup ,
+ <Popup options> options? )
+
this
unbindPopup()
this
String
{a: "foo", b: "bar"}
'?a=foo&b=bar'
.template(
<String> str, <Object> data )
String
data
object of a form {a: 'foo', b: 'bar', …}
to a template string of the form 'Hello {a}, {b}'
— in this example you will get 'Hello foo, bar'
.'Hello {a}, {b}'
and a data object like {a: 'foo', b: 'bar'}
, returns evaluated string ('Hello foo, bar'
). You can also specify functions instead of strings for data values — they will be evaluated passing data
as an argument.isArray(