update build and changelog
This commit is contained in:
parent
f99a4173fe
commit
dd1a134c50
@ -145,6 +145,8 @@ Icon API was improved to be more flexible, but one of the changes is backwards-i
|
||||
* Fixed a bug where zoom control wasn't always visible on Android 3. [#335](https://github.com/CloudMade/Leaflet/issues/335)
|
||||
* Fixed a bug where opening the layers control would propagate a click to the map (by [@jacobtoye](https://github.com/jacobtoye)). [#638](https://github.com/CloudMade/Leaflet/pull/638)
|
||||
* Fixed a bug where `ImageOverlay` wouldn't stretch properly on zoom on Android 2. [#651](https://github.com/CloudMade/Leaflet/issues/651)
|
||||
* Fixed a bug where `clearLayers` for vector layers on a Canvas backend (e.g. on Android 2) would take unreasonable amount of time. [#785](https://github.com/CloudMade/Leaflet/issues/785)
|
||||
* Fixed a bug where `setLatLngs` and similar methods on vector layers on a Canvas backend would not update the layers immediately. [#732](https://github.com/CloudMade/Leaflet/issues/732)
|
||||
|
||||
## 0.3.1 (February 14, 2012)
|
||||
|
||||
|
79
dist/leaflet-src.js
vendored
79
dist/leaflet-src.js
vendored
@ -336,6 +336,7 @@ L.Mixin.Events.fire = L.Mixin.Events.fireEvent;
|
||||
ie6 = ie && !window.XMLHttpRequest,
|
||||
webkit = ua.indexOf("webkit") !== -1,
|
||||
gecko = ua.indexOf("gecko") !== -1,
|
||||
safari = ua.indexOf("safari") !== -1 && ua.indexOf("chrome") === -1,
|
||||
opera = window.opera,
|
||||
android = ua.indexOf("android") !== -1,
|
||||
android23 = ua.search("android [23]") !== -1,
|
||||
@ -383,6 +384,8 @@ L.Mixin.Events.fire = L.Mixin.Events.fireEvent;
|
||||
android: android,
|
||||
android23: android23,
|
||||
|
||||
safari: safari && !mobile,
|
||||
|
||||
ie3d: ie3d,
|
||||
webkit3d: webkit3d,
|
||||
gecko3d: gecko3d,
|
||||
@ -1635,8 +1638,8 @@ L.Map = L.Class.extend({
|
||||
|
||||
L.DomEvent.on(this._container, 'click', this._onMouseClick, this);
|
||||
|
||||
var events = ['dblclick', 'mousedown', 'mousedown', 'mouseenter', 'mouseleave', 'mousemove', 'contextmenu'],
|
||||
i, len;
|
||||
var events = ['dblclick', 'mousedown', 'mouseup', 'mouseenter', 'mouseleave', 'mousemove', 'contextmenu'],
|
||||
i, len;
|
||||
|
||||
for (i = 0, len = events.length; i < len; i++) {
|
||||
L.DomEvent.on(this._container, events[i], this._fireMouseEvent, this);
|
||||
@ -2137,7 +2140,8 @@ L.TileLayer = L.Class.extend({
|
||||
|
||||
// get unused tile - or create a new tile
|
||||
var tile = this._getTile();
|
||||
L.DomUtil.setPosition(tile, tilePos, true);
|
||||
//Chrome 20 layouts much faster with top/left (Verify with timeline, frames), Safari 5.1.7 has display issues with top/left and requires transform instead. (Other browsers don't currently care)
|
||||
L.DomUtil.setPosition(tile, tilePos, !L.Browser.safari);
|
||||
|
||||
this._tiles[key] = tile;
|
||||
|
||||
@ -2279,7 +2283,12 @@ L.TileLayer.WMS = L.TileLayer.extend({
|
||||
this._url = url;
|
||||
|
||||
var wmsParams = L.Util.extend({}, this.defaultWmsParams);
|
||||
wmsParams.width = wmsParams.height = this.options.tileSize;
|
||||
|
||||
if (options.detectRetina && window.devicePixelRatio > 1) {
|
||||
wmsParams.width = wmsParams.height = this.options.tileSize * 2;
|
||||
} else {
|
||||
wmsParams.width = wmsParams.height = this.options.tileSize;
|
||||
}
|
||||
|
||||
for (var i in options) {
|
||||
// all keys that are not TileLayer options go to WMS params
|
||||
@ -2936,7 +2945,11 @@ L.Popup = L.Class.extend({
|
||||
}
|
||||
this._updateContent();
|
||||
|
||||
L.DomUtil.setOpacity(this._container, 0);
|
||||
var animFade = map.options.fadeAnimation;
|
||||
|
||||
if (animFade) {
|
||||
L.DomUtil.setOpacity(this._container, 0);
|
||||
}
|
||||
map._panes.popupPane.appendChild(this._container);
|
||||
|
||||
map.on('viewreset', this._updatePosition, this);
|
||||
@ -2951,7 +2964,9 @@ L.Popup = L.Class.extend({
|
||||
|
||||
this._update();
|
||||
|
||||
L.DomUtil.setOpacity(this._container, 1);
|
||||
if (animFade) {
|
||||
L.DomUtil.setOpacity(this._container, 1);
|
||||
}
|
||||
},
|
||||
|
||||
addTo: function (map) {
|
||||
@ -2975,7 +2990,9 @@ L.Popup = L.Class.extend({
|
||||
zoomanim: this._zoomAnimation
|
||||
}, this);
|
||||
|
||||
L.DomUtil.setOpacity(this._container, 0);
|
||||
if (map.options.fadeAnimation) {
|
||||
L.DomUtil.setOpacity(this._container, 0);
|
||||
}
|
||||
|
||||
this._map = null;
|
||||
},
|
||||
@ -3831,6 +3848,45 @@ L.Path = (L.Path.SVG && !window.L_PREFER_CANVAS) || !L.Browser.canvas ? L.Path :
|
||||
SVG: false
|
||||
},
|
||||
|
||||
redraw: function () {
|
||||
if (this._map) {
|
||||
this.projectLatlngs();
|
||||
this._requestUpdate();
|
||||
}
|
||||
return this;
|
||||
},
|
||||
|
||||
setStyle: function (style) {
|
||||
L.Util.setOptions(this, style);
|
||||
|
||||
if (this._map) {
|
||||
this._updateStyle();
|
||||
this._requestUpdate();
|
||||
}
|
||||
return this;
|
||||
},
|
||||
|
||||
onRemove: function (map) {
|
||||
map
|
||||
.off('viewreset', this.projectLatlngs, this)
|
||||
.off('moveend', this._updatePath, this);
|
||||
|
||||
this._requestUpdate();
|
||||
|
||||
this._map = null;
|
||||
},
|
||||
|
||||
_requestUpdate: function () {
|
||||
if (this._map) {
|
||||
L.Util.cancelAnimFrame(this._fireMapMoveEnd);
|
||||
this._updateRequest = L.Util.requestAnimFrame(this._fireMapMoveEnd, this._map);
|
||||
}
|
||||
},
|
||||
|
||||
_fireMapMoveEnd: function () {
|
||||
this.fire('moveend');
|
||||
},
|
||||
|
||||
_initElements: function () {
|
||||
this._map._initPathRoot();
|
||||
this._ctx = this._map._canvasCtx;
|
||||
@ -3912,14 +3968,7 @@ L.Path = (L.Path.SVG && !window.L_PREFER_CANVAS) || !L.Browser.canvas ? L.Path :
|
||||
if (this._containsPoint(e.layerPoint)) {
|
||||
this.fire('click', e);
|
||||
}
|
||||
},
|
||||
|
||||
onRemove: function (map) {
|
||||
map
|
||||
.off('viewreset', this._projectLatlngs, this)
|
||||
.off('moveend', this._updatePath, this)
|
||||
.fire('moveend');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
L.Map.include((L.Path.SVG && !window.L_PREFER_CANVAS) || !L.Browser.canvas ? {} : {
|
||||
|
2
dist/leaflet.js
vendored
2
dist/leaflet.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user