diff --git a/reference.html b/reference.html index 07b0a6ae..f61d14fe 100644 --- a/reference.html +++ b/reference.html @@ -1229,6 +1229,16 @@ var map = L.map('map', { Event Fired when the marker is removed from the map. + + popupopen + PopupEvent + Fired when a popup bound to the marker is open. + + + popupclose + PopupEvent + Fired when a popup bound to the marker is closed. +

Methods

@@ -1314,6 +1324,11 @@ var map = L.map('map', { this Closes the bound popup of the marker if it's opened. + + togglePopup() + this + Toggles the popup previously bound by the bindPopup method. + setPopupContent( <String> html | <HTMLElement> el, @@ -1421,6 +1436,12 @@ var map = L.map('map', { true Set it to false if you don't want the map to do panning animation to fit the opened popup. + + keepInView + Boolean + false + Set it to true if you want to prevent users from panning the popup off of the screen while it is open. + closeButton Boolean @@ -1447,6 +1468,12 @@ var map = L.map('map', { true Whether to animate the popup on zoom. Disable it if you have problems with Flash content inside popups. + + closeOnClick + Boolean + null + Set it to false if you want to override the default behavior of the popup closing when user clicks the map (set globally by the Map closePopupOnClick option). +

Methods

@@ -1741,7 +1768,7 @@ var map = L.map('map', { getContainer() - this + HTMLElement Returns the HTML element that contains the tiles for this layer. @@ -1825,6 +1852,12 @@ var map = L.map('map', { '1.1.1' Version of the WMS service to use. + + crs + CRS + null + Coordinate Reference System to use for the WMS requests, defaults to map CRS. Don't change this if you're not sure what it means. +

Methods

@@ -2130,6 +2163,16 @@ L.imageOverlay(imageUrl, imageBounds).addTo(map);
Event Fired when the path is removed from the map. + + popupopen + PopupEvent + Fired when a popup bound to the path is open. + + + popupclose + PopupEvent + Fired when a popup bound to the path is closed. +

Methods

@@ -3048,6 +3091,13 @@ map.fitBounds(bounds); Function that will be used to decide whether to show a feature or not. + + coordsToLatLng( + <Array> coords ) + + + Function that will be used for converting GeoJSON coordinates to LatLng points (if not specified, coords will be assumed to be WGS84 — standard [longitude, latitude] values in degrees). + @@ -3929,6 +3979,11 @@ map.addControl(control); this Removes the control from the map. + + getContainer() + HTMLElement + Returns the HTML container of the control. +

Control Positions

@@ -4195,7 +4250,7 @@ L.control.layers(baseLayers, overlays).addTo(map);

Events

-

You can subscribe to the following events on the map object using these methods.

+

You can subscribe to the following events on the Map object using these methods.

@@ -4205,17 +4260,17 @@ L.control.layers(baseLayers, overlays).addTo(map); - - -
baselayerchangeLayerEvent + LayersControlEvent Fired when the base layer is changed through the control.
overlayaddLayerEvent + LayersControlEvent Fired when an overlay is selected through the control.
overlayremoveLayerEvent + LayersControlEvent Fired when an overlay is deselected through the control.
@@ -4565,6 +4620,26 @@ map.off('click', onClick); +

LayersControlEvent

+ + + + + + + + + + + + + + + + + +
propertytypedescription
layerILayerThe layer that was added or removed.
layerILayerThe name of the layer that was added or removed.
+

TileEvent