From f3352a667a88e4b775a89059ade62436d55fad94 Mon Sep 17 00:00:00 2001 From: Joe Alfonso Date: Tue, 21 Aug 2012 17:54:59 -0400 Subject: [PATCH 01/10] Changed "imerial" to "imperial" (typo) --- _posts/2012-07-30-leaflet-0-4-released.md | 2 +- reference.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_posts/2012-07-30-leaflet-0-4-released.md b/_posts/2012-07-30-leaflet-0-4-released.md index 9342ac2e..5788b170 100644 --- a/_posts/2012-07-30-leaflet-0-4-released.md +++ b/_posts/2012-07-30-leaflet-0-4-released.md @@ -57,7 +57,7 @@ In the previous Leaflet version, pinch-zoom only worked on iOS devices, but now #### Scale Control -A simple, lightweight control that indicates the scale of the current map view in metric and/or imerial systems. As usual, you can customize its appearance with CSS. Take a look at the bottom left corner of the map above! +A simple, lightweight control that indicates the scale of the current map view in metric and/or imperial systems. As usual, you can customize its appearance with CSS. Take a look at the bottom left corner of the map above! L.control.scale().addTo(map); diff --git a/reference.html b/reference.html index 1abcb025..07fc134a 100644 --- a/reference.html +++ b/reference.html @@ -3803,7 +3803,7 @@ L.control.layers(baseLayers, overlays).addTo(map);

L.Control.Scale

-

A simple scale control that shows the scale of the current center of screen in metric (m/km) and imerial (mi/ft) systems. Implements IControl interface.

+

A simple scale control that shows the scale of the current center of screen in metric (m/km) and imperial (mi/ft) systems. Implements IControl interface.

