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.
LayerEvent
baselayerchange
LayerEvent
+ locationfound
LocationEvent
@@ -1169,6 +1174,16 @@ var map = L.map('map', {
Event
move
Event
+ remove
Event
+ MouseEvent
remove
Event
+ this
unbindPopup()
this
bindPopup
.openPopup(
<LatLng> latlng? )
@@ -3097,6 +3122,13 @@ map.panTo(new L.LatLng(50, 30));
LatLngBounds
isValid()
+
Boolean
true
if the bounds are properly initialized.Boolean
true
if the rectangle intersects the given bounds.isValid()
+
Boolean
true
if the bounds are properly initialized.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
iconRetinaUrl
String
+ iconSize
Point
@@ -3408,6 +3454,11 @@ L.marker([50.505, 30.57], {icon: myIcon}).addTo(map);
String
shadowRetinaUrl
String
+ shadowSize
Point
@@ -3841,7 +3892,7 @@ L.control.layers(baseLayers, overlays).addTo(map);
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
updateWhenIdle