diff --git a/reference.html b/reference.html index fae3b197..aef5bee8 100644 --- a/reference.html +++ b/reference.html @@ -886,7 +886,7 @@ var map = L.map('map', { openPopup( - <String> html | <HTMLElement> el, + <String> html | <HTMLElement> el, <LatLng> latlng, <Popup options> options? ) @@ -917,6 +917,7 @@ var map = L.map('map', { this Removes the given control from the map. + getRenderer( <Layer> layer) @@ -1059,16 +1060,16 @@ var map = L.map('map', { createPane( - <String> name, <HTMLElement> contianer? + <String> name, <HTMLElement> container? ) - MapPane + MapPane Creates a pane with the given name. Created panes will be given a generated class based on the name like .leaflet-pane-name" getPane( - <String> name + <String> name ) - MapPane + MapPane Returns the HTML element representing the named map pane. @@ -1234,19 +1235,19 @@ var map = L.map('map', { paddingTopLeft Point - [0, 0] + [0, 0] Sets the amount of padding in the top left corner of a map container that shouldn't be accounted for when setting the view to fit bounds. Useful if you have some control overlays on the map like a sidebar and you don't want them to obscure objects you're zooming to. paddingBottomRight Point - [0, 0] + [0, 0] The same for bottom right corner of the map. padding Point - [0, 0] + [0, 0] Equivalent of setting both top left and bottom right padding to the same value. @@ -1733,14 +1734,12 @@ var map = L.map('map', { autoPanPaddingTopLeft Point null - The margin between the popup and the top left corner of the map view after autopanning was performed. autoPanPaddingBottomRight Point null - The margin between the popup and the bottom right corner of the map view after autopanning was performed. @@ -2151,7 +2150,7 @@ var map = L.map('map', { L.tileLayer.wms( <String> baseUrl, <TileLayer.WMS options> options ) - + Instantiates a WMS tile layer object given a base URL of the WMS service and a WMS parameters/options object. @@ -2837,7 +2836,7 @@ map.fitBounds(bounds);

A class for drawing circle overlays on a map. Extends CircleMarker. Use Map#addLayer to add it to the map.

-
L.circle([50.5, 30.5], 200).addTo(map);
+
L.circle([50.5, 30.5], 200).addTo(map);

Creation

@@ -4314,31 +4313,31 @@ L.marker([50.505, 30.57], {icon: myIcon}).addTo(map); position String - 'topleft' + 'topleft' The position of the control (one of the map corners). See control positions. zoomInText String - '+' + '+' The text set on the zoom in button. zoomOutText String - '-' + '-' The text set on the zoom out button. zoomInTitle String - 'Zoom in' + 'Zoom in' The title set on the zoom in button. zoomOutTitle String - 'Zoom out' + 'Zoom out' The title set on the zoom out button. @@ -4378,13 +4377,13 @@ L.marker([50.505, 30.57], {icon: myIcon}).addTo(map); position String - 'bottomright' + 'bottomright' The position of the control (one of the map corners). See control positions. prefix String - 'Leaflet' + 'Leaflet' The HTML text shown before the attributions. Pass false to disable. @@ -4497,7 +4496,7 @@ L.control.layers(baseLayers, overlays).addTo(map); position String - 'topright' + 'topright' The position of the control (one of the map corners). See control positions. @@ -4593,7 +4592,7 @@ L.control.layers(baseLayers, overlays).addTo(map); position String - 'bottomleft' + 'bottomleft' The position of the control (one of the map corners). See control positions. @@ -4693,7 +4692,7 @@ map.off('click', onClick); this - Removes a set of type/listener pairs. + Removes a set of type/listener pairs. off() @@ -4737,7 +4736,7 @@ map.off('click', onClick); clearAllEventListeners() this - Alias to off(). + Alias to off(). hasEventListeners( … ) @@ -4973,7 +4972,7 @@ Popups will also be automatically opened when the layer is clicked on and closed Returns a function which executes function fn with the given scope obj (so that this keyword refers to obj inside the function code). The arguments received by the bound function will be any arguments passed when binding the function, followed by any arguments passed when invoking the bound function. Has an L.bind shortcut. Works exactly like Function.prototype.bind in modern browsers compliant with ECMAScript 5. - stamp( <Object> obj ) + stamp( <Object> obj ) String Applies a unique key to the object and returns that key. Has an L.stamp shortcut. @@ -5035,7 +5034,7 @@ Popups will also be automatically opened when the layer is clicked on and closed String[] - Trims and splits the string on whitespace and returns the array of parts. + Trims and splits the string on whitespace and returns the array of parts. setOptions( @@ -5297,7 +5296,7 @@ Popups will also be automatically opened when the layer is clicked on and closed this - Removes a set of type/listener pairs. + Removes a set of type/listener pairs. addListener( <HTMLElement> el, @@ -5338,8 +5337,7 @@ Popups will also be automatically opened when the layer is clicked on and closed this - Prevents the default action of the event from happening (such as following a link in the href of the a element, or doing a POST request with page reload when form is submitted). Use it inside listener functions. - + Prevents the default action of the event from happening (such as following a link in the href of the a element, or doing a POST request with page reload when form is submitted). Use it inside listener functions. stop( @@ -6180,7 +6178,7 @@ map.addControl(new MyControl()); position String - 'topright' + 'topright' The initial position of the control (one of the map corners). See control positions.