From 30ab98e3ae7c5cab9428a375e94a71f9267cf816 Mon Sep 17 00:00:00 2001 From: Mattias Bengtsson Date: Fri, 15 Feb 2013 01:27:28 +0100 Subject: [PATCH 1/2] Document the zoomlevelschange event --- reference.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/reference.html b/reference.html index bc92f0be..45441be9 100644 --- a/reference.html +++ b/reference.html @@ -509,6 +509,11 @@ var map = L.map('map', { Event Fired when the map zoom changes. + + zoomlevelschange + Event + Fired when the number of zoomlevels on the map is changed due to adding or removing a layer. + autopanstart Event From 2f6b6d79bab778a19d819ada27d3617aa46af0ce Mon Sep 17 00:00:00 2001 From: Mattias Bengtsson Date: Fri, 15 Feb 2013 01:34:29 +0100 Subject: [PATCH 2/2] Add some missing (but not strictly mandatory) 's --- reference.html | 146 ++++++++++++++++++++++++------------------------- 1 file changed, 73 insertions(+), 73 deletions(-) diff --git a/reference.html b/reference.html index 45441be9..41af9619 100644 --- a/reference.html +++ b/reference.html @@ -406,152 +406,152 @@ var map = L.map('map', { click - MouseEvent + MouseEvent Fired when the user clicks (or taps) the map. dblclick - MouseEvent + MouseEvent Fired when the user double-clicks (or double-taps) the map. mousedown - MouseEvent + MouseEvent Fired when the user pushes the mouse button on the map. mouseup - MouseEvent + MouseEvent Fired when the user pushes the mouse button on the map. mouseover - MouseEvent + MouseEvent Fired when the mouse enters the map. mouseout - MouseEvent + MouseEvent Fired when the mouse leaves the map. mousemove - MouseEvent + MouseEvent Fired while the mouse moves over the map. contextmenu - MouseEvent + MouseEvent Fired when the user pushes the right mouse button on the map, prevents default browser context menu from showing if there are listeners on this event. focus - Event + Event Fired when the user focuses the map either by tabbing to it or clicking/panning. blur - Event + Event Fired when the map looses focus. preclick - MouseEvent + MouseEvent Fired before mouse click on the map (sometimes useful when you want something to happen on click before any existing click handlers start running). load - Event + Event Fired when the map is initialized (when its center and zoom are set for the first time). viewreset - Event + Event Fired when the map needs to redraw its content (this usually happens on map zoom or load). Very useful for creating custom overlays. movestart - Event + Event Fired when the view of the map starts changing (e.g. user starts dragging the map). move - Event + Event Fired on any movement of the map view. moveend - Event + Event Fired when the view of the map ends changed (e.g. user stopped dragging the map). dragstart - Event + Event Fired when the user starts dragging the map. drag - Event + Event Fired repeatedly while the user drags the map. dragend - Event + Event Fired when the user stops dragging the map. zoomstart - Event + Event Fired when the map zoom is about to change (e.g. before zoom animation). zoomend - Event + Event Fired when the map zoom changes. zoomlevelschange - Event + Event Fired when the number of zoomlevels on the map is changed due to adding or removing a layer. autopanstart - Event + Event Fired when the map starts autopanning when opening a popup. layeradd - LayerEvent + LayerEvent Fired when a new layer is added to the map. layerremove - LayerEvent + LayerEvent Fired when some layer is removed from the map. baselayerchange - LayerEvent + LayerEvent Fired when the base layer is changed through the layer control. locationfound - LocationEvent + LocationEvent Fired when geolocation (using locate method) went successfully. locationerror - ErrorEvent + ErrorEvent Fired when geolocation (using locate method) failed. popupopen - PopupEvent + PopupEvent Fired when a popup is opened (using openPopup method). popupclose - PopupEvent + PopupEvent Fired when a popup is closed (using closePopup method). @@ -1141,52 +1141,52 @@ var map = L.map('map', { click - MouseEvent + MouseEvent Fired when the user clicks (or taps) the marker. dblclick - MouseEvent + MouseEvent Fired when the user double-clicks (or double-taps) the marker. mousedown - MouseEvent + MouseEvent Fired when the user pushes the mouse button on the marker. mouseover - MouseEvent + MouseEvent Fired when the mouse enters the marker. mouseout - MouseEvent + MouseEvent Fired when the mouse leaves the marker. dragstart - Event + Event Fired when the user starts dragging the marker. drag - Event + Event Fired repeatedly while the user drags the marker. dragend - Event + Event Fired when the user stops dragging the marker. move - Event + Event Fired when the marker is moved via setLatLng. New coordinate include in event arguments. remove - Event + Event Fired when the marker is removed from the map. @@ -1604,22 +1604,22 @@ var map = L.map('map', { loading - Event + Event Fired when the tile layer starts loading tiles. load - Event + Event Fired when the tile layer loaded all visible tiles. tileload - Event + Event Fired when a tile loads. tileunload - Event + Event Fired when a tile is removed (e.g. when you have unloadInvisibleTiles on). @@ -2004,37 +2004,37 @@ L.imageOverlay(imageUrl, imageBounds).addTo(map); click - MouseEvent + MouseEvent Fired when the user clicks (or taps) the object. dblclick - MouseEvent + MouseEvent Fired when the user double-clicks (or double-taps) the object. mousedown - MouseEvent + MouseEvent Fired when the user pushes the mouse button on the object. mouseover - MouseEvent + MouseEvent Fired when the mouse enters the object. mouseout - MouseEvent + MouseEvent Fired when the mouse leaves the object. contextmenu - MouseEvent + MouseEvent Fired when the user pushes the right mouse button on the object, prevents default browser context menu from showing if there are listeners on this event. remove - Event + Event Fired when the path is removed from the map. @@ -2697,32 +2697,32 @@ map.fitBounds(bounds); click - MouseEvent + MouseEvent Fired when the user clicks (or taps) the group. dblclick - MouseEvent + MouseEvent Fired when the user double-clicks (or double-taps) the group. mouseover - MouseEvent + MouseEvent Fired when the mouse enters the group. mouseout - MouseEvent + MouseEvent Fired when the mouse leaves the group. mousemove - MouseEvent + MouseEvent Fired while the mouse moves over the layers of the group. contextmenu - MouseEvent + MouseEvent Fired when the user right-clicks on one of the layers. @@ -3327,12 +3327,12 @@ map.panBy(new L.Point(200, 300)); min - Point + Point The top left corner of the rectangle. max - Point + Point The bottom right corner of the rectangle. @@ -3454,12 +3454,12 @@ L.marker([50.505, 30.57], {icon: myIcon}).addTo(map); iconSize - Point + Point Size of the icon image in pixels. iconAnchor - Point + Point The coordinates of the "tip" of the icon (relative to its top left corner). The icon will be aligned so that this point is at the marker's geographical location. Centered by default if size is specified, also can be set in CSS with negative margins. @@ -3474,17 +3474,17 @@ L.marker([50.505, 30.57], {icon: myIcon}).addTo(map); shadowSize - Point + Point Size of the shadow image in pixels. shadowAnchor - Point + Point The coordinates of the "tip" of the shadow (relative to its top left corner) (the same as iconAnchor if not specified). popupAnchor - Point + Point The coordinates of the point from which popups will "open", relative to the icon anchor. @@ -3538,12 +3538,12 @@ L.marker([50.505, 30.57], {icon: myIcon}).addTo(map); iconSize - Point + Point Size of the icon in pixels. Can be also set through CSS. iconAnchor - Point + Point The coordinates of the "tip" of the icon (relative to its top left corner). The icon will be aligned so that this point is at the marker's geographical location. Centered by default if size is specified, also can be set in CSS with negative margins. @@ -5092,17 +5092,17 @@ fx.run({left: '300px', top: '500px'}); start - Event + Event Fired when the animation starts. step - Event + Event Fired continuously during the animation. end - Event + Event Fired when the animation ends. @@ -5181,22 +5181,22 @@ draggable.enable(); dragstart - Event + Event Fired when the dragging starts. predrag - Event + Event Fired continuously during dragging before each corresponding update of the element position. drag - Event + Event Fired continuously during dragging. dragend - Event + Event Fired when the dragging ends.