L.control.scale().addTo(map);
@@ -3856,10 +3856,10 @@ L.control.layers(baseLayers, overlays).addTo(map); Whether to show the metric scale line (m/km). - imerial + imperial Boolean true - Whether to show the imerial scale line (mi/ft). + Whether to show the imperial scale line (mi/ft). updateWhenIdle From 09160e9735b1f694242105389ed049596aa72126 Mon Sep 17 00:00:00 2001 From: Joe Alfonso Date: Wed, 22 Aug 2012 11:51:10 -0400 Subject: [PATCH 02/10] Changed 'eachLayers' to 'eachLayer' (typo) --- reference.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference.html b/reference.html index 07fc134a..51b75fb4 100644 --- a/reference.html +++ b/reference.html @@ -2558,7 +2558,7 @@ map.fitBounds(bounds); Removes all the layers from the group. - eachLayers( + eachLayer( <Function> fn, <Object> context? ) From f6e28fe1ce5539fdbfc973a64b20a827896a24eb Mon Sep 17 00:00:00 2001 From: Dominik Moritz Date: Tue, 11 Sep 2012 12:52:28 +0100 Subject: [PATCH 03/10] Added documentation for isValid from #972. --- reference.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/reference.html b/reference.html index 51b75fb4..617456c5 100644 --- a/reference.html +++ b/reference.html @@ -3069,6 +3069,13 @@ map.panTo(new L.LatLng(50, 30)); LatLngBounds Returns bigger bounds created by extending the current bounds by a given percentage in each direction. + + isValid() + + + Boolean + Returns true if the bounds are properly initialized. + @@ -3309,6 +3316,13 @@ map.panBy(new L.Point(200, 300)); Boolean Returns true if the rectangle intersects the given bounds. + + isValid() + + + Boolean + Returns true if the bounds are properly initialized. + From 3a616575bc921cc58bd4d3b6995f4ae5ba060b03 Mon Sep 17 00:00:00 2001 From: jacobtoye Date: Mon, 8 Oct 2012 09:40:43 +1300 Subject: [PATCH 04/10] Documenting new marker events. --- reference.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/reference.html b/reference.html index 617456c5..bd382f68 100644 --- a/reference.html +++ b/reference.html @@ -1169,6 +1169,16 @@ var map = L.map('map', { Event Fired when the user stops dragging the marker. + + move + Event + Fired when the marker is moved via setLatLng. New coordinate include in event arguments. + + + remove + Event + Fired when the marker is removed from the map. +

Methods

From 6ad2361c8c13a14e290caa47a2bc06d31929ed45 Mon Sep 17 00:00:00 2001 From: jacobtoye Date: Mon, 8 Oct 2012 09:50:58 +1300 Subject: [PATCH 05/10] Documented L.Path.unbindPopup() method. --- reference.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/reference.html b/reference.html index bd382f68..fea17885 100644 --- a/reference.html +++ b/reference.html @@ -2048,6 +2048,11 @@ L.imageOverlay(imageUrl, imageBounds).addTo(map); this Binds a popup with a particular HTML content to a click on this path. + + unbindPopup() + this + Unbinds the popup previously bound to the path with bindPopup. + openPopup( <LatLng> latlng? ) From e7eefd8baeb99d69c5acc42cc9871b2b81277342 Mon Sep 17 00:00:00 2001 From: jacobtoye Date: Mon, 8 Oct 2012 09:52:26 +1300 Subject: [PATCH 06/10] Documenting new L.Path 'remove' event. --- reference.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/reference.html b/reference.html index fea17885..cbbca6c5 100644 --- a/reference.html +++ b/reference.html @@ -2022,6 +2022,11 @@ L.imageOverlay(imageUrl, imageBounds).addTo(map); 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 + Fired when the path is removed from the map. +

Methods

From 35db4f81f7c5ba4a1ade9f4516f61f10b4d496ac Mon Sep 17 00:00:00 2001 From: Jan Pieter Waagmeester Date: Thu, 1 Nov 2012 20:20:32 +0100 Subject: [PATCH 07/10] Adding Leaflet.encoded to plugins page --- plugins.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins.md b/plugins.md index 4c9e79af..90866f30 100644 --- a/plugins.md +++ b/plugins.md @@ -145,6 +145,15 @@ While Leaflet is meant to be as lightweight as possible, and focuses on a core s Samuel Piquet + + + Leaflet.encoded + + Use encoded polylines in Leaflet. + + Jieter + + From ec2bdaacbb955172cd3bf0b0263f75c0dc08e252 Mon Sep 17 00:00:00 2001 From: Robert Nordan Date: Wed, 7 Nov 2012 15:25:36 +0100 Subject: [PATCH 08/10] Update Map reference docs with baselayerchange baselayerchange is a new event that has landed in master, so it needs to be documented for easy reference. --- reference.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/reference.html b/reference.html index cbbca6c5..fd02ae6d 100644 --- a/reference.html +++ b/reference.html @@ -524,6 +524,11 @@ var map = L.map('map', { LayerEvent Fired when some layer is removed from the map. + + baselayerchange + LayerEvent + Fired when the base layer is changed through the layer control. + locationfound LocationEvent From 630f0f2f27a7a0d117aee01a0ed51241b7c6b053 Mon Sep 17 00:00:00 2001 From: danzel Date: Mon, 26 Nov 2012 15:08:35 +1300 Subject: [PATCH 09/10] Add L.Icon iconRetinaUrl/shadowRetinaUrl options documentation --- reference.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/reference.html b/reference.html index fd02ae6d..4f557851 100644 --- a/reference.html +++ b/reference.html @@ -3357,10 +3357,12 @@ map.panBy(new L.Point(200, 300));
var myIcon = L.icon({
 	iconUrl: 'my-icon.png',
+	iconRetinaUrl: 'my-icon@2x.png',
 	iconSize: [38, 95],
 	iconAnchor: [22, 94],
 	popupAnchor: [-3, -76],
 	shadowUrl: 'my-icon-shadow.png',
+	shadowRetinaUrl: 'my-icon-shadow@2x.png',
 	shadowSize: [68, 95],
 	shadowAnchor: [22, 94]
 });
@@ -3404,6 +3406,11 @@ L.marker([50.505, 30.57], {icon: myIcon}).addTo(map);
String (required) The URL to the icon image (absolute or relative to your script path). + + iconRetinaUrl + String + The URL to a retina sized version of the icon image (absolute or relative to your script path). Used for Retina screen devices. + iconSize Point @@ -3419,6 +3426,11 @@ L.marker([50.505, 30.57], {icon: myIcon}).addTo(map); String The URL to the icon shadow image. If not specified, no shadow image will be created. + + shadowRetinaUrl + String + The URL to the retina sized version of the icon shadow image. If not specified, no shadow image will be created. Used for Retina screen devices. + shadowSize Point From 754877422e0f11eb9a49729f97b5f3793bbb291b Mon Sep 17 00:00:00 2001 From: Mattias Bengtsson Date: Fri, 30 Nov 2012 07:54:45 +0100 Subject: [PATCH 10/10] Add Leaflet.MultiTileLayer to plugin list --- plugins.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins.md b/plugins.md index 90866f30..1d5f1a66 100644 --- a/plugins.md +++ b/plugins.md @@ -62,6 +62,15 @@ While Leaflet is meant to be as lightweight as possible, and focuses on a core s Alexander Parshin + + + Leaflet.MultiTileLayer + + Allows to compose a TileLayer from several tile sources. Each source is active only on a defined set of zoomlevels. + + Mattias Bengtsson + +