diff --git a/_posts/2012-07-30-leaflet-0-4-released.md b/_posts/2012-07-30-leaflet-0-4-released.md index 5720100d..7ebe8e65 100644 --- a/_posts/2012-07-30-leaflet-0-4-released.md +++ b/_posts/2012-07-30-leaflet-0-4-released.md @@ -59,7 +59,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/plugins.md b/plugins.md index 522a33f9..8258adb8 100644 --- a/plugins.md +++ b/plugins.md @@ -69,6 +69,13 @@ While Leaflet is meant to be as lightweight as possible, and focuses on a core s Simple heatmap api based on HTML5 canvas. Sun Ning + + + Leaflet.MultiTileLayer + + Allows to compose a TileLayer from several tile sources. Each source is active only on a defined set of zoomlevels. + + Mattias Bengtsson @@ -154,6 +161,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 + + diff --git a/reference.html b/reference.html index 12793647..8819a311 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 @@ -1169,6 +1174,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

@@ -2012,6 +2027,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

@@ -2038,6 +2058,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? ) @@ -3097,6 +3122,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. + @@ -3337,6 +3369,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. + @@ -3346,10 +3385,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]
 });
@@ -3393,6 +3434,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 @@ -3408,6 +3454,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 @@ -3841,7 +3892,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);
@@ -3897,7 +3948,7 @@ L.control.layers(baseLayers, overlays).addTo(map); imperial Boolean true - Whether to show the imerial scale line (mi/ft). + Whether to show the imperial scale line (mi/ft). updateWhenIdle