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? ) @@ -1314,6 +1314,15 @@ var map = L.map('map', { this Closes the bound popup of the marker if it's opened. + + setPopupContent( + <String> html | <HTMLElement> el, + <Popup options> options? ) + + + this + Binds a popup with a particular HTML content to a click on this marker. You can also open the bound popup with the Marker openPopup method. + toGeoJSON() Object @@ -1526,7 +1535,7 @@ var map = L.map('map', {

{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 Updates the layer's URL template and redraws it. + + getContainer() + + this + Returns the HTML element that contains the tiles for this layer. + @@ -2057,6 +2072,12 @@ L.imageOverlay(imageUrl, imageBounds).addTo(map); true If false, the vector will not emit mouse events and will act as a part of the underlying map. + + pointerEvents + String + null + Sets the pointer-events attribute on the path if SVG backend is used. +

Events

@@ -2128,13 +2149,22 @@ L.imageOverlay(imageUrl, imageBounds).addTo(map); bindPopup( - <String> htmlContent, + <String> html | <HTMLElement> el | <Popup> popup, <Popup options> options? ) this Binds a popup with a particular HTML content to a click on this path. + + bindPopup( + <Popup> popup, + <Popup options> options? ) + + + this + Binds a given popup object to the path. + unbindPopup() this @@ -4949,13 +4979,13 @@ L.map('map'); String Converts an object into a parameter URL string, e.g. {a: "foo", b: "bar"} translates to '?a=foo&b=bar'. - + template( <String> str, <Object> data ) String - Simple templating facility, creates a string by applying the values of the 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'. + Simple templating facility, accepts a template string of the form '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(